.realtor-page--learning-enabled .realtor-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; }
.realtor-page--learning-enabled .realtor-tabs a { flex: 1 0 auto; white-space: nowrap; }
.realtor-learning { position: relative; }
.realtor-learning .learning-primary { background: var(--bs-dark, #21325b); border-color: var(--bs-dark, #21325b); color: #fff; }
.realtor-learning .learning-primary:hover:enabled { background: #37476b; border-color: #37476b; }
.learning-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.learning-heading h2 { color: var(--realtor-ink); font-size: 23px; line-height: 1.6; margin: 0; }
.learning-heading .realtor-history-link { margin: 0; }
.learning-heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.learning-heading-actions .realtor-pagination-button { min-height: 44px; }
.learning-reset-dialog { box-sizing: border-box; width: min(580px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 28px; overflow: auto; border: 1px solid var(--realtor-line); border-radius: 12px; background: #fff; color: var(--realtor-ink); box-shadow: 0 12px 48px rgba(33, 50, 91, .18); }
.learning-reset-dialog::backdrop { background: rgba(19, 33, 68, .5); }
.learning-reset-dialog h2 { margin: 0 0 18px; color: var(--realtor-ink); font-size: 21px; line-height: 1.7; }
.learning-reset-dialog p { margin: 0 0 16px; font-size: 14px; line-height: 1.95; }
.learning-reset-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.learning-reset-actions button { min-height: 44px; }
.learning-reset-dialog .realtor-save-state { margin: 16px 0 0; }
.learning-summary-label { font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.learning-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.learning-summary > div { padding: 18px 12px; border: 1px solid var(--realtor-line); border-radius: 8px; text-align: center; background: #fff; }
.learning-summary dt { color: var(--realtor-muted); font-size: 12px; font-weight: 500; line-height: 1.7; }
.learning-summary dd { margin: 10px 0 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.6; }
.learning-progress-note { color: var(--realtor-muted); font-size: 12px; line-height: 1.9; margin: 14px 0 0; }
.learning-filters { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) auto; align-items: end; gap: 16px; margin: 26px 0 22px; }
.learning-filters label, .learning-jump label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.learning-filters select, .learning-jump input { box-sizing: border-box; border: 1px solid #758c81; border-radius: 7px; background-color: #fff; padding: 8px 12px; height: 44px; min-height: 44px; width: 100%; min-width: 0; font: inherit; font-size: 14px; line-height: 1.5; color: var(--realtor-ink); }
.learning-filters select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2321325b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px; }
.learning-filters select:focus, .learning-jump input:focus { outline: none; border-color: #21325b; background-color: #f8fafd; box-shadow: none; }
.learning-filters button, .learning-jump button { min-height: 44px; height: 44px; padding: 8px 16px; }
.learning-card { border: 1px solid var(--realtor-line); background: #fff; border-radius: 10px; padding: 28px; }
.learning-topic-heading { margin: 28px 0 16px; }
#learning-topic-title { margin: 0; color: var(--realtor-ink); font-size: 21px; line-height: 1.6; overflow-wrap: anywhere; }
.learning-topic-count { margin: 4px 0 0; color: var(--realtor-muted); font-size: 14px; }
.learning-topic-questions { display: grid; gap: 16px; }
.learning-topic-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 24px 0; }
.learning-topic-nav button { min-height: 44px; padding: 8px 14px; }
.learning-card .learning-question-title { font-size: 18px; line-height: 1.85; color: var(--realtor-ink); margin: 12px 0 22px; overflow-wrap: anywhere; }
.learning-question-title:focus, #learning-topic-title:focus, .learning-feedback-title:focus, #learning-empty-title:focus { outline: none; box-shadow: none; }
#learning-error:focus { outline: none; box-shadow: none; }
.learning-card .realtor-option:has(input:checked) { border-color: #536180; background: #f2f4f9; box-shadow: inset 0 0 0 1px #536180; }
.learning-card .realtor-option input { accent-color: var(--bs-dark, #21325b); }
.learning-card .realtor-option.correct, .learning-card .realtor-option.correct:has(input:checked) { border-color: #298458; background: #edf7ef; box-shadow: none; }
.learning-card .realtor-option.incorrect, .learning-card .realtor-option.incorrect:has(input:checked) { border-color: #a64832; background: #fff1ec; box-shadow: none; }
.learning-feedback { margin-top: 22px; border-left: 3px solid #298458; background: #f0f7f2; border-radius: 0 7px 7px 0; padding: 18px 20px; }
.learning-feedback.is-wrong { border-color: #a64832; background: #fff6f2; }
.learning-feedback-title { font-size: 15px; font-weight: 600; line-height: 1.8; margin: 0 0 10px; }
.learning-feedback p { font-size: 14px; line-height: 1.95; margin: 10px 0; white-space: pre-line; }
.learning-feedback p:last-child { margin-bottom: 0; }
.learning-feedback .realtor-source { margin-top: 14px; }
.learning-actions { display: flex; align-items: center; margin-top: 18px; }
.learning-retry { font: inherit; font-size: 13px; line-height: 1.7; background: transparent; color: #21325b; padding: 10px; border: 0; text-decoration: underline; text-underline-offset: .2em; min-height: 44px; cursor: pointer; }
.learning-jump { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.learning-jump > div { width: 190px; max-width: 100%; }
.learning-jump input::placeholder { color: var(--realtor-muted); opacity: 1; }
.learning-notice { border: 1px solid #d5c897; border-radius: 7px; background: #fff9e9; color: #67501b; font-size: 13px; line-height: 1.9; padding: 15px 18px; margin: 20px 0; }
.learning-empty { border: 1px solid var(--realtor-line); border-radius: 10px; background: #fff; text-align: center; padding: 36px 24px; }
#learning-empty-title { font-size: 20px; line-height: 1.7; color: var(--realtor-ink); }
.learning-empty p { font-size: 14px; line-height: 1.9; color: var(--realtor-muted); }
.realtor-learning button:focus-visible, .learning-card .realtor-option:has(input:focus-visible) { outline: 2px solid #21325b; outline-offset: 3px; box-shadow: none; }
@media (max-width: 991px) {
    .realtor-page--learning-enabled .realtor-tabs { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; gap: 8px; border-bottom: 0; margin-top: 24px; }
    .realtor-page--learning-enabled .realtor-tabs a { justify-content: center; min-height: 48px; padding: 10px 16px; border: 1px solid #e7eaf3; border-radius: 7px; background: #fff; color: var(--bs-dark, #21325b); white-space: normal; text-align: center; }
    .realtor-page--learning-enabled .realtor-tabs a:hover { background: #f8fafd; }
    .realtor-page--learning-enabled .realtor-tabs a[aria-current=page] { background: var(--bs-dark, #21325b); border-color: var(--bs-dark, #21325b); color: #fff; }
    .realtor-page--learning-enabled .realtor-tabs a:focus-visible { outline: 2px solid var(--bs-dark, #21325b); outline-offset: 3px; box-shadow: none; }
    .learning-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .learning-filters button { justify-self: start; }
    .learning-filters select, .learning-jump input { font-size: 16px; }
}
@media (max-width: 600px) {
    .learning-reset-dialog { padding: 22px; }
    .learning-reset-dialog h2 { font-size: 18px; }
    .learning-reset-dialog p { line-height: 1.8; }
    .learning-reset-actions { gap: 10px; }
    .learning-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .learning-summary > div { padding: 14px 8px; }
    .learning-summary dd { font-size: 20px; }
    .learning-filters { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .learning-filters button { justify-self: stretch; }
    .learning-card { padding: 20px; }
    .learning-card .learning-question-title { font-size: 16px; }
    #learning-topic-title { font-size: 18px; }
    .learning-feedback { padding: 14px; }
    .learning-actions .learning-check, .learning-actions .learning-retry { width: 100%; }
    .learning-jump { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .learning-jump > div { width: auto; }
    .learning-jump button[type="button"] { grid-column: 1 / -1; justify-self: start; }
}
@media (forced-colors: active) {
    .learning-card .realtor-option:has(input:checked) { outline: 2px solid Highlight; }
    .learning-filters select { appearance: auto; background-image: none; }
    .learning-filters select:focus, .learning-jump input:focus { outline: 2px solid Highlight; }
}
