.study-highlight {
  background: #ffe58a;
  color: inherit;
  border-radius: .18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: .04em .08em;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}

.module-quiz-question,
.module-quiz-answers button,
.module-quiz-feedback,
.choice-rationales p {
  -webkit-user-select: text;
  user-select: text;
}

.module-quiz-answers button {
  touch-action: auto;
}

.study-highlight:hover,
.study-highlight:focus-visible {
  background: #ffd85a;
  box-shadow: 0 0 0 3px rgba(235, 170, 0, .22);
  outline: none;
}

.highlight-action {
  position: fixed;
  z-index: 100000;
  min-height: 44px;
  padding: .66rem .9rem;
  border: 0;
  border-radius: .65rem;
  background: #082b45;
  color: #fff;
  font: 700 .9rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 10px 28px rgba(3, 35, 56, .28);
  cursor: pointer;
  transform: translate(-50%, -100%);
}

.highlight-action:hover,
.highlight-action:focus-visible {
  background: #0a3b5f;
  outline: 3px solid rgba(31, 200, 194, .45);
  outline-offset: 2px;
}

.highlight-action[hidden] { display: none !important; }

.highlight-toast {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 100001;
  transform: translateX(-50%);
  max-width: calc(100vw - 2rem);
  padding: .7rem 1rem;
  border-radius: 999px;
  background: #082b45;
  color: #fff;
  font: 700 .85rem/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 8px 24px rgba(3, 35, 56, .25);
  pointer-events: none;
}

@media (max-width: 640px) {
  .highlight-action {
    min-height: 46px;
    padding: .75rem 1rem;
  }
}

@media (forced-colors: active) {
  .study-highlight { border: 2px solid Highlight; }
}
