/* Flashcards 0.12.2: catalogue and review, preserving reader theme. */
#ecdFlashCatalog{--fc-bg:#101e32;--fc-panel:#172b44;--fc-line:#344f70;--fc-text:#eef4ff;--fc-muted:#b7c9df;--fc-accent:#20e3ff}
.ecd-fc-catalog-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(130deg,#1a3753,#14243a);border:1px solid #3b5c79;border-radius:18px;padding:clamp(18px,3vw,30px);margin-bottom:16px}
.ecd-fc-catalog-hero h2{margin:8px 0;font-size:clamp(25px,4vw,36px);line-height:1.15;letter-spacing:-.6px}.ecd-fc-catalog-hero p{max-width:560px;margin:8px 0 0;color:var(--fc-muted);font-size:14px}.ecd-fc-hero-icon{display:grid;place-items:center;width:76px;height:76px;flex:0 0 76px;border-radius:20px;background:#244a63;color:#20e3ff}.ecd-fc-hero-icon svg{width:48px;height:48px}
.ecd-fc-catalog-metrics,.ecd-fc-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.ecd-fc-catalog-metrics>div,.ecd-fc-metric{padding:15px 18px;border-radius:13px;border:1px solid var(--fc-line);background:var(--fc-bg);min-width:0}.ecd-fc-catalog-metrics small,.ecd-fc-metric span{display:block;color:var(--fc-muted);font-size:12px;line-height:1.35}.ecd-fc-catalog-metrics strong,.ecd-fc-metric strong{display:block;color:var(--fc-accent);font-size:28px;line-height:1.2;margin-top:5px;font-variant-numeric:tabular-nums}
.ecd-fc-filters{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:10px;align-items:end}.ecd-fc-filters label{font-size:12px}.ecd-fc-filters input,.ecd-fc-filters select,.ecd-fc-filters button{margin:0!important;min-height:44px}
#ecdFlashCatalog #ecdFlashCatalogStatus{background:transparent;border:0;padding:8px 0;color:var(--fc-muted);margin:8px 0}.ecd-fc-decks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:12px}.ecd-fc-deck{display:flex;flex-direction:column;gap:9px;padding:18px;background:var(--fc-bg);border:1px solid var(--fc-line);border-radius:15px;min-width:0}.ecd-fc-deck-top{display:flex;align-items:center;justify-content:space-between}.ecd-fc-deck-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:11px;background:#1e405a;color:#20e3ff;font-size:24px}.ecd-fc-deck-access{font-size:10px;font-weight:750;letter-spacing:.06em;color:#b6d7f3}.ecd-fc-deck-discipline{font-size:11px;color:#8cd9ef;font-weight:700}.ecd-fc-deck h3{font-size:16px;line-height:1.4;margin:0;overflow-wrap:anywhere}.ecd-fc-deck-description{font-size:13px;color:var(--fc-muted);line-height:1.5;margin:0;overflow-wrap:anywhere}.ecd-fc-deck-open{margin:12px 0 0!important;min-height:44px;background:#20e3ff;color:#09202e;font-weight:750}.ecd-fc-deck-open:last-child{margin-top:auto!important}.ecd-fc-empty{grid-column:1/-1;text-align:center;background:var(--fc-bg);border:1px dashed var(--fc-line);padding:32px 18px;border-radius:16px}.ecd-fc-empty .ecd-fc-deck-icon{margin:0 auto 12px}.ecd-fc-empty h3{margin:8px 0}.ecd-fc-empty p{color:var(--fc-muted);font-size:14px}
#ecdFlashcards{--fc-bg:#0d192c;--fc-panel:#162b44;--fc-line:#365472;--fc-text:#f0f5ff;--fc-muted:#b6c8df;--fc-accent:#20e3ff;--fc-good:#63e6af;--fc-hard:#f7cb79;--fc-again:#fca5a5;--fc-easy:#a6ceff;color:var(--fc-text);background:var(--fc-panel);border:1px solid var(--fc-line);padding:clamp(16px,4vw,30px);border-radius:20px;min-width:0;max-width:860px;margin:18px auto;box-sizing:border-box}
#ecdFlashcards h3{font-size:clamp(23px,4vw,30px);line-height:1.2;letter-spacing:-.45px;margin:7px 0}#ecdFlashcards .ecd-fc-muted{color:var(--fc-muted);font-size:13px;line-height:1.5;margin:6px 0}.ecd-fc-head{margin-bottom:18px}#ecdFlashcards .ecd-fc-kicker{color:var(--fc-accent);font-size:10px;letter-spacing:.10em}.ecd-fc-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.ecd-fc-metric.due strong{color:var(--fc-good)}.ecd-fc-metric.scheduled strong{color:var(--fc-hard)}
#ecdFlashcards button.ecd-fc-choice{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;width:100%;margin:0;min-height:60px;padding:13px 10px;background:var(--fc-bg);color:var(--fc-text);border:1px solid var(--fc-line);border-radius:12px;font-size:14px;line-height:1.25;font-weight:750;white-space:normal}#ecdFlashcards .ecd-fc-choice small{display:block;font-size:11px;font-weight:500;color:var(--fc-muted);line-height:1.4}#ecdFlashcards button.ecd-fc-start{background:var(--fc-accent);border-color:var(--fc-accent);color:#09202e;min-height:62px;font-size:16px}#ecdFlashcards button.ecd-fc-start small{color:#16384a}#ecdFlashcards button:disabled{opacity:.55;cursor:not-allowed}.ecd-fc-menu-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}.ecd-fc-agenda,.ecd-fc-settings{margin-top:14px;border:1px solid var(--fc-line);background:var(--fc-bg);border-radius:12px;padding:13px;color:var(--fc-text)}.ecd-fc-agenda strong,.ecd-fc-settings summary{font-size:13px}.ecd-fc-agenda p{margin:5px 0 0!important;font-size:13px;color:var(--fc-muted)}.ecd-fc-settings summary{cursor:pointer}.ecd-fc-settings button{width:auto;margin:6px 0 0}
.ecd-fc-progress-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:var(--fc-muted);margin:10px 0 6px}.ecd-fc-progress-line strong{color:var(--fc-text)}#ecdFlashcards progress{display:block;width:100%;height:8px;border:0;border-radius:99px;overflow:hidden;accent-color:var(--fc-accent);background:var(--fc-bg)}#ecdFlashcards progress::-webkit-progress-bar{background:var(--fc-bg);border-radius:99px}#ecdFlashcards progress::-webkit-progress-value{background:var(--fc-accent);border-radius:99px}
.ecd-fc-stage{min-height:250px;box-sizing:border-box;display:flex;flex-direction:column;gap:16px;padding:clamp(18px,4vw,32px);border:1px solid var(--fc-line);border-radius:18px;background:var(--fc-bg);margin:18px 0 14px;overflow-wrap:anywhere;outline-offset:4px}.ecd-fc-stage.front{background:linear-gradient(145deg,var(--fc-panel),var(--fc-bg));border-color:var(--fc-line)}.ecd-fc-stage.back{border-color:var(--fc-good);border-top:4px solid var(--fc-good)}.ecd-fc-stage-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.ecd-fc-side{font-size:11px;letter-spacing:.12em;font-weight:750;color:var(--fc-accent)}.ecd-fc-stage.back .ecd-fc-side{color:var(--fc-good)}.ecd-fc-symbol{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:10px;background:#24465f;color:#20e3ff;font-size:19px;font-weight:750}.ecd-fc-stage.back .ecd-fc-symbol{background:#1d443a;color:#8ce8b9}.ecd-fc-topic{font-size:12px;font-weight:650;color:var(--fc-muted);overflow-wrap:anywhere}.ecd-fc-stage .ecd-fc-text{font-size:clamp(18px,3vw,24px);line-height:1.65;color:var(--fc-text)}.ecd-fc-stage.front>.ecd-fc-text{font-weight:600;flex:1;display:flex;align-items:center}.ecd-fc-stage.back>.ecd-fc-text{font-size:clamp(16px,2.4vw,20px)}.ecd-fc-stage .richtext{min-width:0;max-width:100%;width:100%}.ecd-fc-stage .richtext p{color:inherit!important;margin:.45em 0}.ecd-fc-reference{border-top:1px solid var(--fc-line);padding-top:10px;font-size:12px;color:var(--fc-muted)}.ecd-fc-reference summary{cursor:pointer;font-weight:650;color:var(--fc-muted)}.ecd-fc-reference .ecd-fc-text{font-size:13px!important;line-height:1.5;color:var(--fc-muted);font-weight:400}.ecd-fc-question{padding:10px 12px;border:1px solid var(--fc-line);border-radius:10px;margin-bottom:12px}.ecd-fc-rating-heading{font-size:15px;margin:18px 0 10px}.ecd-fc-ratings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}#ecdFlashcards .ecd-fc-rating{min-height:104px;gap:6px;border-color:var(--fc-rating);color:var(--fc-rating)}.ecd-fc-again{--fc-rating:var(--fc-again)}.ecd-fc-hard{--fc-rating:var(--fc-hard)}.ecd-fc-good{--fc-rating:var(--fc-good)}.ecd-fc-easy{--fc-rating:var(--fc-easy)}.ecd-fc-rating-icon{font-size:20px;line-height:1}.ecd-fc-session-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;flex-wrap:wrap}#ecdFlashcards button.ecd-fc-exit{width:auto;margin:0;background:transparent;border:0;color:var(--fc-muted);font-size:12px;min-height:44px;padding:8px}.ecd-fc-warning{color:var(--fc-hard)!important;font-size:13px}.ecd-fc-choice:focus-visible,.ecd-fc-deck-open:focus-visible,.ecd-fc-stage:focus-visible{outline:3px solid var(--fc-accent);outline-offset:3px}
.reader-light #ecdFlashcards{--fc-bg:#fff;--fc-panel:#f2f7fc;--fc-line:#b6c8d9;--fc-text:#172d43;--fc-muted:#465e75;--fc-accent:#146a90;--fc-good:#16734e;--fc-hard:#8a5800;--fc-again:#a22435;--fc-easy:#205b99}.reader-light #ecdFlashcards button.ecd-fc-start{color:#fff}.reader-light #ecdFlashcards button.ecd-fc-start small{color:#e1f2fa}.reader-light #ecdFlashcards .ecd-fc-symbol{background:#d9edf7;color:#135d81}
main.study-mode[data-flash-view=true].reading-material #librarypanel{max-width:1000px;margin-inline:auto;background:transparent;border:0;box-shadow:none}main.study-mode[data-flash-view=true].reading-material #libreader>.reader-head{max-width:860px;margin:0 auto 12px;text-align:left}main.study-mode[data-flash-view=true].reading-material #libreader>.reader-head h2{font-size:clamp(18px,3vw,25px);line-height:1.3}main.study-mode[data-flash-view=true].reading-material #readerdescription{display:none}main.study-mode[data-flash-view=true].reading-material .reader-toolbar{max-width:860px;margin-inline:auto}main.study-mode[data-flash-view=true].reading-material #readerSmaller,main.study-mode[data-flash-view=true].reading-material #readerLarger{display:none}
@media(max-width:700px){.ecd-fc-catalog-hero{padding:16px;gap:10px}.ecd-fc-hero-icon{width:52px;height:52px;flex-basis:52px}.ecd-fc-hero-icon svg{width:34px;height:34px}.ecd-fc-filters{grid-template-columns:1fr 1fr}.ecd-fc-filters button{grid-column:1/-1;width:100%!important}.ecd-fc-catalog-metrics>div,.ecd-fc-metric{padding:12px 9px}.ecd-fc-metric strong{font-size:24px}.ecd-fc-metric span{font-size:11px}.ecd-fc-ratings{grid-template-columns:repeat(2,minmax(0,1fr))}#ecdFlashcards .ecd-fc-rating{min-height:78px}.ecd-fc-stage{min-height:210px;gap:12px}.ecd-fc-progress-line{font-size:12px}#ecdFlashcards{padding:15px}.ecd-fc-stage .ecd-fc-text{font-size:19px}.ecd-fc-stage.back>.ecd-fc-text{font-size:17px}.ecd-fc-session-footer{gap:5px}.ecd-fc-menu-options{gap:8px}}@media(max-width:360px){.ecd-fc-filters{grid-template-columns:1fr}.ecd-fc-metrics{gap:5px}.ecd-fc-metric{padding:9px 6px}.ecd-fc-metric span{font-size:10px}.ecd-fc-menu-options{grid-template-columns:1fr}}
