/* EduWonderLab rehearsal settings (views/tools.js, shown on the practice-test intro and runner).
   Loads before ds.css, so selectors here carry enough specificity to beat .btn. The test screens
   themselves live in tests.css. */
.rh-tools {
  margin: var(--s-4) 0;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.rh-tools h2 {
  margin: 0 0 var(--s-3);
  font: 650 1.3rem/1.2 var(--font-display);
  letter-spacing: -0.01em;
}
.rh-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media (max-width: 560px) {
  .rh-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  }
  .rh-tools .rh-toggle {
    justify-content: flex-start;
  }
}
.rh-tools .rh-toggle {
  min-height: 2.75rem;
  border-radius: 999px;
  padding: 0.3rem 1.1rem 0.3rem 0.8rem;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.rh-tools .rh-toggle::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.rh-tools .rh-toggle > span[aria-hidden] {
  display: none;
}
.rh-tools .rh-toggle[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.rh-tools .rh-toggle[aria-pressed="true"]::before {
  width: 1.2rem;
  height: 1.2rem;
  border: 0;
  border-radius: 0;
  background: currentColor;
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}
.rh-tools .rh-toggle[aria-pressed="false"]:hover {
  border-color: var(--ink);
  background: var(--surface-2);
}
.rh-note {
  margin: var(--s-3) 0 0;
}
.rh-reader {
  position: fixed;
  left: 0;
  right: 0;
  top: 40%;
  height: 3.6em;
  pointer-events: none;
  z-index: 60;
  border-block: 3px solid #ffd60a;
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / 55%);
}
.rh-scratch {
  margin-top: 1rem;
}
.rh-scratch textarea {
  width: 100%;
  max-width: 100%;
}
.rh-scope.rh-contrast {
  --bg: #fff;
  --surface: #fff;
  --surface-2: #fff;
  --ink: #000;
  --ink-2: #000;
  --ink-3: #000;
  --line: #000;
  --line-strong: #000;
  --brand: #003a80;
  --brand-ink: #002651;
  --brand-soft: #e8f0fb;
  --right: #00562b;
  --right-soft: #e6f4ea;
  --wrong: #8c0000;
  --wrong-soft: #fdecea;
  --hint: #5c3b00;
  --hint-soft: #fff6e0;
  --focus: #17324d;
  background: #fff;
  color: #000;
}
.rh-scope.rh-contrast
  :is(
    .test-q,
    .palette,
    .passage,
    .btn,
    .flag,
    .dot,
    textarea,
    input,
    .review-row,
    .review-section,
    .feedback,
    .test-bar,
    .mode-card,
    .comp-card,
    .fm-mode,
    .result-card,
    .answer-review li,
    .support-zone
  ) {
  border-color: #000;
  border-width: 2px;
}
.rh-scope.rh-contrast .test-bar {
  background: #fff;
  color: #000;
}
.rh-scope.rh-contrast a {
  text-decoration: underline;
}
.rh-scope.rh-contrast :focus-visible {
  outline: 3px solid #17324d;
  outline-offset: 2px;
}
