/* replay.css: Weekend mode (replay.js; rel1104 E, renamed rel1105). One file,
   byte-identical in the prod tree (redesign/web) and the QA tree (relay/web,
   redesign/qa-web). The Weekend mode chrome is ORANGE everywhere (bar, tag,
   chart frame, chart-title tags, status dot, load screen) so a recorded day
   can never pass for live data. */
:root{ --rp:#ff8a1f; --rp-ink:#1a0e02; --rp-dim:rgba(255,138,31,.14); --rp-line:rgba(255,138,31,.55) }

/* top-bar entry: shown only while /auth/me lists 'replay' (Weekend mode) */
.rpbtn{position:relative}
.rpbtn .ic{color:var(--rp)}
.rpbtn.on,.rpbtn[aria-pressed="true"]{background:var(--rp-dim);border-color:var(--rp);color:var(--hi)}
/* below 1800 px the entry is its icon (the label "Weekend mode" is its
   tooltip and aria-label), so the live status text keeps its room (review
   R3-10; the rel1105 label is longer than "Replay" was) */
@media (max-width:1799.98px){ .rpbtn .t{display:none} .rpbtn{padding:0 8px} }
/* and below 1400 px, while the entry shows, the Levels button gives up its
   word too (its icon and tooltip stay) */
@media (min-width:700px) and (max-width:1399.98px){
  .cmd-right:has(> #rpbtn:not([hidden])) #insbtn .t{display:none}
  .cmd-right:has(> #rpbtn:not([hidden])) #insbtn{padding:0 8px}
}
/* the weekend's first look (review R3-11): an orange dot on the entry until
   the member opens Weekend mode once in that window, and a one-time note under it */
.rpbtn.new::after{content:'';position:absolute;top:3px;right:3px;width:8px;height:8px;border-radius:50%;
  background:var(--rp);box-shadow:0 0 0 2px var(--panel)}
.rp-coach{position:fixed;z-index:80;display:flex;align-items:center;gap:10px;width:max-content;max-width:min(430px, calc(100vw - 16px));
  padding:10px 8px 10px 14px;background:var(--fx-panel,#0e131a);color:var(--fx-text,#d9e0e9);border:1px solid var(--rp);
  border-radius:var(--r3,10px);box-shadow:var(--shadow,0 12px 32px rgba(0,0,0,.5));font-size:12.5px;line-height:1.4}
.rp-co-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.rp-co-t b{color:var(--fx-hi,#f3f6fa);font-weight:650}
.rp-co-open{flex:none;background:var(--rp);border-color:var(--rp);color:var(--rp-ink);font-weight:650}
.rp-co-open:hover{background:#ffa04a;color:var(--rp-ink)}
.rp-co-x{flex:none;color:var(--fx-muted,#8290a4);font-size:16px}
.rp-co-u,.rp-co-w{font-style:normal}
@media(max-width:699.98px){ .rp-coach{flex-wrap:wrap;font-size:12px} .rp-co-t{flex:1 1 100%} }

/* the bar between the top bar and the charts: one row on a desktop —
   what · day + transport · speed · scrubber · jumps · back to live */
.rpbar{flex:none;display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;min-height:46px;padding:6px var(--s3);
  background:linear-gradient(90deg, rgba(255,138,31,.16), rgba(255,138,31,.05) 45%, transparent),var(--panel);
  border-top:2px solid var(--rp);border-bottom:1px solid var(--rp-line);position:relative;z-index:20;font-size:12px}
.rp-id{display:flex;align-items:center;gap:8px;min-width:0;flex:none}
.rp-tag{font:800 11px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--rp-ink);background:var(--rp);
  padding:5px 8px 4px;border-radius:var(--r1);flex:none;cursor:help}
.rpbar.playing .rp-tag{animation:rp-pulse 2s ease-in-out infinite}
@keyframes rp-pulse{50%{box-shadow:0 0 0 4px var(--rp-dim)}}
@media (prefers-reduced-motion:reduce){ .rpbar.playing .rp-tag{animation:none} }
.rp-when{font:700 14px/1.2 var(--mono);color:var(--hi);white-space:nowrap;font-variant-numeric:tabular-nums;min-width:0;overflow:hidden;text-overflow:ellipsis}
.rp-cat{font:600 11px var(--mono);color:var(--rp);border:1px solid var(--rp-line);border-radius:var(--r1);padding:2px 6px;flex:none}
.rp-cat:empty{display:none}
/* the offered week ("This week: Nov 2 – 6"): beside the day picker from
   1400 px (review R3-3: it was 1760); narrower, the picker's group heading,
   the coach note and the load screen say it */
.rp-wk{display:none;font:600 11.5px var(--mono);color:var(--muted);white-space:nowrap}
@media (min-width:1400px){ .rp-wk:not(:empty){display:inline} }
.rp-ctl{display:flex;align-items:center;gap:8px;flex:none}
.rp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rp-day select{height:30px;max-width:230px;padding:0 26px 0 9px;border-radius:var(--r2);border:1px solid var(--line2);
  background:var(--bg);color:var(--hi);font:600 12px var(--mono);cursor:pointer}
.rp-day select:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.rp-tr{display:inline-flex;align-items:center;gap:2px}
.rp-ib{color:var(--text)}
.rp-ib .ic .f{fill:currentColor;stroke:none}
.rp-play{width:36px;height:30px;background:var(--rp);color:var(--rp-ink);border-radius:var(--r2)}
.rp-play:hover{background:#ffa04a;color:var(--rp-ink)}
.rp-speed>button{min-width:34px}
input.rp-scrub{flex:1 1 200px;min-width:140px;width:auto}
input.rp-scrub::-webkit-slider-runnable-track{background:linear-gradient(90deg, var(--rp-line), var(--panel3))}
input.rp-scrub::-webkit-slider-thumb{background:var(--rp);border-color:var(--panel)}
input.rp-scrub::-moz-range-thumb{background:var(--rp)}
.rp-jumps>button:disabled{opacity:.35;cursor:default}
.rp-msg{flex:1 1 100%;order:9;font-size:11.5px;color:var(--muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-msg:empty{display:none}
.rp-msg.err{color:var(--neg-t)}
.rp-exit{flex:none;font-weight:600}
.rp-exit .rp-live{width:7px;height:7px;border-radius:50%;background:var(--pos);box-shadow:0 0 0 3px var(--pos-dim)}
.rp-x2{display:none}
/* the short form is "Exit", without the green dot: a dot + "Live" read like
   a LIVE badge next to recorded candles (review R3-6) */

/* in Weekend mode: the chart area is framed and every chart title says so;
   the cross-map "mapped at" badge (xmap.js) is about live snapshots — off.
   The frame is drawn ABOVE the charts (review R3-1: an inset shadow on
   #main itself sat under the opaque chart cells and never showed) */
body.rp-on #main{position:relative}
body.rp-on #main::after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 0 2px var(--rp-line);pointer-events:none;z-index:6}
body.rp-on .ctitle::after{content:'WEEKEND';margin-left:7px;padding:1px 5px;border-radius:3px;vertical-align:1px;
  font:800 9px/1.3 var(--mono);letter-spacing:.12em;color:var(--rp-ink);background:var(--rp)}
/* a chart narrower than ~830 px (four-up below ~1700 px, tablets, phones):
   the header's width breakpoints have no room for the tag (review R3-12:
   the reading ran under the expand button, a badge was cut) — an orange
   dot after the ticker says it instead (review R3-1), with the frame */
@container (max-width:829.98px){
  body.rp-on .ctitle::after{content:'';display:inline-block;width:7px;height:7px;padding:0;margin-left:5px;border-radius:50%;
    vertical-align:1px;box-shadow:0 0 0 2px var(--rp-dim)}
}
/* "No GEX yet · from 09:36 ET": clipped before the expand button (review R3-9) */
.rp-nogex{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;grid-column:2/-1;grid-row:1;
  font:500 11px var(--mono);color:var(--muted)}
body.rp-on .xmb{display:none !important}
body.rp-on .dot.demo{background:var(--rp);box-shadow:0 0 0 3px var(--rp-dim)}

/* 700–1700 px (review R3-13: the bar wrapped to two ragged rows with Back
   to live alone; rel1105: up to 1600 px for the longer WEEKEND MODE tag,
   then 1700 px for the week label shown from 1400 px — 1600–1640 wrapped):
   tighter controls and the short "Exit" — one row from 1200 px; below that
   a deliberate two-row grid (review R3-2: 1100–1199 wrapped raggedly) */
@media (min-width:700px) and (max-width:1699.98px){
  .rpbar{gap:6px 8px}
  .rp-day select{max-width:170px}
  .rp-speed>button{min-width:28px;padding:0 5px}
  .rp-jumps>button{padding:0 6px}
  input.rp-scrub{flex:1 1 80px;min-width:80px}    /* the basis decides the wrap, not min-width */
  .rp-x1,.rp-exit .rp-live{display:none} .rp-x2{display:inline}
}
/* 700–1199 px: two rows — what · day + transport · exit / speed · scrubber
   · jumps. The tag is "WEEKEND" here (review R3-4: the long tag pushed Exit
   over the forward button at 700 px); the speed box keeps its own width and
   the scrubber takes the rest (review R3-7) */
@media (min-width:700px) and (max-width:1199.98px){
  .rp-tm{display:none}
  .rpbar{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;
    grid-template-areas:"id id ctl exit" "speed scrub scrub jumps"}
  .rpbar.has-msg{grid-template-areas:"id id ctl exit" "speed scrub scrub jumps" "msg msg msg msg"}
  .rp-id{grid-area:id} .rp-ctl{grid-area:ctl;justify-content:flex-start;min-width:0} .rp-exit{grid-area:exit;justify-self:end}
  .rp-speed{grid-area:speed;justify-self:start} input.rp-scrub{grid-area:scrub;width:100%;min-width:0} .rp-jumps{grid-area:jumps;justify-self:end}
  .rp-msg{grid-area:msg}
  .rp-day select{max-width:150px}
}
/* phone (< 700 px): a grid — what + live / day + transport / scrubber /
   speed + jumps */
@media(max-width:699.98px){
  .rpbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"id id exit" "ctl ctl ctl" "scrub scrub scrub" "speed jumps jumps" "msg msg msg";
    gap:6px 8px;padding:6px var(--s2) 8px}
  .rp-id{grid-area:id;gap:6px}
  .rp-tm{display:none}                            /* "WEEKEND": the time keeps its room */
  .rp-when{font-size:12.5px}
  .rp-exit{grid-area:exit;height:32px;padding:0 10px;gap:6px}
  .rp-x1,.rp-exit .rp-live{display:none} .rp-x2{display:inline}
  .rp-ctl{grid-area:ctl;justify-content:space-between}
  .rp-day select{height:36px;max-width:none;width:100%;font-size:12px}
  .rp-day{flex:1;min-width:0}
  .rp-ib{width:38px;height:36px}
  .rp-play{width:48px;height:36px}
  .rp-speed{grid-area:speed;height:34px}
  .rp-speed>button{height:28px;min-width:30px;padding:0 4px}
  input.rp-scrub{grid-area:scrub;width:100%;min-width:0;height:24px}
  .rp-jumps{grid-area:jumps;height:34px;justify-content:space-between}
  .rp-jumps>button{flex:1;height:28px;padding:0 2px}
  .rp-msg{grid-area:msg;white-space:normal}
  body.rp-on .ctitle::after{font-size:8.5px;margin-left:5px}
}
@media(max-width:380px){
  .rp-tag{letter-spacing:.08em;padding:5px 6px 4px}
  .rp-speed>button{min-width:26px;padding:0 3px}
  .rp-cat{display:none}
}
/* a day still loading: the transport waits */
.rpbar.busy .rp-tr,.rpbar.busy .rp-speed,.rpbar.busy input.rp-scrub,.rpbar.busy .rp-jumps{opacity:.45;pointer-events:none}

/* ── the load screen (rel1105): night vision's #nvload, in Weekend mode's
   orange — icon row, one two-line line, a progress bar, a status line ── */
.rpload{position:fixed;inset:0;z-index:300;background:#0b0602;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:20px;font-family:var(--mono);color:var(--rp);
  text-align:center;padding:var(--s5,24px);outline:none}
.rpload.hidden{display:none}
.rpload::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(0deg, rgba(255,138,31,.06) 0 1px, transparent 1px 3px)}
.rpl-ic{display:flex;align-items:center;gap:14px;font-size:44px;line-height:1;text-shadow:0 0 22px rgba(255,138,31,.8)}
.rpl-ic svg{width:96px;height:26px;fill:var(--rp);filter:drop-shadow(0 0 10px rgba(255,138,31,.75))}
.rpl-big{font-size:21px;font-weight:700;letter-spacing:2px;max-width:620px;line-height:1.55;color:#ffb469;
  text-shadow:0 0 14px rgba(255,138,31,.55)}
.rpl-small{font-size:12px;color:#b8641c;letter-spacing:4px}
.rpl-small>span{display:inline-block}            /* "REWINDING THE TAPE" · "NOV 2 – 6…": a phone wraps between them */
.rpl-wk:empty{display:none}
.rpl-bar{width:300px;max-width:80vw;height:8px;border:1px solid #b8641c;border-radius:var(--r1,3px);overflow:hidden}
.rpl-bar i{display:block;height:100%;width:0;background:var(--rp);animation:rpfill 2s linear forwards}
@keyframes rpfill{to{width:100%}}
.rpload.rm .rpl-bar i{animation:none;width:100%}
@media (prefers-reduced-motion:reduce){ .rpl-bar i{animation:none;width:100%} }
@media(max-width:699.98px){
  .rpload{gap:16px;padding:var(--s4,16px)}
  .rpl-ic{font-size:34px;gap:10px} .rpl-ic svg{width:78px;height:21px}
  .rpl-big{font-size:16px;letter-spacing:1px;line-height:1.5}
  .rpl-small{font-size:11px;letter-spacing:3px}
}

/* ── Weekend mode has ended (rel1105): at Sunday's close everyone in it is
   back on live; this says so, and when it opens again (OK, or 2 min) ── */
.rp-end{position:fixed;z-index:90;top:64px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;
  width:max-content;max-width:min(520px, calc(100vw - 16px));padding:12px 10px 12px 16px;
  background:var(--fx-panel,#0e131a);color:var(--fx-text,#d9e0e9);border:1px solid var(--rp);border-left-width:4px;
  border-radius:var(--r3,10px);box-shadow:var(--shadow,0 12px 32px rgba(0,0,0,.5));font-size:13px;line-height:1.4}
.rp-end-t{display:flex;flex-direction:column;gap:3px;min-width:0}
.rp-end-t b{color:var(--fx-hi,#f3f6fa);font-weight:650}
.rp-end-n{color:var(--fx-muted,#8290a4);font-size:12.5px}
.rp-end-w{color:var(--rp);font-size:12px}
.rp-end-ok{flex:none;background:var(--rp);border-color:var(--rp);color:var(--rp-ink);font-weight:650;min-width:52px}
.rp-end-ok:hover{background:#ffa04a;color:var(--rp-ink)}
@media(max-width:699.98px){ .rp-end{width:calc(100vw - 16px);font-size:12.5px;padding:10px 8px 10px 12px} }
