/* Heading / status / chart / record styles of the timeline panel (history-* class names kept from the former history stylesheet). */
.history-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0 8px}.history-heading h2{font-size:26px;margin:0}.history-heading p{margin:8px 0 0;font-size:13px;max-width:800px}.history-badge{color:var(--amber);border-color:#6a522b;white-space:nowrap}.history-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 4px}.history-status strong{font-size:20px}.history-status .muted{font-size:12px;margin-top:5px}.history-message{font-size:12px;color:var(--muted);min-height:18px;margin:9px 0 18px}.history-message.error{color:var(--red)}.history-charts{grid-template-columns:3fr 2fr;gap:14px}.history-chart-wrap{position:relative;min-width:0}.history-chart-wrap canvas{height:285px;touch-action:pan-y}.history-tooltip{position:absolute;top:12px;max-width:230px;background:rgba(4,14,24,.96);border:1px solid #3c5b70;border-radius:8px;padding:9px 12px;font-size:12px;white-space:pre-line;pointer-events:none;z-index:2}.history-filter{color:var(--muted);font-size:12px;display:flex;align-items:center;gap:8px}.history-filter select{background:#091927;border:1px solid var(--line);color:var(--text);border-radius:8px;padding:9px}.history-page-buttons{display:flex;gap:8px}.history-method{font-size:12px;color:var(--muted)}.history-method summary{cursor:pointer;color:var(--text);font-size:13px}.history-method p{margin:12px 0 0}.history-method ul{padding-left:18px;overflow-wrap:anywhere}.history-method code{font-size:10px;color:#7c96aa}
#paperHealth[hidden]{display:none!important}.history-record-wrap{max-height:560px;overflow:auto}.history-record-wrap th{position:sticky;top:0;background:#0c1b2a;z-index:1}
/* Timeline selector grouped by strategy. */
.timeline-groups{display:flex;flex-direction:column;gap:14px;margin:18px 0}.timeline-group{min-width:0}.timeline-group-title{font-size:11px;letter-spacing:.08em;color:var(--muted);margin:0 0 7px}.timeline-group-tiers{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:9px}
/* Metrics, positions, charts, month grid, records. */
.timeline-metrics{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.timeline-metrics .value{font-size:21px}.timeline-metrics .muted{font-size:11px;margin-top:5px}.timeline-stale{border-left-color:var(--amber);color:var(--amber);margin:0 0 14px}.timeline-positions{margin-top:14px}.timeline-positions .section-head .muted{font-size:12px}.timeline-positions table{min-width:720px}.timeline-positions th,.timeline-positions td{padding:8px 9px}.timeline-positions td[title]{cursor:help;text-decoration:underline dotted #3c5b70;text-underline-offset:3px}.timeline-positions .empty-record{padding:18px}.timeline-positions tr.timeline-has-sleeves td{border-bottom:0}.timeline-positions tr.timeline-sleeve td{font-size:11px;color:var(--muted);padding:4px 9px 6px;border-bottom-color:#15293a}.timeline-positions tr.timeline-sleeve .timeline-sleeve-label{padding-left:24px}.timeline-positions tr.timeline-sleeve .timeline-sleeve-label::before{content:'└ ';color:#4d6478}.timeline-positions tr.timeline-sleeve td.long,.timeline-positions tr.timeline-sleeve td.short,.timeline-positions tr.timeline-sleeve td.positive,.timeline-positions tr.timeline-sleeve td.negative{opacity:.85}.timeline-flat{color:var(--muted)}.timeline-chart-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}.timeline-legend{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px}.timeline-boundary-dot{background:transparent;border:1px dashed var(--amber);border-radius:0;width:0;height:10px;vertical-align:-1px}.timeline-log{padding:5px 10px;font-size:11px;border-radius:7px}.timeline-log[aria-pressed=true]{border-color:var(--green);color:var(--green);background:#0d302e}.timeline-month-wrap{max-width:100%}.timeline-month-table{min-width:880px;font-size:12px}.timeline-month-table th,.timeline-month-table td{padding:7px 6px;text-align:right}.timeline-month-table th:first-child,.timeline-month-table tbody th{text-align:left;color:var(--muted);font-size:11px}.timeline-month{font-variant-numeric:tabular-nums}.timeline-month.positive{background:#0c2727}.timeline-month.negative{background:#281e2a}.timeline-month.empty{color:#4d6478}.timeline-month-mark{display:inline-block;margin-left:4px;font-size:8px;font-style:normal;color:var(--blue);vertical-align:1px}.timeline-month-mark.seg-mixed{color:var(--amber)}.timeline-month-mark.seg-live{color:var(--amber)}.timeline-annual{font-weight:700;border-left:1px solid var(--line)}.timeline-month-legend{font-size:11px;margin-top:9px}.timeline-seg{display:inline-block;font-size:10px;line-height:1.4;border:1px solid #2b5268;border-radius:4px;padding:1px 6px;color:var(--blue)}.timeline-seg.seg-backtest{color:var(--green);border-color:#176e59}.timeline-seg.seg-live{color:var(--amber);border-color:#765727}#timelineKinds{flex-wrap:wrap;margin-top:14px}#timelineRecordBody td{font-variant-numeric:tabular-nums}#timelinePanel [hidden]{display:none!important}#timelineDetail{width:min(860px,calc(100vw - 28px));max-height:85vh;overflow:auto;background:var(--panel);color:var(--text);border:1px solid #36516a;border-radius:14px;padding:22px}#timelineDetail::backdrop{background:#000b;backdrop-filter:blur(3px)}
@media(max-width:1180px){.timeline-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.history-charts{grid-template-columns:1fr}}
@media(max-width:650px){.history-heading{align-items:flex-start;flex-direction:column;gap:12px}.history-heading h2{font-size:23px}.history-heading p{font-size:12px}.history-status strong{font-size:18px}.history-status button{white-space:nowrap}.history-chart-wrap canvas{height:245px}.history-page-buttons{gap:5px}.history-page-buttons button{padding:8px}.history-filter{width:100%;justify-content:flex-end}.timeline-group-tiers{grid-template-columns:repeat(2,minmax(0,1fr))}.timeline-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.timeline-metrics .value{font-size:17px}.timeline-metrics .metric{padding:12px}.timeline-chart-tools{width:100%;justify-content:space-between}.timeline-month-table{min-width:760px}.timeline-positions .section-head{flex-direction:column;align-items:flex-start;gap:4px}}
@media(max-width:520px){.tabs{flex-wrap:wrap}.tab{white-space:nowrap}}
