:root { color-scheme: light; font-family: Inter, "Segoe UI", Arial, sans-serif; color: #173b42; background: #eaf1f4; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #eaf1f4; }
.favorites-page { width: min(1180px, calc(100% - 40px)); margin: 32px auto 60px; }
.favorites-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 7px; color: #188a86; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0; color: #123f4c; font-size: 32px; }
.subtitle { margin: 9px 0 0; color: #59757a; }
.back-link, .favorites-summary button { border: 1px solid #b9dada; border-radius: 9px; padding: 10px 14px; color: #176f83; background: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.favorites-summary { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding: 12px 16px; border: 1px solid #d8e7e8; border-radius: 12px; color: #176f83; background: #fff; }
.favorites-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.favorites-navigation { position: sticky; top: 14px; display: grid; gap: 6px; max-height: calc(100vh - 28px); overflow: auto; padding: 12px; border: 1px solid #d8e7e8; border-radius: 13px; background: #fff; }
.favorite-filter { display: grid; gap: 4px; padding: 10px 11px; border: 0; border-radius: 8px; color: #31555c; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.favorite-filter:hover, .favorite-filter.active { background: #eef7f8; }
.favorite-filter.active { color: #126f83; box-shadow: inset 3px 0 #19869a; }
.favorites-navigation strong { font-size: 13px; }
.favorites-navigation span { color: #789095; font-size: 11px; }
.favorites-groups { display: grid; gap: 18px; }
.favorite-topic { overflow: hidden; border: 1px solid #d8e7e8; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px #17424c10; scroll-margin-top: 16px; }
.favorite-topic h2 { margin: 0; padding: 15px 19px; color: #174954; background: #eef7f8; font-size: 18px; }
.favorite-topic-content { display: grid; gap: 12px; padding: 14px; }
.favorite-question { padding: 16px 18px; border: 1px solid #f0d0cd; border-radius: 11px; background: #ffb78c; }
.favorite-question-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; color: #176f83; font-size: 13px; font-weight: 700; }
.favorite-question-header button { width: 34px; height: 34px; border: 1px solid #e7a27e; border-radius: 9px; color: #9d4b27; background: #fff9f5; font-size: 18px; cursor: pointer; }
.favorite-subtopic { margin-bottom: 8px; color: #6c5144; font-size: 12px; }
.favorite-question-text { margin: 0 0 13px; color: #173b42; font-size: 17px; font-weight: 650; line-height: 1.6; white-space: pre-wrap; }
.favorite-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.favorite-option { padding: 9px 11px; border: 1px solid #e9c5ae; border-radius: 8px; color: #31555c; background: #fff8f4; line-height: 1.5; white-space: pre-wrap; }
.favorite-option.correct { border-color: #38b6a9; background: #d2f5ee; color: #155c58; font-weight: 700; }
.favorite-explanation { margin-top: 12px; padding: 12px; border-radius: 8px; color: #31555c; background: #fff8f4; line-height: 1.6; white-space: pre-wrap; }
.favorites-empty { padding: 35px 20px; border: 1px solid #d8e7e8; border-radius: 14px; color: #6a8388; background: #fff; text-align: center; }
@media (max-width: 760px) { .favorites-page { width: calc(100% - 24px); margin-top: 20px; } .favorites-layout { grid-template-columns: 1fr; } .favorites-navigation { position: static; display: flex; max-height: none; overflow-x: auto; } .favorite-filter { min-width: max-content; } .favorites-header { align-items: flex-start; flex-direction: column; } h1 { font-size: 27px; } }
@media (max-width: 520px) { .favorite-options { grid-template-columns: 1fr; } .favorite-question { padding: 13px; } }
