/* Reflection — the backtesting tape, with the day's trades on the left. */
body[data-v2-route="reflection"] #v2-shell-footer { display: none !important; }
body[data-v2-route="reflection"] .ss-support-orb,
body[data-v2-route="reflection"] .ss-support-orb-badges,
body[data-v2-route="reflection"] .ss-support-orb-stage,
body[data-v2-route="reflection"] .tbf-med-launch { display: none !important; }
body[data-v2-route="reflection"] .v2-app { height: 100dvh; min-height: 0; overflow: hidden; }
body[data-v2-route="reflection"] .v2-view { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

.tv-page {
  flex: 1; min-height: 0; max-width: none; margin: 0; padding: 0; gap: 0;
  background: #0a0a0c; color: var(--wot-text-1);
  display: flex; flex-direction: column;
}
.tv-top {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 14px; background: #101014; border-bottom: 1px solid rgba(255,255,255,.08);
}
.tv-title h1 { margin: 0; font-size: 18px; letter-spacing: -0.02em; color: #fff; }
.tv-title .jn-hero-k { font-size: 10px; }
.tv-date-row { display: flex; align-items: center; gap: 8px; position: relative; flex-wrap: wrap; }
.tv-cal-btn {
  appearance: none; height: 34px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12); background: #16161c; color: #fff;
  font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
}
.tv-cal-btn:hover { border-color: #ff6b1f; }
.tv-cal {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30;
  width: 280px; padding: 12px; border-radius: 14px;
  background: #16161c; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.tv-cal header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tv-cal header b { font-size: 13px; color: #fff; }
.tv-cal header button, .tv-cal-g button {
  appearance: none; border: 0; background: transparent; color: #ddd; cursor: pointer; font: inherit;
}
.tv-cal header button { width: 28px; height: 28px; border-radius: 8px; font-size: 16px; }
.tv-cal header button:hover { background: rgba(255,255,255,.08); }
.tv-cal-d, .tv-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.tv-cal-d { margin-bottom: 4px; }
.tv-cal-d span { font-size: 10px; font-weight: 800; color: #7a7a85; }
.tv-cal-g button { height: 32px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #555; }
.tv-cal-g button.has { color: #fff; }
.tv-cal-g button.has:hover { background: rgba(255,107,31,.2); }
.tv-cal-g button.is-on { background: var(--wot-grad); color: #fff; }
.tv-cal-g button:disabled { cursor: default; }
.tv-cal-g i { display: block; }
.tv-span { display: flex; padding: 3px; border-radius: 11px; background: #0c0c10; border: 1px solid rgba(255,255,255,.08); }
.tv-span button {
  appearance: none; border: 0; background: transparent; color: #9a9aa6;
  font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
}
.tv-span button.is-on { background: var(--wot-grad); color: #fff; }
.tv-arrow {
  appearance: none; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12); background: #16161c; color: #fff;
  font-size: 15px; cursor: pointer;
}
.tv-arrow:disabled { opacity: .35; cursor: default; }
.tv-arrow:hover:not(:disabled) { border-color: #ff6b1f; }
.tv-page [data-filters], .tv-page [data-book] { padding: 0 12px; background: #101014; }
/* Same air as the Book row on Plan / Trades / Reports. Empty on prod, so no band. */
.tv-page [data-book]:not(:empty) { padding: 14px 12px 16px; }
.tv-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.tv-rail {
  overflow: auto; background: #101014; border-right: 1px solid rgba(255,255,255,.08);
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.tv-rail-k { margin: 0 2px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--wot-text-2); }
.tv-card {
  appearance: none; text-align: left; width: 100%; cursor: pointer; font: inherit; color: inherit;
  background: #16161c; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px;
}
.tv-card.is-chart { border-color: rgba(255,107,31,.55); }
.tv-card.is-on { background: #1c1412; box-shadow: inset 3px 0 0 var(--trade, #ff6b1f); }
.tv-card header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.tv-n { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--trade, #bbb); }
.tv-sym { font-size: 14px; color: #fff; }
.tv-card.is-chart .tv-sym { color: #ffb087; }
.tv-card header em { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .03em; }
.tv-card header span { margin-left: auto; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tv-card header span i { font-style: normal; font-weight: 700; opacity: .8; margin-left: 4px; }
.tv-card ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.tv-card li {
  display: grid; grid-template-columns: 36px minmax(64px, auto) 1fr auto; gap: 6px;
  font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; color: #ddd;
}
.tv-card li.is-buy b { color: #3dd68c; }
.tv-card li.is-sell b { color: #ff5d5d; }
.tv-card li.is-muted { display: block; color: var(--wot-text-2); font-weight: 500; }
.tv-mistakes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tv-mistakes i {
  font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .02em;
  padding: 2px 6px; border-radius: 5px; background: rgba(239,68,68,.16); color: #ff8a8a;
}
.tv-span-hint { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; color: #ffb087; }
.tv-open, .tv-note { display: block; margin-top: 6px; font-size: 11px; color: var(--wot-text-2); }
.tv-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-empty { color: var(--wot-text-2); font-size: 13px; margin: 8px; }
.tv-page .bt-stage { min-height: 0; height: 100%; }
.tv-page .tv-leaders, .tv-page .tv-dots {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
}
.tv-page .tv-leaders { z-index: 1; }
.tv-page .tv-dots { z-index: 3; }
.tv-page .tv-chip {
  position: absolute; z-index: 2; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border-radius: 5px; background: rgba(12,12,16,.94); border: 1px solid var(--c, #fff);
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
  font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff;
  white-space: nowrap;
}
.tv-page .tv-chip i { font-style: normal; letter-spacing: .04em; color: var(--c, #fff); }
.tv-page .tv-chip b { letter-spacing: .06em; color: var(--c, #fff); }
.tv-page .tv-chip span { font-weight: 700; color: #ddd; }
.tv-page .tv-chip-m, .tv-page .tv-chip-n {
  font-style: normal; font-size: 10px; font-weight: 800;
  max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tv-page .tv-chip-m { color: #ff8a8a; }
.tv-page .tv-chip-n { color: #d7d7e0; font-weight: 650; }
.tv-page .tv-chip:hover {
  z-index: 6; height: auto; max-width: 280px; flex-wrap: wrap;
  white-space: normal; padding: 5px 8px;
}
.tv-page .tv-chip:hover .tv-chip-m, .tv-page .tv-chip:hover .tv-chip-n {
  max-width: none; flex: 1 0 100%; overflow: visible; text-overflow: unset; white-space: normal;
}
@media (max-width: 900px) {
  .tv-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(280px, 1fr); }
  .tv-rail { max-height: 34vh; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}
