/* Trades uses the same champagne and dark surfaces as the workspace. */
.th-root.th-replay{--tr-bg:#172333;--tr-soft:#202d3b;--tr-ink:#f6f7fb;--tr-muted:#adbacb;--tr-line:rgba(210,177,93,.28);--tr-gold:#e9c86a;--tr-up:#82d6b1;--tr-down:#ff9eaa;color:var(--tr-ink);font-family:inherit;width:100%;max-width:1500px;margin:0 auto;padding:10px 4px 28px;box-sizing:border-box;min-width:0}
.th-replay *{box-sizing:border-box}.th-replay [hidden]{display:none!important}
.th-replay button,.th-replay input,.th-replay select{font:inherit}.th-replay button{cursor:pointer;border:1px solid var(--tr-line);background:var(--tr-bg);color:var(--tr-ink);border-radius:11px;padding:11px 16px;font-weight:650;min-height:43px}.th-replay button:disabled{opacity:.55;cursor:default}.th-replay button:focus-visible,.th-replay input:focus-visible,.th-replay select:focus-visible,.th-replay summary:focus-visible{outline:2px solid var(--tr-gold);outline-offset:3px}
.th-replay .tr-primary{background:linear-gradient(135deg,#fff0a4,#d2ab3e);color:#231c0d;border-color:#c9a345;box-shadow:0 2px 9px rgba(154,111,29,.14)}
.tr-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:0 0 20px}.tr-head h1{font-size:32px;line-height:1.12;margin:7px 0 9px;letter-spacing:-.8px}.tr-head p{font-size:14px;color:var(--tr-muted);line-height:1.5;margin:0;max-width:710px}.tr-eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--tr-gold);font-weight:750}.tr-readonly{border:1px solid var(--tr-line);border-radius:99px;color:var(--tr-muted);font-size:11px;padding:7px 12px;white-space:nowrap}
.tr-modes{display:flex;gap:4px;width:fit-content;max-width:100%;background:var(--tr-soft);border:1px solid var(--tr-line);border-radius:15px;padding:4px;margin-bottom:19px}.th-replay .tr-modes button{border-color:transparent;background:transparent;min-width:160px;color:var(--tr-muted)}.th-replay .tr-modes button[aria-pressed=true]{background:linear-gradient(135deg,#fff0a4,#d2ab3e);border-color:#ceb064;color:#241c0e;box-shadow:0 2px 7px rgba(100,70,18,.16)}
.tr-config{border:1px solid var(--tr-line);background:var(--tr-bg);border-radius:18px;padding:18px;margin-bottom:16px}.tr-config-intro{display:flex;align-items:baseline;gap:15px;flex-wrap:wrap;margin-bottom:14px}.tr-config-intro strong{font-size:15px}.tr-config-intro span,.tr-config-note{font-size:12px;color:var(--tr-muted)}.tr-config-note{margin:14px 0 0;line-height:1.55}.tr-inputs{display:grid;grid-template-columns:1.1fr 1fr .65fr .8fr .95fr auto;align-items:end;gap:12px}.th-replay label{display:grid;gap:7px;color:var(--tr-muted);font-size:11px;font-weight:650;min-width:0}.th-replay input,.th-replay select{width:100%;min-width:0;color:var(--tr-ink);background:var(--tr-soft);border:1px solid var(--tr-line);border-radius:10px;padding:10px 11px;min-height:43px;font-size:14px}.th-replay input[data-tr-config-key=capital]{font-weight:750;font-size:17px}
.tr-tools{display:flex;gap:13px;align-items:end;flex-wrap:wrap;margin:15px 0}.tr-tools label{min-width:170px}.tr-tools button{margin-left:auto}.tr-status{font-size:13px;line-height:1.5;color:var(--tr-muted);margin:12px 0;min-height:18px}.tr-status:empty{min-height:0;margin:0}.tr-results{min-width:0}
.tr-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.tr-metric{background:var(--tr-bg);border:1px solid var(--tr-line);border-radius:16px;padding:18px;min-width:0}.tr-metric>span{display:block;color:var(--tr-muted);font-size:12px;font-weight:650}.tr-metric>strong{display:block;font-size:28px;line-height:1.15;letter-spacing:-.5px;padding:12px 0 8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.tr-metric>small{display:block;color:var(--tr-muted);font-size:11px;line-height:1.45}
.tr-disclosure{background:var(--tr-soft);border:1px solid var(--tr-line);border-radius:14px;padding:15px 18px;margin-bottom:22px}.tr-disclosure>strong{font-size:11px;letter-spacing:.6px;color:var(--tr-gold)}.tr-disclosure p{font-size:12px;line-height:1.6;color:var(--tr-muted);margin:8px 0 0}.tr-disclosure .tr-warning{color:var(--tr-gold);font-weight:650}.tr-list-head{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin:21px 0 11px}.tr-list-head h2{font-size:16px;line-height:1.3;margin:0}.tr-list-head span{font-size:11px;color:var(--tr-muted)}
.tr-table-wrap{width:100%;max-width:100%;overflow:auto;border:1px solid var(--tr-line);border-radius:14px;background:var(--tr-bg);scrollbar-color:var(--tr-gold) transparent;scrollbar-width:thin}.th-replay table{border-collapse:collapse;width:100%;min-width:970px;font-size:12px}.th-replay th{padding:13px 15px;text-align:left;font-size:10px;font-weight:700;letter-spacing:.35px;color:var(--tr-muted);background:var(--tr-soft);white-space:nowrap;border-bottom:1px solid var(--tr-line)}.th-replay td{padding:16px 15px;border-bottom:1px solid var(--tr-line);vertical-align:top;color:var(--tr-ink);font-variant-numeric:tabular-nums}.th-replay tbody tr:last-child td{border-bottom:0}.th-replay td strong{font-size:14px}.th-replay td small{display:block;max-width:260px;font-size:10px;font-weight:450;color:var(--tr-muted);line-height:1.6;margin-top:5px}.th-replay td time{color:var(--tr-ink);font-size:11px;white-space:nowrap}.th-replay td.tr-positive{color:var(--tr-up);font-weight:700}.th-replay td.tr-negative{color:var(--tr-down);font-weight:700}.tr-category{display:inline-block;padding:5px 8px;border-radius:7px;font-weight:700;font-size:10px;border:1px solid var(--tr-line);white-space:nowrap}.tr-diamond{color:#95d8ff;background:rgba(55,165,232,.08)}.tr-gold{color:var(--tr-gold);background:rgba(208,174,75,.08)}.tr-silver{color:#d6e0ec;background:rgba(187,203,223,.08)}
.tr-activities{margin-top:24px;border:1px solid var(--tr-line);border-radius:14px;background:var(--tr-bg);padding:14px}.tr-activities summary{cursor:pointer;font-size:13px;color:var(--tr-gold);font-weight:650;padding:3px 0}.tr-activities[open] summary{margin-bottom:15px}.tr-activities .tr-table-wrap{border-radius:9px}.tr-empty{padding:32px 24px;border:1px solid var(--tr-line);border-radius:16px;background:var(--tr-bg);text-align:center}.tr-empty strong{font-size:16px}.tr-empty p{font-size:12px;line-height:1.6;color:var(--tr-muted);max-width:650px;margin:10px auto 18px}.tr-foot{color:var(--tr-muted);font-size:11px;line-height:1.6;margin:15px 0 22px}
.tr-inputs{grid-template-columns:repeat(4,minmax(0,1fr))}.th-replay input:disabled,.th-replay select:disabled{opacity:.65;cursor:wait}.tr-dirty{margin:14px 0 0;border:1px solid var(--tr-line);border-radius:10px;padding:12px 14px;color:var(--tr-gold);background:var(--tr-soft);font-size:12px;line-height:1.6;font-weight:650}.tr-portfolio{grid-template-columns:repeat(3,minmax(0,1fr))}.tr-portfolio .tr-metric>strong{font-size:23px}.tr-history-progress{display:flex;align-items:center;gap:18px;justify-content:space-between;background:var(--tr-soft);border:1px solid var(--tr-line);padding:14px 16px;border-radius:14px;margin:16px 0}.tr-history-progress p{font-size:12px;line-height:1.6;color:var(--tr-muted);margin:0}.tr-history-progress button{flex-shrink:0}.tr-page-controls{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:13px 0;color:var(--tr-muted);font-size:12px}.tr-page-controls span{text-align:center}.tr-diagnostic-list{font-size:12px;color:var(--tr-muted);line-height:1.7;padding-left:22px}.tr-activities td details{margin-top:8px}.tr-activities td details summary{font-size:11px}.tr-activities td details p{font-size:11px;color:var(--tr-muted);line-height:1.7;white-space:nowrap}
html[data-aaron-theme="light"] .th-root.th-replay,body[data-aaron-theme="light"] .th-root.th-replay{--tr-bg:#fffdf8;--tr-soft:#f5edd9;--tr-ink:#172333;--tr-muted:#59616c;--tr-line:#d9c59a;--tr-gold:#805a10;--tr-up:#21664d;--tr-down:#a72d42}
html[data-aaron-theme="light"] .th-replay .tr-config,html[data-aaron-theme="light"] .th-replay .tr-metric,html[data-aaron-theme="light"] .th-replay .tr-table-wrap,html[data-aaron-theme="light"] .th-replay .tr-empty,body[data-aaron-theme="light"] .th-replay .tr-config,body[data-aaron-theme="light"] .th-replay .tr-metric,body[data-aaron-theme="light"] .th-replay .tr-table-wrap,body[data-aaron-theme="light"] .th-replay .tr-empty{box-shadow:0 3px 13px rgba(99,77,36,.045)}
html[data-aaron-theme="light"] .th-replay .tr-diamond,body[data-aaron-theme="light"] .th-replay .tr-diamond{color:#075786;background:#e7f2f8;border-color:#b6cfdc}html[data-aaron-theme="light"] .th-replay .tr-silver,body[data-aaron-theme="light"] .th-replay .tr-silver{color:#46566b;background:#eef0f2;border-color:#bec4cb}
@media(max-width:1150px){.tr-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}.tr-metric>strong{font-size:24px}.tr-metric{padding:15px}}
@media(max-width:700px){.th-root.th-replay{padding:8px 0 25px}.tr-head{gap:12px;margin-bottom:16px}.tr-head h1{font-size:27px}.tr-head p{font-size:12px}.tr-readonly{font-size:10px}.tr-modes{width:100%}.th-replay .tr-modes button{flex:1;min-width:0;padding:11px 9px;font-size:13px}.tr-config{padding:15px}.tr-config-intro{gap:6px}.tr-config-intro span{font-size:11px}.tr-inputs{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tr-inputs [data-tr-run]{align-self:end}.tr-tools{gap:10px}.tr-tools label{min-width:0;flex:1}.tr-tools button{width:100%;margin:0}.tr-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tr-metric>span{font-size:11px}.tr-metric>strong{font-size:23px;padding:10px 0 7px}.tr-metric>small{font-size:10px}.tr-disclosure{padding:14px}.tr-disclosure p{font-size:11px}.tr-list-head{align-items:flex-start;flex-direction:column;gap:5px}.th-replay table{min-width:970px}.tr-empty{padding:27px 18px}}
@media(max-width:700px){.tr-portfolio .tr-metric>strong{font-size:19px}.tr-history-progress{align-items:stretch;flex-direction:column;gap:12px}.tr-history-progress button{width:100%}.tr-page-controls{gap:8px;flex-wrap:wrap}.tr-page-controls button{flex:1;min-width:0;padding:10px 8px;font-size:11px}.tr-page-controls span{order:-1;width:100%;font-size:11px}}
.tr-sim-controls{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px;border:1px solid var(--tr-line);border-radius:16px;background:var(--tr-soft);margin:18px 0}.tr-sim-controls-copy{min-width:0}.tr-sim-controls-copy>strong{display:inline-block;font-size:11px;letter-spacing:.6px;color:var(--tr-gold);margin-right:12px}.tr-sim-state{display:inline-block;font-size:12px;font-weight:700;color:var(--tr-ink)}.tr-sim-controls p{font-size:12px;line-height:1.6;color:var(--tr-muted);margin:9px 0 0;max-width:900px}.tr-sim-buttons{display:flex;flex-wrap:wrap;gap:9px;flex-shrink:0;max-width:370px;justify-content:flex-end}.th-replay .tr-sim-action{white-space:nowrap;font-size:12px;min-height:43px}.th-replay .tr-end{color:var(--tr-down);border-color:rgba(215,133,143,.5);background:rgba(142,50,66,.12)}.th-replay .tr-end:hover:enabled{background:rgba(142,50,66,.24)}.tr-sim-controls .tr-warning,.tr-sim-controls .tr-pending{color:var(--tr-gold);font-weight:650}.tr-action-journal{margin-top:0;margin-bottom:22px}.tr-action-journal table{min-width:820px}.tr-results:focus{outline:none}.tr-readonly{font-weight:700;color:var(--tr-gold)}
.th-replay .tr-sim-action[aria-disabled=true]{opacity:.55;cursor:wait}
.tr-timeline{margin:19px 0 22px;padding:20px;border:1px solid var(--tr-line);border-radius:18px;background:var(--tr-bg);min-width:0}.tr-timeline-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.tr-timeline-head h2{font-size:23px;line-height:1.3;margin:7px 0 0;font-variant-numeric:tabular-nums}.tr-timeline-mode{border:1px solid var(--tr-line);border-radius:99px;background:var(--tr-soft);font-size:11px;font-weight:700;color:var(--tr-gold);padding:8px 12px;white-space:nowrap}.th-replay .tr-time-label{font-size:11px}.th-replay input[data-tr-time-range]{appearance:auto;accent-color:var(--tr-gold);border:0;background:transparent;padding:0;min-height:36px;cursor:ew-resize;width:100%;touch-action:pan-y}.th-replay input[data-tr-time-range]:disabled{cursor:default}.tr-time-bounds{display:flex;justify-content:space-between;gap:16px;color:var(--tr-muted);font-size:10px;font-variant-numeric:tabular-nums}.tr-time-bounds span:last-child{text-align:right}.tr-timeline-tools{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-top:17px}.tr-time-navigation{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.th-replay .tr-time-navigation button{min-width:43px}.th-replay .tr-time-navigation label{font-size:10px;margin-left:6px}.th-replay .tr-time-navigation select{font-size:12px;max-width:205px;min-height:43px}.tr-time-note,.tr-time-pending{font-size:12px;line-height:1.6;color:var(--tr-muted);margin:14px 0 0}.tr-time-pending{margin:0 0 18px;color:var(--tr-gold)}
html[data-aaron-theme="light"] .th-replay input[data-tr-time-range],body[data-aaron-theme="light"] .th-replay input[data-tr-time-range]{accent-color:#b58a25}html[data-aaron-theme="light"] .th-replay .tr-timeline,body[data-aaron-theme="light"] .th-replay .tr-timeline{box-shadow:0 3px 13px rgba(99,77,36,.045)}
@media(max-width:700px){.tr-timeline{padding:16px;margin:16px 0 20px}.tr-timeline-head{gap:9px;align-items:flex-start;flex-wrap:wrap}.tr-timeline-head>div{min-width:0;flex:1 1 210px}.tr-timeline-head h2{font-size:18px}.tr-timeline-mode{font-size:10px;padding:7px 9px;max-width:100%;white-space:normal}.tr-time-bounds{font-size:9px;gap:12px}.tr-timeline-tools{gap:12px;align-items:stretch}.tr-time-navigation{width:100%;display:grid;grid-template-columns:43px minmax(0,1fr) 43px;gap:8px}.th-replay .tr-time-navigation label{grid-column:1/-1;margin:0;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:center}.th-replay .tr-time-navigation select{max-width:100%}.th-replay [data-tr-time-latest]{width:100%}.tr-time-note{font-size:11px}.th-replay input[data-tr-time-range]{min-height:44px}}
html[data-aaron-theme="light"] .th-replay .tr-end,body[data-aaron-theme="light"] .th-replay .tr-end{background:#f8eeea;border-color:#d1aaa5;color:#9c3645}
@media(max-width:950px){.tr-sim-controls{flex-direction:column;gap:15px}.tr-sim-buttons{justify-content:flex-start;max-width:100%;width:100%}.tr-sim-buttons button{flex:1}}
@media(max-width:700px){.tr-sim-controls{padding:15px;gap:13px}.tr-sim-controls p{font-size:11px}.tr-sim-controls-copy>strong{font-size:10px}.tr-sim-state{font-size:11px}.tr-sim-buttons{flex-direction:column}.th-replay .tr-sim-buttons button{width:100%;min-height:44px}.th-replay .tr-sim-action{min-height:44px}.tr-action-journal table{min-width:740px}}
