/* Reversal Strength dashboard — dark theme matching the platform pages. */
.rev-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0e13;
  color: #dee7ef;
  min-height: 100vh;
  padding: 14px 16px 20px;
  box-sizing: border-box;
}
.rev-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 12px; }
.rev-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rev-title h1 { font-size: 15px; margin: 0; letter-spacing: 0.06em; text-transform: uppercase; }
.rev-shadow {
  font-family: ui-monospace, monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  color: #e8b33e; border: 1px solid rgba(232, 179, 62, 0.5); border-radius: 3px; padding: 2px 6px;
}
.rev-sub { font-size: 11px; color: #7e8c9a; }
.rev-stats { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.rev-stat { display: flex; flex-direction: column; gap: 1px; }
.rev-stat span { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #55636f; }
.rev-stat b { font-family: ui-monospace, monospace; font-size: 15px; font-weight: 650; }
.rev-err { font-size: 11px; color: #f0635a; max-width: 260px; }

.rev-body { display: grid; grid-template-columns: 1fr 280px; gap: 12px; align-items: start; }
@media (max-width: 900px) { .rev-body { grid-template-columns: 1fr; } }
.rev-main { background: #10161d; border: 1px solid #1f2a37; border-radius: 5px; padding: 12px; }
.rev-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 10.5px; color: #7e8c9a; padding: 0 2px 8px; }
.rev-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rev-toggle { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; cursor: pointer; color: #7e8c9a; }
.rev-clear {
  background: none; border: 1px solid #1f2a37; border-radius: 3px; color: #7e8c9a;
  font-size: 10px; padding: 2px 8px; cursor: pointer;
}
.rev-clear:hover { border-color: #2c3a4a; color: #dee7ef; }
.rev-legend .sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.rev-legend .sw.green { background: #3fd68c; }
.rev-legend .sw.red { background: #f0635a; }
.rev-legend .sw.gray { background: #8a97a5; }
.rev-legend .sw.tri {
  width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 7px solid #e8b33e; border-radius: 0; background: none;
}
.rev-canvas { width: 100%; height: 420px; display: block; }
.rev-gates { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 10px; }
.rev-gates-id { font-family: ui-monospace, monospace; font-size: 10px; color: #7e8c9a; margin-right: 4px; }
.rev-chip {
  font-family: ui-monospace, monospace; font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 3px; border: 1px solid #1f2a37; background: #141c26;
}
.rev-chip.pass { color: #3fd68c; border-left: 3px solid #3fd68c; }
.rev-chip.fail { color: #f0635a; border-left: 3px solid #f0635a; }
.rev-chip.unavail { color: #8a97a5; border-left: 3px solid #8a97a5; }

.rev-side {
  background: #10161d; border: 1px solid #1f2a37; border-radius: 5px; padding: 12px;
  max-height: calc(100vh - 130px); overflow-y: auto;
}
.rev-side h2 { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #7e8c9a; margin: 0 0 8px; }
.rev-empty { font-size: 11px; color: #55636f; }
.rev-attempt {
  border: 1px solid #1f2a37; border-radius: 4px; background: #141c26;
  padding: 8px 10px; margin-bottom: 8px; cursor: pointer;
}
.rev-attempt:hover { border-color: #2c3a4a; }
.rev-attempt.selected { border-color: rgba(232, 179, 62, 0.6); }
.rev-attempt-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.rev-attempt-top b { font-family: ui-monospace, monospace; font-size: 11.5px; font-weight: 650; }
.rev-pill {
  font-family: ui-monospace, monospace; font-size: 8.5px; font-weight: 700; letter-spacing: 0.05em;
  border: 1px solid; border-radius: 3px; padding: 2px 6px; white-space: nowrap;
}
.rev-attempt-sub { font-size: 10px; color: #7e8c9a; padding-top: 4px; }
