/* StudyBrix flashcards */
.fc-jump{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.fc-jump a{padding:6px 12px;border:1px solid #d5dbea;border-radius:999px;text-decoration:none;color:#25356f;background:#fff}
.fc-group>h2{display:flex;align-items:baseline;gap:10px;margin:28px 0 8px}.fc-group>h2 span{font-size:14px;font-weight:500;color:#4f5970}
.fc-faculty{margin:18px 0 8px;font-size:17px;color:#25356f}
.fc-deck-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.fc-deck-card{background:#fff;border:1px solid #e1e5ef;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:6px}
.fc-deck-card h3{margin:0;font-size:17px;line-height:1.3}.fc-deck-card p{margin:0;color:#3b4459;font-size:14px;line-height:1.45}
.fc-meta{display:flex;gap:10px;margin-top:auto!important;padding-top:6px;font-size:13px!important;color:#4f5970!important}
.fc-modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.fc-modes div{background:#f6f7fb;border-radius:10px;padding:12px 14px}.fc-modes dt{font-weight:700;margin-bottom:4px}.fc-modes dd{margin:0}
/* Study widget */
.fc-app{background:#fff;border:1px solid #dfe3ee;border-radius:16px;padding:16px;margin:8px 0 14px;box-shadow:0 2px 10px rgba(33,64,196,.06)}
.fc-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #e6e9f2;padding-bottom:10px}
.fc-tabs button{border:1px solid #d5dbea;background:#f6f7fb;color:#1d2433;border-radius:999px;padding:8px 16px;font:inherit;font-weight:600;cursor:pointer}
.fc-tabs button[aria-selected=true]{background:#2140c4;border-color:#2140c4;color:#fff}
.fc-options{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:10px 0;font-size:14px}.fc-options label{display:inline-flex;align-items:center;gap:8px;margin:0;font-weight:600}.fc-options select{width:auto;max-width:260px;margin:0;padding:6px 10px;font-weight:400}.fc-options input{margin:0}
.fc-panel{outline:none;min-height:260px}
.fc-count{margin:6px 0;color:#4f5970;font-size:14px}
.fc-card{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;width:100%;min-height:240px;padding:28px;border:2px solid #cfd6ea;border-radius:16px;background:#fbfcff;color:#1d2433;font:inherit;cursor:pointer;text-align:center;transition:transform .25s ease,background .2s}
.fc-card.flipped{background:#f2f5ff;border-color:#2140c4}.fc-card:focus-visible{outline:3px solid #2140c4;outline-offset:3px}
.fc-term{font-size:clamp(20px,3.2vw,30px);font-weight:700;line-height:1.25}.fc-def{font-size:18px;line-height:1.5;max-width:60ch}
.fc-ex{display:block;font-size:15px;color:#3b4459;margin-top:6px}.fc-hint{font-size:13px;color:#4f5970}
@media (prefers-reduced-motion:no-preference){.fc-card:active{transform:scale(.99)}}
.fc-sort{display:flex;gap:10px;justify-content:center;margin:14px 0 6px;flex-wrap:wrap}.fc-sort .button{min-width:170px}
.fc-nav{display:flex;justify-content:space-between;gap:10px}
kbd{font:600 11px/1 inherit;border:1px solid #c5ccdc;border-radius:4px;padding:2px 5px;margin-left:4px;background:#fff;color:#3b4459}
.fc-done{text-align:center;padding:24px 8px}.fc-done .actions{justify-content:center}
.fc-learn-stats{display:flex;gap:16px;font-size:14px;color:#3b4459;margin:6px 0 10px}
.fc-q-label{margin:0;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#4f5970;font-weight:700}
.fc-q-prompt{font-size:20px;line-height:1.45;margin:6px 0 14px}
.fc-choices{display:grid;gap:8px}.fc-choice{text-align:left;border:1px solid #d5dbea;background:#fff;border-radius:10px;padding:12px 14px;font:inherit;color:#1d2433;cursor:pointer;line-height:1.4}
.fc-choice:hover:not(:disabled){border-color:#2140c4}.fc-choice.right{border-color:#1d7a46;background:#eaf7ef}.fc-choice.wrong{border-color:#b3261e;background:#fdeeee}
.fc-input{width:100%;font:inherit;font-size:18px;padding:10px 12px;border:1px solid #b9c1d6;border-radius:10px}
.fc-feedback{margin-top:12px}.fc-feedback .ok,.fc-tfb .ok{color:#1d6b3e}.fc-feedback .no,.fc-tfb .no{color:#9b2018}
.fc-match{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
.fc-tile{min-height:88px;border:1px solid #d5dbea;background:#fff;border-radius:10px;padding:10px;font:inherit;font-size:14px;color:#1d2433;cursor:pointer;line-height:1.35}
.fc-tile.term{font-weight:700;background:#f6f7fb}.fc-tile.sel{border:2px solid #2140c4;background:#eef1ff}.fc-tile.gone{visibility:hidden}.fc-tile.miss{border-color:#b3261e;background:#fdeeee}
.fc-match-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}.fc-timer{font-variant-numeric:tabular-nums;font-weight:700}
.fc-test-setup fieldset{border:0;padding:0;margin:0 0 12px;display:flex;gap:16px;flex-wrap:wrap}.fc-test-setup legend{font-weight:700;margin-bottom:6px}
.fc-tq{border:1px solid #e1e5ef;border-radius:10px;padding:12px 14px;margin:0 0 10px}.fc-tq legend{font-weight:600;padding:0 4px;line-height:1.45}
.fc-tq label{display:block;padding:5px 0}.fc-tq.right{border-color:#1d7a46}.fc-tq.wrong{border-color:#b3261e}
.fc-tq input[type=text]{width:100%;font:inherit;padding:8px 10px;border:1px solid #b9c1d6;border-radius:8px}
.fc-confirm{border:1px solid #d5dbea;background:#fffbea;border-radius:10px;padding:10px 12px;margin:8px 0}
.fc-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
/* Deck content */
.fc-glossary{margin:0}.fc-glossary div{display:grid;grid-template-columns:minmax(140px,30%) 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #eceff5}
.fc-glossary dt{font-weight:700}.fc-glossary dd{margin:0;line-height:1.5}
.fc-tag h3{margin:22px 0 4px;font-size:17px;color:#25356f}
.fc-aside ul{padding-left:18px}.fc-aside small{color:#4f5970}
/* Provinces */
.fc-steps ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.fc-steps li{background:#fff;border:1px solid #e1e5ef;border-radius:12px;padding:16px}.fc-steps h2{font-size:18px;margin:0 0 6px}
.fc-prov{border-top:1px solid #e6e9f2;padding:12px 0}.fc-prov h3{margin:6px 0}
.fc-prov-table{width:100%;border-collapse:collapse;font-size:14px;margin:8px 0}.fc-prov-table th,.fc-prov-table td{border-bottom:1px solid #e6e9f2;padding:6px 8px;text-align:left}
.fc-prov-links{font-size:14px}
/* Your decks */
.fc-mine-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.fc-mine-head small{font-weight:500;color:#4f5970;font-size:14px}
.fc-mine-list{list-style:none;padding:0}.fc-mine-list li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #e6e9f2}
.fc-mine-list small{display:block;color:#4f5970}.fc-mine-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.fc-edit label{display:block;margin:0 0 10px;font-weight:600}.fc-edit input,.fc-edit textarea{display:block;width:100%;font:inherit;font-weight:400;padding:8px 10px;border:1px solid #b9c1d6;border-radius:8px;margin-top:4px}
.fc-row{display:grid;grid-template-columns:28px 1fr 1.6fr auto;gap:8px;align-items:start;margin-bottom:8px}.fc-row label{margin:0}.fc-row-n{padding-top:12px;color:#4f5970;font-size:13px}
.fc-paste{margin:6px 0 14px}
@media (max-width:640px){.fc-glossary div{grid-template-columns:1fr;gap:2px}.fc-row{grid-template-columns:1fr}.fc-row-n{display:none}.fc-card{min-height:200px;padding:18px}.fc-sort .button{min-width:0;flex:1}}
.fc-app .text-btn,.fc-mine .text-btn,.fc-edit .text-btn,.fc-confirm .text-btn{background:none;border:0;padding:6px 4px;font:inherit;color:#2140c4;text-decoration:underline;cursor:pointer}
.fc-app .text-btn:disabled{color:#6b7385;text-decoration:none;cursor:default}
