.weekly-roi {
  padding: 0;
  margin: 16px auto 18px;
  max-width: 900px;
  color: var(--text-primary);
}
.weekly-roi[hidden] { display: none; }
.weekly-roi-header { text-align: center; margin: 0 auto 6px; }
.weekly-roi h2 { font-family: 'Orbitron', sans-serif; color: var(--green); font-size: .65rem; font-weight: 900; letter-spacing: 2.5px; text-transform: uppercase; margin: 0 0 4px; }
.weekly-roi .weekly-roi-dates { color: var(--text-secondary); font-family: inherit; font-size: .65rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; margin: 0; }
.weekly-roi-note, .weekly-roi-status { color: var(--text-secondary); font-size: .67rem; line-height: 1.6; margin: 8px 0 10px; }
/* Match the shared .performance-strip / .perf-cell stat layout. */
.weekly-roi-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius, 10px); overflow: hidden; margin: 0 auto 8px; }
.weekly-roi-metrics > div { min-width: 0; display: grid; grid-template-rows: 1fr auto; background: var(--bg-card); padding: 16px 10px 13px; text-align: center; }
.weekly-roi-metrics dt { font-size: .75rem; font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: .8px; color: var(--text-secondary); margin-top: 7px; }
/* All three values share the same starting size; only long content scales down. */
.weekly-roi-metrics dd { min-width: 0; min-height: 42px; align-content: center; margin: 0; font-family: 'Orbitron', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--green); overflow-wrap: normal; word-break: normal; overflow-x: auto; }
.weekly-roi-value { display: block; width: max-content; margin-inline: auto; white-space: nowrap; }
/* Long records may wrap between W/L/P groups, never within a count. */
.weekly-roi-record.weekly-roi-record-wrap .weekly-roi-value { width: auto; white-space: normal; }
.weekly-roi .weekly-roi-positive { color: var(--green); }
.weekly-roi .weekly-roi-negative { color: var(--red); }
.weekly-roi .weekly-roi-unavailable { color: var(--text-secondary); font-family: inherit; font-size: .7rem; }
.weekly-roi-table-wrap { overflow-x: auto; margin: 10px 0 12px; }
.weekly-roi table { width: 100%; border-collapse: collapse; font-size: .7rem; font-variant-numeric: tabular-nums; }
.weekly-roi caption { text-align: left; color: var(--text-secondary); padding: 8px 0; border-top: 1px solid var(--border); font-weight: 700; font-size: .6rem; text-transform: uppercase; letter-spacing: 1px; }
.weekly-roi th, .weekly-roi td { padding: 7px 6px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.weekly-roi th { color: var(--text-secondary); font-weight: 600; }
.weekly-roi thead th { font-size: .6rem; text-transform: uppercase; letter-spacing: .5px; }
.weekly-roi td:nth-child(2), .weekly-roi td:nth-child(3) { font-family: 'Orbitron', sans-serif; font-size: .67rem; }
.weekly-roi tbody tr:last-child > * { border-bottom: 0; }
.weekly-roi th:first-child, .weekly-roi td:first-child { text-align: left; padding-left: 0; }
.weekly-roi td small { display: block; font-size: .67rem; color: var(--text-secondary); }
.weekly-roi-retry { margin: 0 0 12px; padding: 7px 16px; border: 1px solid var(--border-light, var(--border)); border-radius: 6px; background: var(--bg-inset); color: var(--text-primary); font: inherit; font-size: .72rem; cursor: pointer; }
.weekly-roi-retry:hover, .weekly-roi-retry:focus-visible { border-color: var(--green); }
.weekly-roi-skeleton { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius, 10px); overflow: hidden; margin: 10px 0 12px; }
.weekly-roi-skeleton span { height: 95px; background: var(--bg-card); }
@media (max-width: 600px) {
  .weekly-roi-metrics > div { padding: 13px 5px 10px; }
  .weekly-roi-metrics dd { min-height: 32px; font-size: 1.375rem; }
  .weekly-roi-metrics dt { min-height: 2.8em; font-size: .6875rem; letter-spacing: .5px; margin-top: 5px; align-content: center; }
}