/* WTWR_RESULTS_STRATEGY_PERFORMANCE_TRUTH_V1 */

/* Keep the existing Results header + strategy tabs, but retire the older
   seven-card monitor/next-qualifier presentation. The new settled performance
   panel directly underneath is the customer-facing truth layer. */
#wtwrResultsStrategyMonitor > .wtwr-results-strategy-summary,
#wtwrResultsStrategyMonitor > .wtwr-results-sequence-wrap,
#wtwrResultsStrategyMonitor > .wtwr-results-monitor-note{
  display:none!important;
}

.wtwr-results-performance-truth{
  margin-top:14px;
  padding:16px;
  border:1px solid #263b52;
  border-radius:14px;
  background:rgba(5,15,27,.78);
}

.wtwr-rpt-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.wtwr-rpt-head h3{
  margin:3px 0 0;
  font-size:1.22rem;
}
.wtwr-rpt-status{
  flex:0 0 auto;
  padding:6px 10px;
  border:1px solid #36506d;
  border-radius:999px;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.06em;
  color:#b8c4d3;
}
.wtwr-rpt-status.live{
  color:#75edb2;
  border-color:rgba(42,183,126,.55);
}
.wtwr-rpt-status.waiting{
  color:#f2c85a;
  border-color:rgba(242,200,90,.5);
}
.wtwr-rpt-status.error{
  color:#ff9a9a;
  border-color:rgba(255,120,120,.5);
}

.wtwr-rpt-date-note{
  margin:10px 0 12px;
  color:#96a5b8;
  font-size:.78rem;
  line-height:1.45;
}

.wtwr-rpt-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.wtwr-rpt-grid>div,
.wtwr-rpt-place-grid>div{
  min-width:0;
  padding:11px 12px;
  border:1px solid #263b52;
  border-radius:11px;
  background:rgba(3,12,22,.68);
}
.wtwr-rpt-grid span,
.wtwr-rpt-place-grid span{
  display:block;
  color:#8ea0b5;
  font-size:.65rem;
  font-weight:800;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.wtwr-rpt-grid strong,
.wtwr-rpt-place-grid strong{
  display:block;
  margin-top:5px;
  color:#f4f7fb;
  font-size:1.08rem;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.wtwr-rpt-grid strong.positive,
.wtwr-rpt-place-grid strong.positive{color:#72e9ac}
.wtwr-rpt-grid strong.negative,
.wtwr-rpt-place-grid strong.negative{color:#ff9696}
.wtwr-rpt-grid strong.neutral,
.wtwr-rpt-place-grid strong.neutral{color:#d3d9e2}

.wtwr-rpt-basis{
  margin-top:9px;
  color:#9aa9bb;
  font-size:.73rem;
  line-height:1.45;
}

.wtwr-rpt-place{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #263b52;
}
.wtwr-rpt-place-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.wtwr-rpt-place-head>div{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.wtwr-rpt-place-head strong{
  color:#dce4ee;
  font-size:.82rem;
}
.wtwr-rpt-research{
  padding:5px 9px;
  border:1px solid rgba(39,156,255,.45);
  border-radius:999px;
  color:#70bfff;
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.06em;
}
.wtwr-rpt-place-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.wtwr-rpt-placed-horses{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(19,43,67,.38);
  color:#aebccd;
  font-size:.74rem;
  line-height:1.5;
}
.wtwr-rpt-placed-horses strong{color:#f0f4f9}
.wtwr-rpt-placed-horses b{color:#f3c44f}

/* RESULTS ISOLATION:
   old Today-driven hidden state no longer owns the Results table.
   Our settled-results class is the only hard hide at this layer. */
#resultsTable tr.wtwr-results-strategy-hidden:not(.wtwr-results-performance-hidden){
  display:table-row!important;
}
#resultsTable tr.wtwr-results-performance-hidden{
  display:none!important;
}

@media(max-width:1050px){
  .wtwr-rpt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wtwr-rpt-place-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .wtwr-rpt-grid,
  .wtwr-rpt-place-grid{grid-template-columns:1fr}
  .wtwr-rpt-head,
  .wtwr-rpt-place-head{align-items:flex-start;flex-direction:column}
}
