/* Replay Trader: a quiet, visual workspace for weekly study. */
[data-page-view="replay"]{--rp-ink:#15151e;--rp-muted:#797887;--rp-line:#e8e5ed;--rp-violet:#7c3aed;color:var(--rp-ink);padding-top:4px!important}
[data-page-view="replay"] *{box-sizing:border-box}
[data-page-view="replay"] button,[data-page-view="replay"] input,[data-page-view="replay"] select{font:inherit}
[data-page-view="replay"] button{cursor:pointer}
[data-page-view="replay"] button:focus-visible,[data-page-view="replay"] input:focus-visible,[data-page-view="replay"] select:focus-visible{outline:3px solid #a78bfa;outline-offset:3px}
.rp-head{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:25px 28px;border:1px solid #e8e3ef;border-radius:24px;background:radial-gradient(ellipse at 85% 0,#ebe2ff 0,transparent 55%),linear-gradient(120deg,#fff,#fbf9ff);box-shadow:0 12px 32px #26154007}
.rp-eyebrow{font-size:9px;font-weight:800;letter-spacing:1.8px;color:#86759d}
.rp-head h2{margin:8px 0 9px;font-size:38px;letter-spacing:-1.8px;line-height:1.05;color:#16151f!important;background:none!important;-webkit-text-fill-color:currentColor!important}
.rp-head h2 em{font-style:normal;color:#7c3aed}.rp-head p,.rp-section-head p{margin:0;color:#7a7686;font-size:12px;line-height:1.7}
.rp-controls label,.rp-tools label,.rb-period label{display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:700;color:#77717f}
.rp-controls input,.rp-tools select,.rb-period input,.rb-period select{border:1px solid #e3deec;border-radius:10px;background:#fff;padding:10px 12px;color:#292433;min-width:0;max-width:100%}
.rp-week-nav{display:flex;gap:6px;margin-top:8px}.rp-week-nav button{border:1px solid #e8e1f0;border-radius:8px;padding:7px 12px;background:#fff;color:#50455e;font-size:11px}
.rp-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.rp-summary article{padding:18px 20px;background:#fff;border:1px solid #e8e5ed;border-radius:18px;box-shadow:0 8px 18px #21163205;position:relative;overflow:hidden}.rp-summary article:before{content:'';position:absolute;left:0;top:20px;height:26px;width:3px;background:#a88cd3;border-radius:0 3px 3px 0}.rp-summary article>span{font-size:10px;color:#77717f;display:block}.rp-summary strong{display:block;margin:9px 0 7px;font-size:23px;letter-spacing:-.7px;font-weight:800}.rp-summary small{font-size:10px;color:#8a8491;line-height:1.6;display:block}
.rp-tools{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin:20px 0 12px}.rp-tools>div{display:flex;gap:10px;flex-wrap:wrap}.rp-tools select{min-width:140px;padding:8px 11px;font-size:11px}.rp-tools .rp-switch{flex-direction:row;align-items:center;font-size:11px;white-space:nowrap}.rp-switch input{accent-color:#7c3aed}.rp-subnote{font-size:10px;color:#8d8497;margin:10px 2px 16px;line-height:1.6}
.rp-review{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(260px,1fr);gap:0;background:#fff;border:1px solid #e5e0ee;border-radius:24px;overflow:hidden;box-shadow:0 20px 45px #21103b0a}
.rp-canvas{background:radial-gradient(ellipse at top,#292535,#131219);color:#fff;display:flex;flex-direction:column;min-width:0;position:relative}.rp-canvas-top,.rp-canvas-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 20px;font-size:10px;color:#afa5c2}.rp-canvas-top>span:first-child{color:#fff;font-weight:800}.rp-canvas-top b{font-weight:400;color:#a99dbc}.rp-canvas-bottom{border-top:1px solid #ffffff0b;padding:12px 16px}.rp-canvas-bottom button{padding:7px 10px;border:1px solid #ffffff16;background:#ffffff08;border-radius:9px;font-size:10px;color:#ded6ee}.rp-canvas-bottom button:disabled{opacity:.3;cursor:default}.rp-image-open{border:0;padding:0;background:transparent;position:relative;height:360px;width:100%;display:block}.rp-image-open img{display:block;width:100%;height:100%;object-fit:contain}.rp-image-open>span{position:absolute;bottom:12px;right:14px;border:1px solid #ffffff26;background:#171320cf;color:#ddd1f0;font-size:9px;padding:7px 10px;border-radius:8px}
.rp-context{padding:26px;min-width:0}.rp-context h3{font-size:21px;margin:9px 0 13px;letter-spacing:-.6px;color:#1d1726!important}.rp-outcome{display:inline-block;border:1px solid currentColor;border-radius:7px;padding:5px 9px;font-size:10px;font-weight:800}.rp-win{color:#13835b}.rp-loss{color:#bd4a60}.rp-flat{color:#8b819a}.rp-context dl{display:grid;grid-template-columns:1fr 1fr;gap:15px 12px;margin:23px 0;padding-bottom:20px;border-bottom:1px solid #ece7f1}.rp-context dt{font-size:9px;color:#958b9e;margin-bottom:4px}.rp-context dd{font-size:11px;color:#40364a;margin:0;font-weight:650;overflow-wrap:anywhere}.rp-context h4{font-size:11px;margin:0 0 8px}.rp-note{font-size:12px;line-height:1.85;color:#6e6479;white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow-y:auto}.rp-review-prompt{font-size:10px;line-height:1.7;color:#9a8ba9;border-left:2px solid #ddd0ef;padding-left:10px}.rp-context>button,.rp-empty>button{background:#f4effb;color:#7544aa;border:1px solid #e2d6f0;border-radius:10px;font-weight:700;padding:10px 12px;font-size:10px;margin-top:8px}
.rp-film{margin-top:26px}.rp-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 4px 14px}.rp-section-head h3{font-size:15px;margin:0 0 4px}.rp-section-head>span{font-size:10px;color:#93879f}.rp-filmstrip{display:flex;gap:13px;overflow-x:auto;padding:4px 4px 17px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#c6b2de transparent}.rp-frame{scroll-snap-align:center;flex:0 0 216px;min-width:0;text-align:left;border:1px solid #e5dfeb!important;border-radius:14px;padding:6px 6px 10px;background:#fff;transition:transform .2s,box-shadow .2s;color:#40364c!important}.rp-frame[aria-pressed="true"]{border-color:#9861ca!important;box-shadow:0 7px 18px #8455b329;transform:translateY(-3px)}.rp-frame>div{height:106px;border-radius:9px;overflow:hidden;background:#1b1820;display:grid;place-items:center}.rp-frame img{width:100%;height:100%;object-fit:contain}.rp-frame>strong{display:flex;justify-content:space-between;gap:7px;padding:9px 5px 4px;font-size:11px}.rp-frame>strong span{font-size:9px;font-weight:600;color:#8e8398}.rp-frame>small{padding:0 5px;font-size:9px;color:#9c90a6}.rp-thumb-empty{font-size:9px;letter-spacing:1px;color:#8b7f97}.rp-no-photo{height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:24px;color:#b8aaca}.rp-no-photo svg{width:52px;fill:none;stroke:#786488;stroke-width:1.5}.rp-no-photo strong{font-size:13px}.rp-no-photo span{font-size:10px;max-width:260px;line-height:1.7}.rp-empty{padding:60px 25px;text-align:center;border:1px dashed #daccE9;border-radius:24px;background:linear-gradient(140deg,#fff,#f8f4fc)}.rp-empty>span{font-size:40px;color:#a988c9}.rp-empty h3{font-size:21px;margin:15px 0 10px}.rp-empty p{font-size:12px;color:#8a7c97;line-height:1.8;max-width:500px;margin:0 auto}
.rp-hours{margin-top:14px;padding:17px 20px;border:1px solid #e9e2ef;background:#fff;border-radius:16px}.rp-hours summary{cursor:pointer;font-size:12px;font-weight:700;color:#665172}.rp-hours p{font-size:10px;line-height:1.7;color:#998bA4}.rp-hours>div{overflow:auto}.rp-hours table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}.rp-hours th,.rp-hours td{padding:11px;border-bottom:1px solid #eee8f2;white-space:nowrap}.rp-hours th{color:#887a93;font-size:9px;font-weight:600}
.rp-lightbox{max-width:95vw;width:1100px;max-height:92vh;border:1px solid #514661;border-radius:16px;background:#111015;padding:40px 16px 16px;box-shadow:0 30px 120px #0009}.rp-lightbox::backdrop{background:#100b1dda;backdrop-filter:blur(6px)}.rp-lightbox img{display:block;width:100%;max-height:80vh;object-fit:contain}.rp-lightbox button{position:absolute;right:12px;top:9px;background:#302538;border:0;border-radius:7px;color:#fff;padding:6px 10px;cursor:pointer}
.rb-period{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.rb-period [hidden]{display:none!important}.rb-period input,.rb-period select{padding:7px 10px;font-size:11px}.rb-period-note{font-size:11px;color:#8e819d;line-height:1.7}.rb-year-strip{padding:20px;border:1px solid #e5dfed;border-radius:18px;background:linear-gradient(120deg,#fff,#faf7ff);margin:16px 0 22px}.rb-chart-title{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.rb-chart-title strong{font-size:13px}.rb-chart-title small{font-size:10px;color:#93849e}.rb-months{display:grid;grid-template-columns:repeat(12,minmax(35px,1fr));gap:10px;padding-top:20px;overflow:auto}.rb-months>div{text-align:center;font-size:10px}.rb-months strong{font-size:10px;color:#846097}.rb-month-track{height:54px;background:#eee8f5;border-radius:5px;margin:7px auto;width:18px;display:flex;align-items:end;overflow:hidden}.rb-month-track i{width:100%;background:linear-gradient(#b99be4,#765095);border-radius:4px}.rb-months span{display:block;color:#62566d;font-weight:700}.rb-months small{font-size:8px;white-space:nowrap;color:#a193ae}
@media(max-width:1050px){.rp-head{padding:22px}.rp-review{grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr)}.rp-context{padding:20px}.rp-summary{gap:8px}.rp-summary article{padding:15px}.rp-summary strong{font-size:20px}.rb-months{gap:6px}}
@media(max-width:760px){.rp-head{align-items:flex-start;flex-direction:column;gap:17px}.rp-head h2{font-size:32px}.rp-controls{width:100%}.rp-controls input{width:100%}.rp-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-tools{flex-direction:column;align-items:flex-start}.rp-tools>div{width:100%}.rp-tools>div label{flex:1;min-width:110px}.rp-tools select{min-width:0}.rp-review{grid-template-columns:1fr}.rp-image-open,.rp-no-photo{height:280px}.rp-canvas-bottom{font-size:9px;padding:10px}.rp-canvas-bottom button{font-size:9px}.rp-context{padding:22px}.rp-context dl{margin:16px 0}.rp-note{max-height:none}.rp-section-head{align-items:flex-start;flex-direction:column}.rp-frame{flex-basis:190px}.rb-chart-title{flex-direction:column}.rb-months{grid-template-columns:repeat(12,45px)}.rb-period{width:100%}.rb-period label{flex:1}.rp-summary small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.rp-frame{transition:none!important}.rp-frame[aria-pressed="true"]{transform:none}}
/* Keep the Replay header as the single title for this workspace. */
.dash-main:has(.page.is-active[data-page-view="replay"]) .dash-topbar{display:none!important}
.dash-main [data-page-view="replay"] .rp-head h2 em{color:#7c3aed!important;-webkit-text-fill-color:#7c3aed!important}
