/* Mean Reversion Screener page */

.mr-hero{
  position:relative; overflow:hidden; padding:56px 0 40px;
  background: var(--indigo-soft); border-bottom:1px solid var(--line);
}
.mr-orb{ position:absolute; border-radius:50%; filter:blur(100px); pointer-events:none; opacity:0.32; }
.mr-orb-1{ width:460px; height:460px; background:#8B7FFF; top:-200px; right:-140px; }
.mr-orb-2{ width:360px; height:360px; background:#2fd678; bottom:-180px; left:-120px; }
.mr-hero .wrap{ position:relative; z-index:1; }
/* This page is reached from the Screener (it has no top-level nav link of its own),
   so say so and link back. */
.mr-parent-link{ display:inline-block; margin-bottom:14px; font-size:13px; font-weight:700; color: var(--indigo-dark); }
.mr-parent-link:hover{ text-decoration:underline; }
.mr-hero h1{
  font-family:'Instrument Sans', sans-serif; font-weight:600; font-size:clamp(34px, 5vw, 54px); line-height:1.03;
  letter-spacing:-0.01em; margin:16px 0 18px;
}
.mr-hero .lede{ font-size:16px; line-height:1.65; color: var(--ink-soft); max-width:800px; margin:0 0 20px; }

.mr-explainer{ max-width:800px; margin:0 0 22px; }
.mr-explainer h2{
  font-family:'Instrument Sans', sans-serif; font-weight:600; font-size:19px; line-height:1.3; margin:0 0 8px; color: var(--ink);
}
.mr-explainer p{ font-size:14.5px; line-height:1.65; color: var(--ink-soft); margin:0; }
.mr-explainer strong{ color: var(--ink); }

.mr-methodology-details summary{
  cursor:pointer; font-size:13.5px; font-weight:700; color: var(--ink-soft); list-style:none;
  display:flex; align-items:center; gap:8px;
}
.mr-methodology-details summary::-webkit-details-marker{ display:none; }
.mr-methodology-details summary::before{ content:"+"; font-size:16px; font-weight:800; color: var(--indigo-dark); flex:none; }
.mr-methodology-details[open] summary::before{ content:"\2212"; }
.mr-methodology-body{ margin-top:14px; font-size:13.5px; line-height:1.65; color: var(--ink-soft); max-width:820px; }
.mr-methodology-body ul{ margin:10px 0; padding-left:20px; }
.mr-methodology-body li{ margin-bottom:6px; }
.mr-methodology-body strong{ color: var(--ink); }
.mr-methodology-body a{ color: var(--indigo-dark); text-decoration:underline; }

/* ---------------- Market regime + sector breadth strip ---------------- */

.mr-context{
  padding:20px 0; background: radial-gradient(140% 160% at 85% -10%, #17233F 0%, var(--band-mid) 45%, var(--band-dark) 100%);
  border-top:1px solid rgba(255,255,255,0.06);
}
.mr-regime-card{
  display:flex; flex-wrap:wrap; align-items:center; gap:18px 28px;
  background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:16px;
  padding:16px 20px; margin-bottom:16px;
}
.mr-regime-loading{ font-size:12.5px; color: rgba(255,255,255,0.4); }
.mr-regime-badge{
  font-size:12px; font-weight:800; letter-spacing:.03em; text-transform:uppercase;
  padding:6px 14px; border-radius:999px; flex:none;
}
.mr-regime-badge--up{ background: rgba(143,217,138,0.16); color:var(--pos-strong); }
.mr-regime-badge--down{ background: rgba(255,138,117,0.16); color:#FF8A75; }
.mr-regime-badge--mixed{ background: rgba(255,194,87,0.16); color:#FFC257; }
.mr-regime-stat{ display:flex; flex-direction:column; gap:2px; }
.mr-regime-stat-lbl{ font-size:11px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color: rgba(255,255,255,0.4); }
.mr-regime-stat-val{ font-size:13.5px; font-weight:700; color:#fff; font-variant-numeric: tabular-nums; }
.mr-regime-stat-val.pos{ color:var(--pos-strong); }
.mr-regime-stat-val.neg{ color:#FF8A75; }

.mr-sector-strip-label{ font-size:11px; color: rgba(255,255,255,0.4); margin:0 0 8px; }
.mr-sector-strip{
  display:flex; gap:10px; overflow-x:auto; padding-bottom:4px;
}
.mr-sector-strip::-webkit-scrollbar{ height:6px; }
.mr-sector-strip::-webkit-scrollbar-track{ background:transparent; }
.mr-sector-strip::-webkit-scrollbar-thumb{ background: rgba(139,127,255,0.45); border-radius:999px; }
.mr-sector-chip{
  flex:0 0 auto; min-width:128px; background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08);
  border-radius:12px; padding:10px 13px;
}
.mr-sector-chip-name{ font-size:11.5px; font-weight:700; color:#fff; margin-bottom:6px; white-space:nowrap; }
.mr-sector-chip-pct{ font-family:'Instrument Sans', sans-serif; font-size:19px; font-weight:600; color:#FFC257; }
.mr-sector-chip-pct.high{ color:#FF8A75; }
.mr-sector-chip-pct.low{ color:var(--pos-strong); }
.mr-sector-chip-sub{ font-size:11px; color: rgba(255,255,255,0.4); margin-top:2px; }

/* ---------------- Composite Rebound Score ---------------- */

.mr-composite-details{ margin:2px 0 14px; }
.mr-composite-details summary{
  cursor:pointer; font-size:11.5px; font-weight:700; color: rgba(255,255,255,0.6); list-style:none;
  display:flex; align-items:center; gap:6px; padding:4px 0;
}
.mr-composite-details summary::-webkit-details-marker{ display:none; }
.mr-composite-details summary::before{ content:"+"; font-size:14px; font-weight:800; color:#8B7FFF; flex:none; }
.mr-composite-details[open] summary::before{ content:"\2212"; }
.mr-composite-body{ margin-top:10px; padding:12px; background: rgba(255,255,255,0.03); border-radius:12px; }
.mr-composite-intro{ font-size:11px; color: rgba(255,255,255,0.45); line-height:1.5; margin:0 0 12px; }
.mr-weight-row{ margin-bottom:10px; }
.mr-weight-row label{ display:flex; justify-content:space-between; font-size:11px; color: rgba(255,255,255,0.6); margin-bottom:4px; }
.mr-weight-row label span{ font-weight:700; color:#8B7FFF; }
.mr-weight-row input[type="range"]{ width:100%; accent-color:#8B7FFF; }
.mr-composite-toggle{ margin-top:10px; padding-top:10px; border-top:1px solid rgba(255,255,255,0.08); }
.mr-composite-toggle label{ display:flex; align-items:center; gap:7px; font-size:11.5px; color: rgba(255,255,255,0.7); cursor:pointer; }
.mr-composite-toggle input{ accent-color:#2fd678; }
.mr-row-composite{ font-size:11px; font-weight:800; color:var(--band-dark); background:#2fd678; border-radius:999px; padding:2px 8px; flex:none; }

/* ---------------- Falling Knife card ---------------- */

.mr-knife-empty{ font-size:12.5px; color: rgba(255,255,255,0.4); }
.mr-knife-summary{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.mr-knife-pill{ font-size:11.5px; font-weight:800; padding:5px 12px; border-radius:999px; letter-spacing:.02em; }
.mr-knife-pill--clear{ background: rgba(143,217,138,0.16); color:var(--pos-strong); }
.mr-knife-pill--caution{ background: rgba(255,194,87,0.16); color:#FFC257; }
.mr-knife-pill--risk{ background: rgba(255,138,117,0.16); color:#FF8A75; }
.mr-knife-flags{ display:flex; flex-direction:column; gap:8px; }
.mr-knife-flag{ display:flex; align-items:flex-start; gap:8px; font-size:11.5px; line-height:1.4; }
.mr-knife-flag-icon{ flex:none; width:15px; height:15px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; margin-top:1px; }
.mr-knife-flag-icon.on{ background: rgba(255,138,117,0.2); color:#FF8A75; }
.mr-knife-flag-icon.off{ background: rgba(143,217,138,0.16); color:var(--pos-strong); }
.mr-knife-flag-icon.na{ background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.35); }
.mr-knife-flag-label{ color: rgba(255,255,255,0.7); }
.mr-knife-flag-val{ color: rgba(255,255,255,0.45); }
.mr-knife-note{ font-size:11px; color: rgba(255,255,255,0.4); line-height:1.5; margin:10px 0 0; }
.mr-knife-earnings{ margin-top:12px; padding:8px 10px; border-radius:8px; font-size:11px; line-height:1.5; background: rgba(255,194,87,0.08); color:#FFC257; }
.mr-knife-nodata{ font-size:11.5px; color: rgba(255,255,255,0.4); margin-top:8px; }

.mr-sector-context{ font-size:11.5px; color: rgba(255,255,255,0.5); line-height:1.5; margin:12px 0 0; padding-top:12px; border-top:1px solid rgba(255,255,255,0.08); }

/* ---------------- Dashboard (dark workspace, same theme-invariant
   treatment as .ta-band / .dcf-band - a hand-rolled SVG chart with 5
   overlays needs fixed, known colors regardless of light/dark mode) ---------------- */

.mr-dash{
  position:relative; overflow:hidden; padding:36px 0 60px;
  background: radial-gradient(140% 160% at 85% -10%, #17233F 0%, var(--band-mid) 45%, var(--band-dark) 100%);
  color:#fff;
}
.mr-dash-wrap{
  display:grid; grid-template-columns: 30fr 45fr 25fr; gap:20px; align-items:start;
}

.mr-panel{
  background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:20px;
  padding:22px; min-width:0;
}

/* ---- Left: Screener/Watchlist ---- */
.mr-panel-head{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:14px; }
.mr-panel-head h2{ font-family:'Instrument Sans', sans-serif; font-size:20px; font-weight:600; color:#fff; margin:0; }
.mr-panel-sub{ font-size:11.5px; color: rgba(255,255,255,0.45); white-space:nowrap; }

.mr-preset-pills{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.mr-preset-pill{
  font-size:11.5px; font-weight:700; padding:6px 11px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.14); background:transparent; color: rgba(255,255,255,0.65);
  cursor:pointer; transition: all .15s ease;
}
.mr-preset-pill:hover{ border-color: rgba(255,255,255,0.3); color:#fff; }
.mr-preset-pill.active{ background:#2fd678; border-color:#2fd678; color:var(--band-dark); }
.mr-preset-desc{ font-size:11.5px; color: rgba(255,255,255,0.45); line-height:1.5; margin:0 0 14px; }

.mr-watchlist-scroll{
  max-height:620px; overflow-y:auto; display:flex; flex-direction:column; gap:6px;
}
.mr-watchlist-scroll::-webkit-scrollbar{ width:7px; }
.mr-watchlist-scroll::-webkit-scrollbar-track{ background:transparent; }
.mr-watchlist-scroll::-webkit-scrollbar-thumb{ background: rgba(139,127,255,0.45); border-radius:999px; }
.mr-watchlist-scroll::-webkit-scrollbar-thumb:hover{ background: rgba(139,127,255,0.7); }
.mr-watchlist-loading, .mr-watchlist-empty{ font-size:12.5px; color: rgba(255,255,255,0.4); padding:20px 4px; }

.mr-row{
  display:flex; align-items:center; gap:10px; padding:10px 10px; border-radius:12px;
  border:1px solid transparent; cursor:pointer; transition: background .12s ease, border-color .12s ease;
}
.mr-row:hover{ background: rgba(255,255,255,0.05); }
.mr-row.active{ background: rgba(139,127,255,0.16); border-color: rgba(139,127,255,0.4); }
.mr-row-rank{ font-size:11px; color: rgba(255,255,255,0.35); width:16px; flex:none; font-variant-numeric: tabular-nums; }
.mr-row-id{ flex:1; min-width:0; }
.mr-row-ticker{ font-weight:800; color:#fff; font-size:13.5px; }
.mr-thin-badge{
  display:inline-block; margin-left:6px; font-size:11px; font-weight:800; letter-spacing:.03em; text-transform:uppercase;
  color:#FFC257; background: rgba(255,194,87,0.14); border:1px solid rgba(255,194,87,0.3);
  padding:1px 6px; border-radius:999px; vertical-align:middle; cursor:help;
}
.mr-row-name{ display:block; font-size:11px; color: rgba(255,255,255,0.4); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:130px; }
.mr-row-mid{ display:flex; flex-direction:column; align-items:flex-end; gap:2px; flex:none; }
.mr-row-rsi{ font-size:11.5px; font-weight:700; font-variant-numeric: tabular-nums; }
.mr-row-rsi.extreme{ color:#FF8A75; }
.mr-row-rsi.oversold{ color:#FFC257; }
.mr-row-sma{ font-size:11px; color: rgba(255,255,255,0.45); font-variant-numeric: tabular-nums; }
.mr-row-signals{ display:flex; gap:3px; flex:none; }
.mr-signal-dot{ width:6px; height:6px; border-radius:50%; background: rgba(255,255,255,0.15); }
.mr-signal-dot.on{ background:#2fd678; }
.mr-panel-footnote{ font-size:11px; color: rgba(255,255,255,0.35); line-height:1.5; margin:14px 0 0; }

/* ---- Center: Chart ---- */
.mr-panel-chart{ display:flex; flex-direction:column; }
.mr-chart-empty{ display:flex; align-items:center; justify-content:center; min-height:480px; color: rgba(255,255,255,0.4); font-size:14px; text-align:center; }
.mr-chart-head{ display:flex; align-items:baseline; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.mr-chart-id{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.mr-chart-ticker{ font-family:'Instrument Sans', sans-serif; font-size:24px; font-weight:700; color:#fff; }
.mr-chart-name{ font-size:12.5px; color: rgba(255,255,255,0.5); }
.mr-chart-price{ font-family:'Instrument Sans', sans-serif; font-size:24px; font-weight:600; color:#fff; }

.mr-chart-controls{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.mr-tf-pills{ display:flex; gap:6px; }
.mr-tf-pill{
  font-size:11.5px; font-weight:700; padding:6px 13px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.14); background:transparent; color: rgba(255,255,255,0.65); cursor:pointer;
}
.mr-tf-pill:hover{ border-color: rgba(255,255,255,0.3); color:#fff; }
.mr-tf-pill.active{ background:#8B7FFF; border-color:#8B7FFF; color:#fff; }
.mr-overlay-toggles{ display:flex; flex-wrap:wrap; gap:10px 12px; }
.mr-overlay-toggles label{ display:inline-flex; align-items:center; gap:5px; font-size:11px; color: rgba(255,255,255,0.55); cursor:pointer; user-select:none; }
.mr-overlay-toggles input{ accent-color:#2fd678; }

.mr-chart-wrap{ width:100%; }
.mr-chart-wrap svg{ width:100%; height:auto; display:block; overflow:visible; }
.mr-chart-price-line{ fill:none; stroke:#2fd678; stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.mr-chart-price-fill{ fill: url(#mrPriceGradient); }
.mr-chart-sma-line{ fill:none; stroke:#FFC257; stroke-width:1.6; stroke-linecap:round; }
.mr-chart-bb-line{ fill:none; stroke: rgba(139,127,255,0.7); stroke-width:1.1; stroke-dasharray:3 3; }
.mr-chart-bb-fill{ fill: rgba(139,127,255,0.06); }
.mr-chart-vwap-line{ fill:none; stroke:#FF8A75; stroke-width:1.4; stroke-dasharray:6 3; }
.mr-chart-atr-line{ fill:none; stroke: rgba(255,255,255,0.28); stroke-width:1; stroke-dasharray:1 4; }
.mr-chart-support-line{ fill:none; stroke:var(--pos-strong); stroke-width:1.1; stroke-dasharray:5 4; opacity:0.8; }
.mr-chart-resistance-line{ fill:none; stroke:#FF8A75; stroke-width:1.1; stroke-dasharray:5 4; opacity:0.8; }
.mr-chart-now-line{ fill:none; stroke: rgba(255,255,255,0.35); stroke-width:1; stroke-dasharray:2 3; }
.mr-chart-now-dot{ fill:#fff; stroke:#2fd678; stroke-width:2; }
.mr-chart-axis-label{ font-size:11px; fill: rgba(255,255,255,0.42); font-family:inherit; }
.mr-chart-level-label{ font-size:11px; font-weight:700; font-family:inherit; }
.mr-chart-level-label--support{ fill:var(--pos-strong); }
.mr-chart-level-label--resistance{ fill:#FF8A75; }
.mr-chart-grid-line{ stroke: rgba(255,255,255,0.06); stroke-width:1; }

.mr-legend{ display:flex; flex-wrap:wrap; gap:14px; margin-top:14px; }
.mr-legend-item{ display:inline-flex; align-items:center; gap:6px; font-size:11px; color: rgba(255,255,255,0.55); }
.mr-legend-swatch{ width:14px; height:0; border-top-width:2px; border-top-style:solid; }
.mr-legend-swatch--price{ border-top-color:#2fd678; border-top-width:2.5px; }
.mr-legend-swatch--sma{ border-top-color:#FFC257; }
.mr-legend-swatch--bb{ border-top-color: rgba(139,127,255,0.7); border-top-style:dashed; }
.mr-legend-swatch--vwap{ border-top-color:#FF8A75; border-top-style:dashed; }
.mr-legend-swatch--atr{ border-top-color: rgba(255,255,255,0.4); border-top-style:dotted; }
.mr-legend-swatch--support{ border-top-color:var(--pos-strong); border-top-style:dashed; }
.mr-legend-swatch--resistance{ border-top-color:#FF8A75; border-top-style:dashed; }
.mr-chart-footnote{ font-size:11px; color: rgba(255,255,255,0.35); line-height:1.55; margin-top:14px; }

/* ---- Right: Risk engine + backtest ---- */
.mr-panel-right{ display:flex; flex-direction:column; gap:18px; padding:0; background:none; border:none; }
.mr-knife-card, .mr-risk-card, .mr-backtest-card{
  background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:20px; padding:20px;
}
.mr-knife-card h3, .mr-risk-card h3, .mr-backtest-card h3{ font-family:'Instrument Sans', sans-serif; font-size:16.5px; font-weight:600; color:#fff; margin:0 0 14px; }
.mr-risk-empty, .mr-backtest-empty{ font-size:12.5px; color: rgba(255,255,255,0.4); }

.mr-field-row{ display:flex; gap:14px; margin-bottom:14px; }
.mr-radio{ display:inline-flex; align-items:center; gap:6px; font-size:12px; color: rgba(255,255,255,0.65); cursor:pointer; }
.mr-radio input{ accent-color:#8B7FFF; }

.mr-field{ margin-bottom:12px; }
.mr-field label{ display:block; font-size:11px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; color: rgba(255,255,255,0.45); margin-bottom:6px; }
.mr-field input, .mr-field select{
  width:100%; background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.14); border-radius:10px;
  color:#fff; font-size:13.5px; font-family:inherit; padding:9px 11px;
}
.mr-field input:focus, .mr-field select:focus{ outline:none; border-color:#8B7FFF; background: rgba(255,255,255,0.08); }
.mr-field select option{ background:var(--band-mid); color:#fff; }

.mr-risk-outputs{ display:flex; flex-direction:column; gap:10px; border-top:1px solid rgba(255,255,255,0.1); padding-top:14px; margin-top:4px; }
.mr-out-row{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.mr-out-lbl{ font-size:11.5px; color: rgba(255,255,255,0.5); flex:1; min-width:0; line-height:1.4; }
.mr-out-val{ font-size:13.5px; font-weight:700; color:#fff; font-variant-numeric: tabular-nums; text-align:right; flex:none; }
.mr-out-val.pos{ color:var(--pos-strong); }
.mr-out-val.neg{ color:#FF8A75; }
.mr-out-val.warn{ color:#FFC257; }
.mr-out-divider{ border-top:1px solid rgba(255,255,255,0.08); margin:2px 0; }
.mr-out-warn{ font-size:11px; color:#FFC257; line-height:1.5; background: rgba(255,194,87,0.08); border-radius:8px; padding:8px 10px; }
.mr-out-note{ font-size:11px; color: rgba(255,255,255,0.4); line-height:1.5; margin:10px 0 0; padding-top:10px; border-top:1px solid rgba(255,255,255,0.08); }

.mr-bt-stats{ display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:14px; margin-bottom:12px; }
.mr-bt-stat{ display:flex; flex-direction:column; gap:3px; }
.mr-bt-stat-lbl{ font-size:11px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color: rgba(255,255,255,0.45); }
.mr-bt-stat-val{ font-family:'Instrument Sans', sans-serif; font-size:22px; font-weight:600; color:#fff; font-variant-numeric: tabular-nums; }
.mr-bt-stat-val.pos{ color:var(--pos-strong); }
.mr-bt-sample{ font-size:11px; color: rgba(255,255,255,0.45); line-height:1.5; margin-bottom:8px; }
.mr-bt-caveat{ font-size:11px; color: rgba(255,255,255,0.4); line-height:1.5; background: rgba(255,255,255,0.04); border-radius:8px; padding:9px 10px; }

/* ---- Historical Rebound Edge, promoted into the center column ---- */
/* Real, own-history backtest stats are this page's single highest-value
   module - moved out of the cramped 25%-wide right rail into the 45%-wide
   center column (below the chart) so its stat grid can breathe as one row
   instead of a squeezed 2x2, and given its own accent border so it reads
   as a headline module, not just another sidebar card. */
.mr-backtest-card--center{
  margin-top:20px;
  background: linear-gradient(180deg, rgba(47,214,120,0.07), rgba(255,255,255,0.03));
  border:1px solid rgba(47,214,120,0.28);
  border-radius:20px; padding:26px;
  box-shadow: 0 0 0 1px rgba(47,214,120,0.05), 0 20px 50px -20px rgba(47,214,120,0.15);
}
.mr-backtest-card--center h3{ font-size:20px; }
.mr-backtest-card--center .mr-bt-block-title{ font-size:12px; }
.mr-backtest-card--center .mr-bt-stats{ grid-template-columns: repeat(4, minmax(0,1fr)); gap:20px; }
.mr-backtest-card--center .mr-bt-stat-val{ font-size:28px; }
.mr-backtest-card--center .mr-bt-sample{ font-size:12.5px; }
.mr-backtest-card--center .mr-regime-split{ max-width:520px; }

@media (max-width: 900px){
  .mr-backtest-card--center .mr-bt-stats{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.mr-bt-block{ margin-top:18px; padding-top:16px; border-top:1px solid rgba(255,255,255,0.08); }
.mr-bt-block:first-child{ margin-top:0; padding-top:0; border-top:none; }
.mr-bt-block-title{ font-size:11px; font-weight:800; letter-spacing:.02em; text-transform:uppercase; color: rgba(255,255,255,0.5); margin:0 0 10px; }

.mr-regime-split{ display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
.mr-regime-split-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; background: rgba(255,255,255,0.03); border-radius:8px; padding:8px 11px; }
.mr-regime-split-lbl{ font-size:11.5px; color: rgba(255,255,255,0.65); flex:1; }
.mr-regime-split-win{ font-size:13px; font-weight:700; font-variant-numeric: tabular-nums; }
.mr-regime-split-win.pos{ color:var(--pos-strong); }
.mr-regime-split-win.neg{ color:#FF8A75; }
.mr-regime-split-n{ font-size:11px; color: rgba(255,255,255,0.4); flex:none; }
.mr-regime-split-loading{ font-size:11.5px; color: rgba(255,255,255,0.4); }

/* ---------------- Forward Simulator & Performance Log ---------------- */

.mr-log-band{
  padding:56px 0; color:#fff;
  background: radial-gradient(140% 160% at 15% -10%, #1A1B33 0%, var(--band-mid) 45%, var(--band-dark) 100%);
  border-top:1px solid rgba(255,255,255,0.06);
}
.mr-log-head{ max-width:680px; margin-bottom:32px; }
.mr-log-head h2{
  font-family:'Instrument Sans', sans-serif; font-weight:600; font-size:clamp(30px, 4.5vw, 44px); line-height:1.05;
  letter-spacing:-0.01em; margin:14px 0 14px; color:#fff;
}
.mr-log-intro{ font-size:14.5px; line-height:1.6; color: rgba(255,255,255,0.55); margin:0; }

.mr-log-stats{ display:grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap:16px; margin-bottom:32px; max-width:820px; }
.mr-log-stat{
  background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:14px; padding:16px;
  display:flex; flex-direction:column; gap:4px;
}
.mr-log-stat-lbl{ font-size:11px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color: rgba(255,255,255,0.45); }
.mr-log-stat-val{ font-family:'Instrument Sans', sans-serif; font-size:26px; font-weight:600; color:#fff; font-variant-numeric: tabular-nums; }
.mr-log-stat-val.pos{ color:var(--pos-strong); }

.mr-log-tables{ display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:24px; }
.mr-log-table-col h3{ font-family:'Instrument Sans', sans-serif; font-size:16px; font-weight:600; color:#fff; margin:0 0 12px; }
.mr-log-table-scroll{
  max-height:340px; overflow-y:auto; display:flex; flex-direction:column; gap:6px;
}
.mr-log-table-scroll::-webkit-scrollbar{ width:7px; }
.mr-log-table-scroll::-webkit-scrollbar-track{ background:transparent; }
.mr-log-table-scroll::-webkit-scrollbar-thumb{ background: rgba(139,127,255,0.45); border-radius:999px; }
.mr-log-empty{ font-size:12.5px; color: rgba(255,255,255,0.4); }
.mr-log-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07); border-radius:10px; padding:10px 12px;
}
.mr-log-row-id{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.mr-log-row-ticker{ font-weight:800; color:#fff; font-size:13px; }
.mr-log-row-date{ font-size:11px; color: rgba(255,255,255,0.4); }
.mr-log-row-outcome{ text-align:right; flex:none; }
.mr-log-row-gain{ font-size:13px; font-weight:700; font-variant-numeric: tabular-nums; }
.mr-log-row-gain.win{ color:var(--pos-strong); }
.mr-log-row-gain.loss{ color:#FF8A75; }
.mr-log-row-tag{ display:block; font-size:11px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; margin-top:2px; }
.mr-log-row-tag.win{ color:var(--pos-strong); }
.mr-log-row-tag.loss{ color:#FF8A75; }
.mr-log-row-tag.pending{ color: rgba(255,255,255,0.4); }

@media (max-width: 720px){
  .mr-log-tables{ grid-template-columns:minmax(0,1fr); }
}

.mr-faq-band{ padding:56px 0 40px; border-top:1px solid var(--line); }
.mr-faq-head{ max-width:680px; margin-bottom:28px; }
.mr-faq-head h2{
  font-family:'Instrument Sans', sans-serif; font-weight:600; font-size:clamp(26px, 3.6vw, 36px); line-height:1.1;
  letter-spacing:-0.01em; margin:12px 0 0; color: var(--ink);
}

.mr-disclaimer{ padding:40px 0 60px; }
.mr-disclaimer p{ font-size:12px; color: var(--ink-soft); line-height:1.7; max-width:860px; }

@media (max-width: 1100px){
  .mr-dash-wrap{ grid-template-columns:minmax(0,1fr); }
  .mr-watchlist-scroll{ max-height:420px; }
}
@media (max-width: 620px){
  .mr-bt-stats{ grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}

/* ---------------- Hero additions: honesty line, status strip, live scorecard ---------------- */

.mr-honesty{ font-size:13.5px; line-height:1.6; color: var(--ink-soft); max-width:800px; margin:0 0 18px; }
.mr-honesty strong{ color: var(--ink); }
.mr-honesty a, .mr-scoreline a{ color: var(--indigo-dark); font-weight:700; text-decoration:underline; }
.mr-status{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.mr-status-item{
  font-size:13px; padding:7px 14px; border-radius:999px;
  background: rgba(255,255,255,0.05); border:1px solid var(--line); color: var(--ink-soft);
}
.mr-status-item b{ color: var(--ink); }
.mr-status-item--up{ border-color: rgba(47,214,120,0.4); background: rgba(47,214,120,0.1); }
.mr-status-item--down{ border-color: rgba(255,138,117,0.4); background: rgba(255,138,117,0.1); }
.mr-status-item--mixed, .mr-status-item--stale{ border-color: rgba(255,194,87,0.45); background: rgba(255,194,87,0.1); }
.mr-scoreline{
  font-size:13.5px; line-height:1.6; color: var(--ink-soft); max-width:800px; margin:0; padding:12px 16px;
  border-left:3px solid var(--indigo); background: rgba(139,127,255,0.08); border-radius:0 10px 10px 0;
}
.mr-scoreline strong{ color: var(--ink); }

/* ---------------- Watchlist: risk filters, badges, star ---------------- */

.mr-risk-filters{
  display:flex; flex-direction:column; gap:9px; margin:0 0 14px; padding:11px 13px; border-radius:12px;
  background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07);
}
.mr-risk-filters .mos-toggle-label{ font-size:12px; color: rgba(255,255,255,0.72); }
.mr-risk-filters .mos-toggle-track{ background: rgba(255,255,255,0.18); }
.mr-risk-filters .mos-toggle input:checked + .mos-toggle-track{ background:#2fd678; }

.mr-row-badges{ display:flex; flex-wrap:wrap; gap:4px; margin-top:5px; }
.mr-badge{
  display:inline-block; font-size:11px; font-weight:800; letter-spacing:.02em; padding:2px 7px; border-radius:999px;
  border:1px solid transparent; white-space:nowrap; cursor:help;
}
.mr-badge--risk{ color:#FF8A75; background: rgba(255,138,117,0.12); border-color: rgba(255,138,117,0.35); }
.mr-badge--caution{ color:#FFC257; background: rgba(255,194,87,0.12); border-color: rgba(255,194,87,0.3); }
.mr-badge--clear{ color: var(--pos-strong); background: rgba(47,214,120,0.12); border-color: rgba(47,214,120,0.3); }
.mr-badge--specific{ color:#7FD6FF; background: rgba(127,214,255,0.1); border-color: rgba(127,214,255,0.3); }
.mr-badge--sector{ color:#C9C2FF; background: rgba(139,127,255,0.14); border-color: rgba(139,127,255,0.35); }
.mr-badge--mixed{ color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }
.mr-row-ticker .watch-star{ font-size:14px; margin-left:4px; vertical-align:middle; }

.mr-chart-actions{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.mr-card-btn{
  font-size:12px; font-weight:700; padding:7px 13px; border-radius:999px; cursor:pointer; color:#fff;
  background: rgba(139,127,255,0.16); border:1px solid rgba(139,127,255,0.45); transition: background .15s ease;
}
.mr-card-btn:hover{ background: rgba(139,127,255,0.3); }
.mr-chart-id .watch-star{ font-size:20px; }

/* ---------------- All signals at a glance (sortable table) ---------------- */

.mr-table-band{
  padding:48px 0 56px; color:#fff; border-top:1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, var(--band-dark) 0%, var(--band-mid) 100%);
}
.mr-table-head{ max-width:700px; margin-bottom:22px; }
.mr-table-head h2{
  font-family:'Instrument Sans', sans-serif; font-weight:600; font-size:clamp(26px, 3.6vw, 36px); line-height:1.1;
  letter-spacing:-0.01em; margin:12px 0 10px; color:#fff;
}
.mr-table-head p{ font-size:14px; line-height:1.6; color: rgba(255,255,255,0.55); margin:0; }
.mr-signal-table-wrap{
  background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:16px;
  max-height:560px; overflow:auto;
}
.mr-signal-table{ width:100%; border-collapse:separate; border-spacing:0; font-size:12.5px; color: rgba(255,255,255,0.85); }
.mr-signal-table th{
  position:sticky; top:0; z-index:2; padding:0; text-align:left; white-space:nowrap;
  background:#151A2E; border-bottom:1px solid rgba(255,255,255,0.1);
}
.mr-signal-table th:first-child{ left:0; z-index:3; }
.mr-signal-table th.num, .mr-signal-table td.num{ text-align:right; font-variant-numeric: tabular-nums; }
.mr-sort-btn{
  display:flex; align-items:center; gap:5px; width:100%; padding:11px 12px; border:0; background:none; cursor:pointer;
  font:inherit; font-size:11px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; color: rgba(255,255,255,0.55);
}
.mr-signal-table th.num .mr-sort-btn{ justify-content:flex-end; }
.mr-sort-btn:hover, .mr-sort-btn.active{ color:#fff; }
.mr-sort-btn:focus-visible{ outline:2px solid #8B7FFF; outline-offset:-2px; }
.mr-sort-arrow{ font-size:11px; width:10px; flex:none; }
.mr-signal-table td{ padding:10px 12px; white-space:nowrap; border-bottom:1px solid rgba(255,255,255,0.06); }
.mr-signal-row{ cursor:pointer; transition: background .12s ease; }
.mr-signal-row:hover{ background: rgba(255,255,255,0.05); }
.mr-signal-row:focus-visible{ outline:2px solid #8B7FFF; outline-offset:-2px; }
.mr-signal-row.active{ background: rgba(139,127,255,0.16); }
.mr-t-id{ position:sticky; left:0; z-index:1; background:#12162A; }
.mr-signal-row:hover .mr-t-id{ background:#1A1F36; }
.mr-signal-row.active .mr-t-id{ background:#1F2048; }
.mr-t-sub{ display:block; max-width:150px; overflow:hidden; text-overflow:ellipsis; font-size:11px; font-weight:400; color: rgba(255,255,255,0.42); }
.mr-signal-table .pos{ color: var(--pos-strong); }
.mr-signal-table .neg{ color:#FF8A75; }
.mr-signal-empty{ padding:28px 16px; font-size:13px; color: rgba(255,255,255,0.45); }

/* ---------------- Forward test: scorecard ---------------- */

.mr-log-rule{
  font-size:13.5px; line-height:1.65; color: rgba(255,255,255,0.72); max-width:880px; margin:0 0 20px; padding:14px 18px;
  border-radius:12px; background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.09);
}
.mr-log-rule strong, .mr-log-rule b{ color:#fff; }
.mr-log-stats{ grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); max-width:1100px; margin-bottom:20px; }
.mr-log-stat-sub{ font-size:11.5px; line-height:1.5; color: rgba(255,255,255,0.5); }
.mr-log-stat-sub b{ color: rgba(255,255,255,0.88); }
.mr-log-stat-val.neg{ color:#FF8A75; }
.mr-log-verdict{
  display:flex; flex-direction:column; gap:8px; max-width:880px; margin:0 0 32px; padding:16px 20px; border-radius:14px;
  font-size:13.5px; line-height:1.6; color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.1); border-left-width:4px;
}
.mr-log-verdict[hidden]{ display:none; }
.mr-log-verdict strong{ font-size:15.5px; color:#fff; }
.mr-log-verdict--worse{ border-left-color:#FF8A75; }
.mr-log-verdict--better{ border-left-color:#2fd678; }
.mr-log-verdict--same{ border-left-color:#FFC257; }
.mr-log-verdict-caveat{ font-size:12.5px; color: rgba(255,255,255,0.58); }
.mr-log-row-gain.small, .mr-log-row-tag.small{ color:#FFC257; }

.mr-explain-band{ padding:48px 0 8px; border-top:1px solid var(--line); }

@media (max-width: 620px){
  .mr-status-item{ font-size:12.5px; padding:6px 12px; }
  .mr-chart-actions{ width:100%; justify-content:space-between; }
}

/* ---- Themed scrollbars: Firefox only ----
   Chromium (and Safari) ignore ::-webkit-scrollbar the moment scrollbar-width / scrollbar-color
   are set on the same element, and on Windows then draw the NATIVE scrollbar - recoloured, but
   still with its arrow buttons (the chunky left/right/up arrows). So those two properties live here,
   behind a test that only Firefox fails; everywhere else the thin ::-webkit-scrollbar rules above apply. */
@supports not selector(::-webkit-scrollbar){
  .mr-sector-strip,
  .mr-watchlist-scroll,
  .mr-log-table-scroll{ scrollbar-width: thin; scrollbar-color: rgba(139,127,255,0.45) transparent; }
}

/* Phone pass (2026-10-17) */
@media (max-width: 720px){
  .mr-preset-pill{ min-height:40px; padding:0 14px; }
  .mr-parent-link{ padding-block:12px; margin-bottom:2px; }
  #mrCompositeSortToggle{ width:22px; height:22px; }
  .mr-card-btn, .mr-tf-pill{ min-height:44px; padding-inline:14px; }
  .mr-sort-btn{ min-height:44px; }
  .mr-methodology-details summary, .mr-composite-details summary{ padding-block:12px; }
}
