/* Interaction details share the current Lexora reading palette. */
.activeFilterBar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 13px 0 17px; border-bottom: 1px solid #e1e6ef; }
.filterCaption { color: #606d86; font-size: 12px; margin-right: 2px; }
.activeFilter { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; max-width: min(100%, 320px); padding: 6px 11px; border: 1px solid #d9e1ef; border-radius: 8px; background: #eaf0f9; color: #4b6086; font-size: 12px; line-height: 1.7; text-align: left; }
.activeFilter > span:first-child { overflow-wrap: anywhere; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.activeFilter > span:last-child { color: #606d86; font-size: 17px; flex-shrink: 0; }
.activeFilter:hover { border-color: #a5b6d4; background: #e3ebf8; }
.clearFilters { margin-left: 3px; padding: 7px; white-space: nowrap; }
.curatedActions { flex-wrap: wrap; }
.curatedActions .quickCollect { color: #435a83; font-weight: 550; background: #eaf0fa; border: 1px solid #dbe4f3; }
.curatedActions .quickCollect.isSaved { color: #596b8b; background: #f4f6fb; border-color: transparent; }
.curatedActions .textBtn { margin-left: auto; }
.curatedActions .textBtn + .textBtn { margin-left: 0; }
.dailyCardActions { align-self: stretch; margin-top: auto; }
.dailyCardActions .textBtn { padding-inline: 3px; }
.dailyActions button.ghost { background: transparent; color: #fff; border-color: #ffffff80; }
.captureDraftEntry { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: -12px 0 24px; padding: 13px 18px; border: 1px solid #dfe4ef; border-radius: 12px; background: #f0f2f9; color: #596b8b; font-size: 12px; line-height: 1.8; }
.captureDraftEntry > div { display: flex; align-items: center; gap: 10px; }
.captureDraftEntry button { flex-shrink: 0; }
.draftDot { width: 6px; height: 6px; border-radius: 50%; background: #8a89ab; flex-shrink: 0; }
.draftStatusRow { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: -7px 0 22px; padding: 12px 0; border-bottom: 1px solid #e7ebf3; color: #606d86; font-size: 12px; line-height: 1.8; }
.draftStatusRow > span { max-width: 35em; }
.draftStatusRow button { flex-shrink: 0; color: #706885; font-size: 12px; }
.captureFields [aria-invalid=true] { border-color: #b78a7c !important; background: #fff9f5; }
.captureFields [aria-invalid=true]:focus { box-shadow: 0 0 0 3px #f7eae3; }
.toast { display: flex; align-items: center; justify-content: center; gap: 14px; width: max-content; max-width: min(520px, calc(100% - 40px)); padding: 12px 15px 12px 20px; border-radius: 14px; text-align: left; box-shadow: 0 8px 30px #24365720; }
.toastMessage { font-size: 13px; line-height: 1.8; min-width: 0; overflow-wrap: anywhere; }
.toastAction { flex-shrink: 0; color: #fff; background: #ffffff12; border: 1px solid #ffffff60; border-radius: 7px; padding: 6px 10px; font-size: 12px; min-height: 36px; white-space: nowrap; }
.toastDismiss { flex-shrink: 0; color: #fff; background: transparent; border: 0; min-width: 30px; min-height: 36px; padding: 2px; font-size: 21px; line-height: 1; }
.toast button:focus-visible { outline-color: #fff; }
.toast.show { pointer-events: auto; }
.toast:not(.show) { visibility: hidden; }
/* Long expressions wrap in all viewports; mobile controls retain their safe areas. */
.dailyPick h4, .curatedCard strong, .dailyExamCard h3, .corpusOriginal, .reviewPrompt, .quizPrompt, .capturePreview h3 { overflow-wrap: anywhere; font-kerning: normal; }
.capturePreview h3[lang=en], .curatedCard strong[lang=en], .dailyExamCard h3[lang=en] { hyphens: auto; }
@media (max-width: 780px) {
 .activeFilterBar { gap: 8px; padding: 10px 0 17px; }
 .filterCaption { font-size: 12px; }
 .activeFilter { min-height: 44px; font-size: 13px; padding: 9px 11px; }
 .clearFilters { min-height: 44px; font-size: 13px; }
 .curatedActions { gap: 8px; }
 .curatedActions .quickCollect, .curatedActions .textBtn { min-height: 44px; font-size: 13px; }
 .curatedActions .textBtn { padding-inline: 5px; }
 .captureDraftEntry { margin: -8px 0 23px; padding: 13px 16px; gap: 9px; font-size: 13px; flex-wrap: wrap; }
 .captureDraftEntry button { min-height: 44px; margin-left: 16px; padding-block: 6px; }
 .draftStatusRow { display: block; margin-bottom: 21px; font-size: 13px; }
 .draftStatusRow button { display: block; min-height: 44px; padding-inline: 0; font-size: 13px; margin-top: 3px; }
 .toast { gap: 8px 12px; width: calc(100% - 32px); max-width: 480px; padding: 13px 15px; flex-wrap: wrap; }
 .toastMessage { font-size: 14px; flex: 1 1 calc(100% - 45px); }
 .toastAction { order: 3; min-height: 44px; font-size: 13px; width: 100%; }
 .toastDismiss { min-height: 44px; min-width: 30px; }
}
