.fc-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.fc-welcome .fc-actions{margin-top:20px}.fc-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}.fc-dashboard{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.fc-dashboard h2{font-size:18px;margin-bottom:7px}.fc-dashboard p,.fc-dashboard small{color:var(--muted);margin:0;line-height:1.6}.fc-library-head{gap:16px;flex-wrap:wrap}.fc-library-head p{margin:6px 0 0;color:var(--muted)}.fc-decks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fc-deck{display:flex;flex-direction:column;align-items:flex-start;gap:15px;padding:24px}.fc-deck h3{font-size:18px;margin:12px 0 7px}.fc-deck p{margin:0;color:var(--muted);line-height:1.5}.fc-deck .btn{margin-top:auto}.fc-deck-meta{display:grid;gap:6px;font-size:13px;line-height:1.5}.fc-back{margin-bottom:16px}.fc-deck-header{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:24px}.fc-deck-header h2{font-size:23px;margin:12px 0 8px}.fc-deck-header p{color:var(--muted);margin-bottom:9px}.fc-deck-header small{color:var(--muted)}.fc-card-list{display:grid;gap:12px}.fc-card-row{display:flex;gap:18px;align-items:flex-start;justify-content:space-between}.fc-card-row>div:first-child{flex:1;min-width:0}.fc-card-row summary{cursor:pointer;font-weight:600;line-height:1.6}.fc-card-row details{margin-bottom:12px}.fc-card-row small{color:var(--muted);font-size:12px}.fc-card-row details p{margin:15px 0}.fc-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.fc-editor{max-width:760px;margin:0 auto}.fc-editor h2{font-size:21px}.fc-editor fieldset{border:0;margin:0;padding:0;min-width:0}.fc-field,.fc-search{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;margin-bottom:18px}.fc-field input,.fc-field textarea,.fc-field select,.fc-search input{width:100%;border:1px solid #dce5df;border-radius:9px;padding:12px;background:white;color:var(--ink);font:inherit;font-weight:400;min-width:0}.fc-field textarea{resize:none}.fc-field :is(input,select,textarea):focus,.fc-search input:focus{outline:2px solid #a2cab2;outline-offset:2px}.fc-error{background:var(--red-pale);color:var(--red);padding:14px;border-radius:9px;line-height:1.6}.fc-editor .fc-actions{margin-top:22px}.fc-study{max-width:800px;margin:0 auto;text-align:center;padding:38px}.fc-study h3{font-size:23px;margin:20px 0 28px}.fc-answer{border-top:1px solid var(--line);padding-top:25px;margin-bottom:28px;text-align:left}.fc-answer>p{font-size:18px}.fc-recall{color:var(--muted);margin:18px 0}.fc-rating-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.fc-rating-actions .btn{flex-direction:column;gap:6px}.fc-rating-actions small{font-weight:400;font-size:11px}.fc-track{max-width:800px;margin:0 auto 24px}.fc-shortcuts{text-align:center;margin:18px 0}.fc-complete{text-align:center;max-width:800px;margin:0 auto}.fc-complete .fc-stats{margin-top:26px;text-align:left}.fc-deck h3,.fc-deck-header h2,.fc-dashboard h2{overflow-wrap:anywhere}.fc-editor [hidden]{display:none}.fc-actions .btn:focus-visible,.fc-rating-actions .btn:focus-visible{outline:3px solid #91baa1;outline-offset:3px}
@media(max-width:700px){#nav{grid-template-columns:repeat(4,minmax(0,1fr))}.sidebar .nav-item{width:100%;min-height:48px}.sidebar .nav-label{white-space:normal}.fc-decks{grid-template-columns:1fr}.fc-dashboard,.fc-deck-header,.fc-card-row{flex-direction:column;align-items:stretch}.fc-study{padding:24px 18px}.fc-study h3{font-size:20px}.fc-answer>p{font-size:16px}.fc-stats{gap:8px}.fc-stats .stat-card{padding:12px 10px}.fc-stats .stat-top{gap:4px;flex-wrap:wrap}.fc-stats .stat-icon{display:none}.fc-stats .stat-value{font-size:23px}.fc-stats .stat-note{line-height:1.4}.fc-rating-actions{gap:7px}.fc-rating-actions .btn{padding:12px 5px;font-size:12px}.fc-rating-actions small{font-size:10px}.fc-card-row .fc-actions{justify-content:flex-end}.fc-library-head .fc-actions{width:100%}.fc-welcome{padding:24px}.fc-editor{padding:20px}.fc-complete{padding:20px}.fc-dashboard .btn{align-self:flex-start}}
@media(prefers-reduced-motion:reduce){.fc-actions .btn{transition:none}}

.nav-item>.nav-count[hidden]{display:none!important}

.fc-icon{display:block;width:22px;height:22px;object-fit:contain;filter:brightness(0) saturate(100%) invert(31%) sepia(16%) saturate(1410%) hue-rotate(98deg) brightness(93%) contrast(91%)}
.fc-welcome-icon .fc-icon{width:64px;height:64px}.fc-stats .stat-icon .fc-icon{width:21px;height:21px}
.fc-library-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.3fr) minmax(200px,.4fr);gap:16px;align-items:end}
.fc-search-wrap{position:relative;min-width:0;align-self:start}.fc-search-wrap .fc-search{margin-bottom:0}.fc-search-suggestions{position:absolute;z-index:20;top:calc(100% + 2px);left:0;right:0;max-height:min(320px,50dvh);overflow:auto;border:1px solid #dce5df;border-radius:11px;background:#fff;box-shadow:0 12px 30px #132d2824;padding:6px}.fc-search-suggestion{display:flex;width:100%;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.fc-search-suggestion:hover,.fc-search-suggestion:focus-visible{background:#edf6f0;outline:none}.fc-search-suggestion>span:first-child{display:grid;gap:2px;min-width:0}.fc-search-suggestion strong,.fc-search-suggestion small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fc-search-suggestion small,.fc-search-empty{color:var(--muted);font-size:12px}.fc-search-empty{padding:7px 10px;margin:0}.fc-name-suggestion{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-8px 0 18px;padding:12px;border:1px solid #dce9e0;border-radius:10px;background:#f4f9f5;color:var(--muted);font-size:13px}.fc-name-suggestion .btn{flex:none}.fc-shuffle-button{display:inline-flex;align-items:center;gap:8px}.fc-shuffle-icon{width:18px;height:18px}
.fc-study-shell{max-width:800px;margin:0 auto}.fc-flip{perspective:1600px;cursor:pointer;border-radius:14px;outline-offset:5px;touch-action:manipulation}
.fc-flip:focus-visible{outline:3px solid #246c49}.fc-flip.fc-space-flip:focus-visible{outline:none}.fc-flip-inner{display:grid;height:340px;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.25,.7,.25,1)}
.fc-flip.is-flipped .fc-flip-inner{transform:rotateY(180deg)}
.fc-flip-front,.fc-flip-back{grid-area:1/1;width:100%;height:340px;min-height:0;margin:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;box-shadow:0 5px 24px #1d35260d}
.fc-flip-front{transform:rotateY(0deg)}.fc-flip-back{transform:rotateY(180deg);background:#f3f9f5;border-color:#d8e8dd}
.fc-flip-front h3{max-width:100%;text-align:center;margin:auto 0}.fc-flip-answer{font-size:19px;margin:auto 0;padding:18px 0 24px;text-align:center;align-self:stretch;flex-shrink:0}.fc-flip-back .fc-turn-hint{margin-top:0;flex-shrink:0}.fc-flip-back .tiny{align-self:stretch;text-align:justify}
.fc-turn-hint{font-size:12px;color:var(--muted);margin-top:auto;padding-top:18px}.fc-flip .eyebrow{margin-top:0}.fc-study-controls{text-align:center;padding-top:14px}.fc-study-controls>button{margin-bottom:6px}.fc-study-controls [hidden]{display:none}
.fc-preview-dialog{border:1px solid var(--line);border-radius:18px;padding:24px;width:min(850px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;color:var(--ink);background:var(--bg);box-shadow:0 20px 60px #132d2840}
.fc-preview-dialog:focus,.fc-preview-dialog:focus-visible{outline:none}
/* Modal focus and its return stay quiet, including keyboard navigation. */
.popup-quiet-focus :focus{outline:none!important}
.popup-quiet-focus .dev-note-dialog textarea:focus{box-shadow:none}
.fc-preview-dialog::backdrop{background:#182b2459;backdrop-filter:blur(3px)}.fc-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.fc-preview-heading h2{font-size:20px;margin:0}.fc-preview-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;padding-top:20px}.fc-preview-controls p{flex-basis:100%;margin:2px 0 0}
.fc-editor-dialog{width:min(680px,calc(100vw - 32px))}.fc-editor-dialog .fc-editor{width:100%;max-width:none}.fc-deck-actions{margin-top:auto}.fc-deck-preview-list{display:grid;gap:12px;list-style:none;margin:0;padding:0}.fc-deck-preview-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 20px}.fc-deck-preview-card p{margin:0;font-weight:600}.fc-deck-preview-number{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eaf5ee;color:#246c49;font-size:13px;font-weight:700}
@media(max-width:700px){.fc-library-tools{grid-template-columns:1fr;gap:0}.fc-search-wrap{margin-bottom:18px}.fc-name-suggestion{align-items:flex-start;flex-direction:column}.fc-preview-dialog{padding:16px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.fc-preview-heading h2{font-size:17px}.fc-preview-heading .fc-actions{flex-direction:column;align-items:stretch}.fc-deck-preview-card{grid-template-columns:auto minmax(0,1fr);gap:10px;padding:14px}.fc-deck-preview-card .btn{grid-column:2;justify-self:start}.fc-flip-inner{height:300px}.fc-flip-front,.fc-flip-back{height:300px}.fc-flip-answer{font-size:18px}.fc-welcome-icon{display:none}}
@media(prefers-reduced-motion:reduce){.fc-flip-inner{transition:none}.fc-preview-dialog::backdrop{backdrop-filter:none}}

.fc-rating-actions [data-fc-rating="hard"]{background:#fff0ef;border-color:#e8aaa5;color:#963b35}
.fc-rating-actions [data-fc-rating="hard"]:hover{background:#ffe4e2;border-color:#d9867f}
.fc-rating-actions [data-fc-rating="good"]{background:#fff5d8;border-color:#e7cf78;color:#74550b}
.fc-rating-actions [data-fc-rating="good"]:hover{background:#ffedbd;border-color:#d8b94d}
.fc-rating-actions [data-fc-rating="easy"]{background:#eaf5ee;border-color:#acd0b8;color:#246c49}
.fc-rating-actions [data-fc-rating="easy"]:hover{background:#dcefe3;border-color:#7eb894}
.fc-rating-actions .btn:focus-visible{outline-color:currentColor}

.fc-practice-choices{display:grid;gap:20px}.fc-practice-choices>.btn{justify-self:start}.fc-practice-choices small{display:block;margin-top:4px;font-weight:400}.fc-practice-difficulties h3{font-size:15px;margin:0 0 10px}.fc-practice-difficulty-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fc-practice-selection-tools,.fc-practice-selection-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}.fc-practice-selection-tools label{display:flex;align-items:center;gap:8px;font-weight:600}.fc-practice-card-list{max-height:min(52dvh,520px);overflow:auto;padding:4px}.fc-practice-card-choice{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:8px 12px;width:100%;cursor:pointer}.fc-practice-card-choice .fc-text{margin:0}.fc-practice-card-choice small{grid-column:2;color:var(--muted)}.fc-practice-card-choice input{margin-top:5px;accent-color:#277e59}.fc-practice-selection-footer{border-top:1px solid var(--line);margin-top:8px}.fc-practice-difficulty-grid .btn:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:700px){.fc-practice-difficulty-grid{grid-template-columns:1fr}.fc-practice-choices>.btn{width:100%}.fc-practice-selection-footer{align-items:flex-start;flex-direction:column}}

.fc-card-list-tools{display:flex;justify-content:flex-end;margin:-8px 0 14px}.fc-card-list-tools .fc-field{min-width:min(280px,100%);margin:0}.fc-practice-primary-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.fc-practice-primary-actions .btn{display:flex;align-items:center;gap:8px}.fc-practice-difficulties>p{margin:0 0 10px;line-height:1.55}.fc-rating-word{display:inline-block;padding:4px 10px;border:0;border-radius:7px;font-weight:700;line-height:1.35}.fc-rating-hard{color:#963b35;background:#fff0ef}.fc-rating-good{color:#74550b;background:#fff5d8}.fc-rating-easy{color:#246c49;background:#eaf5ee}
@media(max-width:700px){.fc-card-list-tools{justify-content:stretch}.fc-card-list-tools .fc-field{width:100%}.fc-practice-primary-actions{align-items:stretch;flex-direction:column}.fc-practice-primary-actions .btn{justify-content:center}}

.fc-rating-actions [data-fc-rating="test"],.fc-practice-difficulty-grid [data-rating="test"]{background:#f5effc;border-color:#c4abdf;color:#7148a0}.fc-rating-actions [data-fc-rating="test"]:hover,.fc-practice-difficulty-grid [data-rating="test"]:hover{background:#ece0f9;border-color:#a785cb}.fc-rating-test{color:#7148a0;background:#f5effc}.fc-complete .fc-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:700px){.fc-rating-actions,.fc-complete .fc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.fc-search-suggestions[hidden]{display:none}

/* Compact summary, paginated content and secondary actions. */
.fc-welcome{padding:22px 26px;margin-bottom:20px}.fc-welcome .fc-actions{margin-top:14px}.fc-welcome-icon .fc-icon{width:42px;height:42px}
.fc-more{position:relative}.fc-more>[data-action-menu-trigger]{list-style:none;cursor:pointer}.fc-more>[data-action-menu-trigger]::-webkit-details-marker{display:none}.fc-more.is-open>[data-action-menu-panel]{position:absolute;z-index:25;right:0;top:calc(100% + 6px);display:grid;gap:7px;min-width:235px;max-width:calc(100vw - 40px);padding:12px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 25px #132d2824}.fc-more>div .btn{justify-content:flex-start;text-align:left}

.fc-backup-reminder{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;background:#edf5ef;border-radius:10px;font-size:13px}

.fc-history-events{display:grid;gap:12px}.fc-history-event h3{font-size:16px;margin:8px 0}.fc-history-event details{margin-top:12px}.fc-history-event summary{cursor:pointer}.fc-history-event .fc-text{margin:12px 0;max-height:260px;overflow:auto}
.fc-space-control:focus-visible{outline:none!important;box-shadow:none!important}
.fc-practice-difficulty-grid .fc-rating-hard{color:#963b35;background:#fff0ef;border-color:#e8aaa5}.fc-practice-difficulty-grid .fc-rating-good{color:#74550b;background:#fff5d8;border-color:#e7cf78}.fc-practice-difficulty-grid .fc-rating-easy{color:#246c49;background:#eaf5ee;border-color:#acd0b8}
.fc-rating-actions,.fc-complete .fc-stats{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
@media(max-width:700px){.fc-welcome{padding:18px 20px}.fc-welcome h2{font-size:19px}.fc-welcome p{font-size:13px}.fc-practice-dialog .fc-preview-heading{flex-direction:column;align-items:stretch}.fc-practice-dialog .fc-preview-heading>.fc-actions{flex-direction:row;align-self:flex-end;order:-1}.fc-practice-dialog .fc-preview-heading>button{align-self:flex-end;order:-1}.fc-more.is-open>[data-action-menu-panel]{right:auto;left:0}.fc-card-row .fc-actions{justify-content:flex-start}.fc-rating-actions,.fc-complete .fc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.fc-flip-inner,.fc-more .btn{transition:none}}

.fc-card-navigation{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:12px;align-items:center}.fc-card-stage{min-width:0}.fc-card-arrow{width:38px;height:46px;padding:0;font-size:30px;line-height:1}.fc-card-arrow:disabled{opacity:.35;cursor:default}.fc-practice-notice{margin:0 0 16px;padding:14px 16px;border:1px solid #b4d4c0;border-left:4px solid #277e59;border-radius:9px;background:#eaf5ee;color:#24563d}.fc-practice-notice strong{display:block;font-size:15px}.fc-practice-notice p{margin:6px 0 0;font-size:14px;line-height:1.6}
@media(max-width:700px){.fc-card-navigation{grid-template-columns:26px minmax(0,1fr) 26px;gap:4px}.fc-card-arrow{width:26px;height:40px;font-size:25px}.fc-card-stage .fc-study{padding-left:12px;padding-right:12px}}

.fc-practice-next{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:18px}.fc-last-difficulty{margin:0;color:var(--muted);font-size:14px}.fc-counter{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}.fc-counter>p{text-align:center;color:var(--muted);font-size:13px;margin:0 0 12px}.fc-counter-numbers{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.fc-counter-number{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:36px;height:36px;border:1px solid #dce5df;border-radius:8px;background:white;color:var(--ink);font:inherit;font-size:13px;cursor:pointer}.fc-counter-number[aria-current]{box-shadow:0 0 0 2px #506859;font-weight:700}.fc-counter-number:focus-visible{outline:3px solid #91baa1;outline-offset:3px}.fc-counter-hard{color:#963b35;background:#fff0ef;border-color:#e8aaa5}.fc-counter-good{color:#74550b;background:#fff5d8;border-color:#e7cf78}.fc-counter-easy{color:#246c49;background:#eaf5ee;border-color:#acd0b8}.fc-counter-test{color:#7148a0;background:#f5effc;border-color:#c4abdf}

.fc-practice-next{flex-direction:column;gap:10px}.fc-practice-next .btn{min-width:140px}.fc-recent-session{display:grid;gap:5px;margin:16px 0 6px;padding:12px 16px;border-left:3px solid #277e59;background:#ffffff80;border-radius:0 9px 9px 0}.fc-recent-session>strong{overflow-wrap:anywhere;font-size:16px}.fc-recent-session>span:not(.eyebrow),.fc-recent-session>small{color:var(--muted);font-size:13px}.fc-deck-progress{display:block;margin:0;font-size:13px;color:#24563d}

.fc-locked-practice{display:grid;gap:4px}.fc-locked-practice small{color:var(--muted);font-size:12px}.fc-locked-practice .btn:disabled{opacity:.5;cursor:not-allowed}
/* Flashcard activity and saved sessions stay readable on narrow screens. */
.fc-dashboard-sessions{display:grid;gap:12px;margin-top:12px}
.fc-dashboard-session{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding-top:12px;border-top:1px solid var(--line)}
.fc-dashboard-session p{flex:1 1 180px;margin:0;overflow-wrap:anywhere}
.fc-dashboard-session small{flex-basis:100%}
.fc-activity-wrap{overflow-x:auto;margin:16px 0}
.fc-activity{border-collapse:collapse;width:100%;font-size:.9rem;text-align:left}
.fc-activity th,.fc-activity td{padding:8px;border-bottom:1px solid var(--line);vertical-align:top}
.fc-activity caption{text-align:left;padding:8px 0;color:var(--muted)}
#fc-source-duplicate:not(:empty){padding:12px;border:1px solid var(--line);border-radius:12px;margin:12px 0}

.fc-performance{margin-bottom:24px}.fc-performance .section-head{flex-wrap:wrap;gap:16px}.fc-dashboard>div:first-child{min-width:0;flex:1}.fc-dashboard-sessions .btn{white-space:normal}.fc-performance small{color:var(--muted)}

.fc-source-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 0;padding:9px 12px;border:1px solid #dbe6ec;border-radius:9px;background:#f3f7fa;color:#607786;font-size:12px;line-height:1.45}.fc-source-notice .link-btn{flex:none;color:#416d87;font-size:12px}.fc-source-notice .link-btn:disabled{color:#8a979f;cursor:default}.fc-source-dialog h3{line-height:1.6;font-size:16px}.fc-source-dialog .feedback{margin-top:16px}.fc-source-dialog .option{cursor:default}
@media(max-width:700px){.fc-source-notice{align-items:flex-start;flex-wrap:wrap;font-size:11px}.fc-source-notice .link-btn{font-size:12px}}

.fc-create-question{background:#edf5ff;color:#315f96;border:1px solid #adc6e5;box-shadow:0 2px 5px #315f9610;font-weight:700}.fc-create-question:hover:not(:disabled){background:#dceafd;border-color:#729bc9}.fc-create-question:disabled{opacity:.5;box-shadow:none;cursor:not-allowed}.fc-source-proof{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 20px;color:var(--muted);font-size:13px}.fc-proof-question{margin:20px 0;padding-top:20px;border-top:1px solid var(--line)}.fc-dashboard-v2{margin:24px 0}.fc-review-decks{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.fc-review-deck{display:flex;flex-direction:column;gap:16px;align-items:flex-start;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff}.fc-review-deck>div{width:100%}.fc-review-deck h3{font-size:17px;margin:7px 0}.fc-review-deck p{font-size:13px;color:var(--muted);margin:6px 0}.fc-review-deck>.btn,.fc-review-deck>.fc-actions{margin-top:auto}.fc-review-picker{width:min(760px,calc(100vw - 32px))}.fc-performance-tile .stat-value{display:block;font:700 28px Manrope,sans-serif;margin:14px 0 6px}.fc-performance-tile .btn{padding:0;border:0;background:none;color:var(--green);font-size:12px;margin-top:6px}.fc-card-row .fc-source-notice{width:fit-content;max-width:100%}.performance-page-intro+.stats-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1000px){.performance-page-intro+.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.performance-page-intro+.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fc-review-decks{grid-template-columns:1fr}.fc-source-proof{align-items:flex-start;flex-direction:column}.fc-card-row .fc-source-notice{width:100%;box-sizing:border-box}}

.fc-complete-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin-top:24px}.fc-complete-actions>p{flex-basis:100%;margin:0 0 4px}.fc-dialog-notice{padding:14px 16px;margin:16px 0;border:1px solid #e8d6ad;border-left:4px solid #b8872c;border-radius:10px;background:#fff8e9;color:#765719;font-size:14px;line-height:1.6}.fc-dialog-notice:focus{outline:2px solid #d5b974;outline-offset:2px}.fc-proof-continue{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;padding:18px;border:1px solid #d6e8dc;border-radius:12px;background:#f1f7f3}.fc-proof-continue p{margin:5px 0 0;color:var(--muted);font-size:13px}.fc-dashboard-v2 .fc-review-decks{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.fc-dashboard-v2 .fc-review-deck{min-height:190px;min-width:0}.fc-dashboard-v2 .fc-review-deck h3{font-size:15px;overflow-wrap:anywhere}.fc-dashboard-v2 .fc-review-deck .btn{font-size:12px;padding:9px 11px;white-space:normal}.dashboard-exam-summary{margin-top:24px}.dashboard-exam-summary .stat-card{min-height:190px}.dashboard-exam-summary .section-head{margin-bottom:18px}
@media(max-width:900px){.fc-dashboard-v2 .fc-review-decks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.fc-proof-continue{flex-direction:column;align-items:flex-start}.fc-dashboard-v2 .fc-review-deck{padding:14px;min-height:185px}.dashboard-exam-summary .stat-card{min-height:185px}.fc-complete-actions{align-items:stretch;flex-direction:column}.fc-complete-actions>p{flex-basis:auto}}

/* Preview scrolls its questions while heading and pagination stay visible. */
.fc-deck-preview-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.fc-deck-preview-dialog>.fc-preview-heading{flex-shrink:0}
.fc-deck-preview-dialog .fc-preview-list-wrap{display:flex;flex-direction:column;min-height:0}
.fc-deck-preview-dialog .fc-deck-preview-list{overflow-y:auto;min-height:0;padding:4px;margin:0;overscroll-behavior:contain}
.fc-deck-preview-dialog .fc-pagination{flex-shrink:0;margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line)}
.fc-deck-preview-list:focus,.fc-card-list-start:focus{outline:none}

@media(max-width:700px){
 .fc-deck-preview-dialog .fc-preview-heading{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:center;margin-bottom:14px}
 .fc-deck-preview-dialog .fc-preview-heading>div:first-child{grid-column:1;grid-row:1}
 .fc-deck-preview-dialog .fc-preview-heading .eyebrow{font-size:11px}
 .fc-deck-preview-dialog .fc-preview-heading .fc-actions{display:contents}
 .fc-deck-preview-dialog .fc-preview-heading [data-fc-action="close-deck-preview"]{grid-column:2;grid-row:1;justify-self:end}
 .fc-deck-preview-dialog .fc-preview-heading [data-fc-action="shuffle-deck"]{grid-column:1;grid-row:2}
 .fc-deck-preview-dialog .fc-preview-heading [data-fc-action="edit-deck-preview"]{grid-column:2;grid-row:2}
 .fc-deck-preview-dialog .fc-preview-heading .btn{font-size:12px;padding:9px 8px;min-height:40px;min-width:0}
}

/* Material creation/import stay together within the existing green context. */
.fc-welcome .fc-actions>.btn{min-height:44px;max-width:100%;white-space:normal}
@media(max-width:430px){.fc-welcome .fc-actions{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}.fc-welcome .fc-actions>.btn{width:100%;justify-content:center}}

/* Explicit panel visibility also removes closed actions from touch hit testing. */
.fc-more>[data-action-menu-panel][hidden]{display:none}
