.study-filters { display: grid; grid-template-columns: minmax(10rem, 1.5fr) minmax(10rem, 1fr) minmax(10rem, 1fr); gap: .8rem; }
.study-filters input, .study-filters select { width: 100%; min-width: 0; }
.term-card h2 { font-size: 1.35rem; margin-bottom: 0; }
.study-question { font-size: 1.18rem; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-definition { font-size: 1.1rem; font-weight: 700; color: #173c75; }
.term-answer p { margin-top: 0; margin-bottom: 0; }
.study-details { padding-top: .8rem; }
.study-details ul { margin-top: 0; padding-left: 1.5rem; }
.study-related { margin: .4rem 0; }
.study-related .actions { padding-top: .8rem; }
.study-tags .badge { white-space: normal; }
.study-ratings { padding-top: .8rem; border-top: 1px solid #e2e8f0; }
.study-feedback:empty { display: none; }
.study-check { display: flex; align-items: center; gap: .65rem; cursor: pointer; }
.study-check input { width: 1.2rem; height: 1.2rem; }
.study-between { justify-content: space-between; }
.study-progress { justify-content: space-between; }
.quiz-card { min-height: 18rem; align-content: start; }
.quiz-card > .button { justify-self: start; }
.study-choices { border: 0; padding: 0; margin: 0; display: grid; gap: .7rem; min-width: 0; }
.study-legend { font-weight: 600; margin-bottom: .75rem; }
.study-choice { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid #d8e1ee; background: #fff; border-radius: .7rem; padding: 1rem; cursor: pointer; line-height: 1.7; }
.study-choice:has(input:checked) { border-color: #3769d5; background: #f0f5ff; box-shadow: 0 0 0 1px #3769d5; }
.study-choice:focus-within { outline: 3px solid #b2caff; outline-offset: 2px; }
.study-choice input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: .3rem 0 0; }
.study-choice-id { color: #355782; font-weight: 700; }
.study-choices:disabled .study-choice { cursor: default; }
.study-result:empty { display: none; }
.study-result { border-top: 1px solid #d8e1ee; padding-top: 1rem; }
.study-explanation { padding: 1rem; background: #f6f8fc; border-left: 3px solid #b7c6dc; border-radius: .4rem; }
.study-explanation p { margin: .4rem 0 0; }
.study-explanation.is-correct { background: #eff9f5; border-color: #268568; }
.study-correct { color: #16674c; }
.study-incorrect { color: #9b4026; }
.study-scope { line-height: 1.7; }
.study-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.study-stat { font-size: 1.75rem; font-weight: 750; margin: .35rem 0 0; }
.study-history { padding-top: 0; padding-bottom: 0; }
.study-history-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.study-history-row + .study-history-row { border-top: 1px solid #e2e8f0; }
.study-history-row .stack { gap: .35rem; min-width: 0; }
.study-history-row p { margin: 0; }
.study-history-row .badge { flex-shrink: 0; }
.study-history-title { color: #244b87; font-weight: 650; line-height: 1.7; overflow-wrap: anywhere; }
.study-saved-answer { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
@media (max-width: 760px) {
  .study-filters { grid-template-columns: 1fr; }
  .study-stats { grid-template-columns: 1fr; }
  .study-history-row { flex-direction: column; gap: .6rem; }
  .study-ratings .button { flex: 1 1 auto; }
  .study-between .button { flex: 1 1 auto; }
  .study-question { font-size: 1.08rem; }
  .study-choice { padding: .85rem; gap: .65rem; }
}
