/* DailyBrainArc V0.766 | Flashcard Study Atelier. Presentation-only layer; original V0.475 engine untouched. */
.fc766{
 --ink:#15372f;--pine:#123f37;--pine2:#1b584c;--mint:#d5f1df;--honey:#e9bb68;--cream:#f9f7f0;--paper:#fffefa;--border:#d9e5de;--muted:#637b72;
 background:var(--cream);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.fc766 *{box-sizing:border-box}
.fc766 button,.fc766 a,.fc766 textarea,.fc766 input{ -webkit-tap-highlight-color:transparent }
.fc766 :is(button,a,input,textarea,summary):focus-visible{outline:3px solid #d69b33;outline-offset:3px}
.fc766 .topbar{background:#123b34!important;border-bottom:1px solid #356259;color:#fff}
.fc766 .topbar .brand,.fc766 .topbar .brand small,.fc766 .topbar a{color:#fff}
.fc766 .topbar .wrap{max-width:1460px}
.fc766 .fc-main{max-width:1440px;margin:0 auto;padding:14px 22px 74px}
.fc766 .fc-hero{min-height:110px;display:flex;justify-content:space-between;align-items:center;gap:12px;position:relative;margin:0 0 15px;padding:19px 29px;background:radial-gradient(circle at 86% 50%,#2f6856 0,#163f37 32%,#10322d 76%);border-radius:20px;border:1px solid #315c4e;box-shadow:0 14px 28px #244e4220}
.fc766 .fc-kicker{color:#e6bd70;font-size:10px;letter-spacing:.19em}
.fc766 .fc-hero h1{color:#fff9e8;font-family:Georgia,"Times New Roman",serif;font-size:clamp(25px,3.05vw,43px);font-weight:600;letter-spacing:-.045em;line-height:1.06;margin:5px 0 5px}
.fc766 .fc-hero h1 em{color:#e0c58b;font-style:italic}
.fc766 .fc-hero p{max-width:650px;font-size:12px;line-height:1.55;color:#d4e8db;margin:0}
.fc766 .fc-highlights{margin-top:7px;gap:7px}
.fc766 .fc-highlights span{font-size:10px;font-weight:650;border:1px solid #a9cfbb55;padding:3px 9px;color:#e4ebdc;background:#ffffff09}
.fc766 .fc-hero-art{height:83px;width:155px;min-width:155px;margin-right:12px}
.fc766 .fc-illustration{inset:2px 30px 3px 4px;border-radius:10px;padding:11px 12px;gap:4px;box-shadow:0 6px 19px #001a164f}
.fc766 .fc-illustration small{font-size:8px;letter-spacing:.12em;color:#547467}
.fc766 .fc-illustration b{font-family:Georgia,serif;font-size:13px;line-height:1.13}
.fc766 .fc-illustration.fc-art-back{inset:7px 0 0 31px;background:#dceddb}
.fc766 .fc-art-arc{font-size:13px;bottom:5px;right:9px;color:#23845f}
.fc766 .fc-workspace{grid-template-columns:246px minmax(0,1fr);gap:15px;align-items:start}
.fc766 .fc-panel{border:1px solid var(--border);border-radius:18px;background:var(--paper);box-shadow:0 5px 24px #345f4912;padding:16px}
.fc766 .fc-sidebar{top:14px;border-radius:18px;background:#f3f7ef;padding:17px}
.fc766 .fc-sidebar-head h2{font-family:Georgia,serif;color:var(--ink);font-size:23px;font-weight:700;line-height:1.1}
.fc766 .fc-sidebar-hint{font-size:11px;color:#718277;line-height:1.35;margin:6px 0 14px}
.fc766 .fc-icon-btn{border-radius:10px;background:#205b4b;color:#fff}
.fc766 .fc-icon-btn:hover{background:#2b795f}
.fc766 .fc-decks{gap:7px;max-height:350px}
.fc766 .fc-deck{background:#fffefa;border:1px solid #d8e4d5;border-radius:11px;color:var(--ink);padding:12px;line-height:1.25}
.fc766 .fc-deck span{display:block;margin-top:4px;color:#72877b}
.fc766 .fc-deck.is-selected{background:#dcecdf;border-color:#2a6654;border-left:5px solid #2a6654;padding:12px 8px}
.fc766 .fc-side-footer{border-color:#d6e3d5}
.fc766 .fc-stage{display:flex;flex-direction:column;gap:10px;min-width:0}
/* Flatten overview layout so the flashcard action precedes secondary statistics. */
.fc766 .fc-stage>.fc-overview{display:contents}
.fc766 .fc-stage .fc-titlebar{order:1;min-width:0;background:transparent;padding:2px 4px 4px;align-items:center}
.fc766 .fc-stage .fc-mode-tabs{order:2;display:flex;flex-wrap:nowrap;gap:5px;overflow-x:auto;scrollbar-width:none;padding:1px 2px 5px;max-width:100%}
.fc766 .fc-mode-tabs::-webkit-scrollbar{display:none}
.fc766 .fc-stage .fc-active{order:3;padding:17px 20px 18px;background:#fffefa;border-color:#d5dfd2;box-shadow:0 14px 38px #1c483518}
.fc766 .fc-stage .fc-stats{order:4;margin:2px 0 3px;gap:8px}
.fc766 .fc-stage .fc-import{order:5}
.fc766 .fc-stage .fc-bottom{order:6}
.fc766 .fc-overline{color:#537666;font-size:9px;font-weight:800;letter-spacing:.15em}
.fc766 .fc-titlebar h2{font-family:Georgia,"Times New Roman",serif;color:var(--ink);font-size:clamp(23px,2.1vw,29px);font-weight:700;letter-spacing:-.035em;margin:2px 0}
.fc766 .fc-titlebar p{font-size:12px;line-height:1.35;margin:1px 0;color:#65796d}
.fc766 .fc-header-actions{gap:5px}
.fc766 .fc-header-actions button{white-space:nowrap;font-size:11px}
.fc766 .fc-outline{border:1px solid #cedfd4;background:#fffefa;color:#285547;border-radius:10px;padding:8px 11px;min-height:36px;font-weight:700}
.fc766 .fc-outline:hover,.fc766 .fc-deck:hover,.fc766 .fc-mode-tabs button:hover{background:#eaf4e8;border-color:#88b5a3;color:#123f37}
.fc766 .fc-danger-outline{border:1px solid #ead1c8;background:#fffefa;color:#a45643;border-radius:10px;padding:8px 10px;min-height:36px}
.fc766 .fc-mode-tabs button{min-height:43px;flex:1 0 auto;background:#eaf1e8;border:1px solid #d6e2d8;color:#315e50;border-radius:10px;padding:9px 14px;font-size:12px;font-weight:750;white-space:nowrap}
.fc766 .fc-mode-tabs button.is-active{background:#144638;color:#fff;border-color:#144638;box-shadow:0 3px 10px #123f3725}
.fc766 .fc-active .fc-study-head{margin-bottom:11px;gap:8px;align-items:center}
.fc766 .fc-study-head h2{font-family:Georgia,serif;color:var(--ink);font-size:clamp(17px,2vw,23px);line-height:1.05;margin:4px 0 0}
.fc766 .fc-study-controls{gap:5px 11px;justify-content:flex-end}
.fc766 .fc-inline-check{font-size:11px;color:#527566;white-space:nowrap}
.fc766 .fc-inline-check input{accent-color:#1f634e}
.fc766 .fc-study-controls .fc-outline{font-size:11px;min-height:32px;padding:5px 10px}
.fc766 .fc-study{min-height:0}
.fc766 .fc-progress-row{font-size:11px;color:#728476;margin-bottom:6px}
.fc766 .fc-track{height:5px;background:#e8efe7;border-radius:4px;margin-bottom:9px}
.fc766 .fc-track>div{background:#c39a55}
.fc766 .fc-flash{min-height:246px;padding:33px 18px 29px;border:1px solid #d7e4d6;border-radius:16px;background:radial-gradient(ellipse at 15% 5%,#fff 0,#f3f6ed 78%);box-shadow:inset 0 0 0 5px #f9fbf6,0 4px 16px #294b3211;color:#193b32;transition:transform .18s,border-color .18s}
.fc766 .fc-flash:hover{border-color:#b1ccba}
.fc766 .fc-flash:active{transform:scale(.995)}
.fc766 .fc-flash.is-back{background:radial-gradient(ellipse at 15% 5%,#f9fff9 0,#e0f1e3 80%);border-color:#8dbda5}
.fc766 .fc-flash small{color:#52806b;top:16px;left:17px;font-size:10px}
.fc766 .fc-flash strong{font-family:Georgia,"Times New Roman",serif;font-weight:650;font-size:clamp(24px,3.35vw,44px);line-height:1.23;letter-spacing:-.025em}
.fc766 .fc-flash em{color:#5f8873;font-size:10px;bottom:15px}
.fc766 .fc-row{margin:10px 0 2px;gap:7px}
.fc766 .fc-row button{font-size:12px;min-height:37px}
.fc766 .fc-grades{gap:7px;margin-top:9px}
.fc766 .fc-grades button{min-height:54px;border-radius:10px;padding:8px 4px}
.fc766 .fc-grades button:nth-child(1){background:#fff4f0;color:#a85241;border-color:#f1d0c5}
.fc766 .fc-grades button:nth-child(2){background:#fff7e7;color:#936b35;border-color:#f1dfbd}
.fc766 .fc-grades button:nth-child(3){background:#ecf6ec;color:#2a6950;border-color:#b8d9bf}
.fc766 .fc-grades button:nth-child(4){background:#e4f4e7;color:#216a4c;border-color:#a9d0b3}
.fc766 .fc-grades small{font-size:10px}
.fc766 .fc-message{margin-top:6px;min-height:12px;color:#517463;font-size:11px}
.fc766 .fc-stats>div{border-color:#d8e5d8;background:#f1f6ee;border-radius:12px;padding:9px 5px}
.fc766 .fc-stats b{color:#245c4c;font-size:22px}
.fc766 .fc-stats span{color:#668176;font-size:10px}
.fc766 .fc-question{background:#f3f6ed;border-color:#d8e5d5;border-radius:13px;padding:24px;min-height:110px}
.fc766 .fc-question strong{font-family:Georgia,serif;color:#1a483b}
.fc766 .fc-choices button,.fc766 .fc-match-col button{background:#f5f8f1;border-color:#d9e6d9;color:#254b3e}
.fc766 .fc-choices button:hover:not(:disabled),.fc766 .fc-match-col button:hover:not(:disabled){background:#e6f2e5;border-color:#99c9aa}
.fc766 .fc-primary{background:#175744;color:#fff;border-radius:10px}
.fc766 .fc-primary:hover{background:#236e53}
.fc766 .fc-empty{padding:30px 9px;color:#607e6c}
.fc766 .fc-empty h3{font-family:Georgia,serif;color:#1d4b3a}
.fc766 .fc-edit-form .fc-field textarea,.fc766 .fc-answer-row input,.fc766 .fc-bulk textarea{color:#17382d;border-color:#bfd6c4;background:white}
.fc766 .fc-import{background:#f7f7ef;padding:18px}
.fc766 .fc-import h2{font-family:Georgia,serif;color:#1c4f3b}
.fc766 .fc-bottom{color:#607a6e}
.fc766 .fc-bottom h2,.fc766 .fc-bottom h3{color:#1d4838}
@media(min-width:900px){.fc766 .fc-study-controls{margin-left:auto}.fc766 .fc-flash{min-height:255px}}
@media(max-width:820px){
 .fc766 .fc-main{padding:10px 13px 54px}
 .fc766 .fc-workspace{display:flex;flex-direction:column;gap:13px}
 .fc766 .fc-stage{order:1;width:100%;gap:8px}
 .fc766 .fc-sidebar{order:2;position:static;width:100%;display:grid;grid-template-columns:1fr;gap:5px}
 .fc766 .fc-decks{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));max-height:none}
 .fc766 .fc-hero{padding:13px 17px;min-height:93px;margin-bottom:10px;border-radius:15px}
 .fc766 .fc-hero h1{font-size:clamp(24px,4.5vw,33px)}
 .fc766 .fc-hero p{font-size:11px}
 .fc766 .fc-hero-art{width:115px;min-width:115px;height:80px;margin-right:0}
 .fc766 .fc-illustration b{font-size:11px}
 .fc766 .fc-stage .fc-active{padding:12px 13px}
 .fc766 .fc-titlebar h2{font-size:25px}
 .fc766 .fc-flash{min-height:230px}
}
@media(max-width:530px){
 .fc766 .fc-main{padding:7px 9px 40px}
 .fc766 .topbar .nav{min-height:49px}
 .fc766 .topbar .navlinks{display:none}
 .fc766 .fc-hero{min-height:67px;padding:10px 14px;margin-bottom:6px;border-radius:13px}
 .fc766 .fc-hero-art,.fc766 .fc-highlights{display:none}
 .fc766 .fc-kicker{font-size:8px}
 .fc766 .fc-hero h1{font-size:26px;margin:4px 0 3px}
 .fc766 .fc-hero p{font-size:10px;line-height:1.28}
 .fc766 .fc-stage{gap:6px}
 .fc766 .fc-stage .fc-titlebar{padding:0 4px 1px;gap:4px;align-items:center}
 .fc766 .fc-titlebar h2{font-size:20px;margin:1px 0}
 .fc766 .fc-titlebar p{font-size:10px;line-height:1.2;max-width:230px}
 .fc766 .fc-header-actions{gap:4px}
 .fc766 .fc-header-actions button{font-size:10px;min-height:31px;padding:6px 7px}
 .fc766 .fc-header-actions #fcRenameDeck,.fc766 .fc-header-actions #fcDeleteDeck{display:none}
 .fc766 .fc-mode-tabs{gap:5px}
 .fc766 .fc-mode-tabs button{font-size:11px;min-height:36px;padding:7px 11px}
 .fc766 .fc-active .fc-study-head{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:6px}
 .fc766 .fc-study-head h2{font-size:17px}
 .fc766 .fc-study-controls{width:100%;justify-content:flex-start;gap:7px}
 .fc766 .fc-inline-check{font-size:10px}
 .fc766 .fc-study-controls .fc-outline{min-height:30px;padding:4px 8px}
 .fc766 .fc-stage .fc-active{padding:9px 10px 10px;border-radius:13px}
 .fc766 .fc-progress-row{font-size:10px;margin-bottom:4px}
 .fc766 .fc-track{height:4px;margin-bottom:6px}
 .fc766 .fc-flash{min-height:198px;padding:25px 9px 24px;border-radius:11px;box-shadow:inset 0 0 0 3px #f9fbf6}
 .fc766 .fc-flash strong{font-size:clamp(22px,7vw,30px)}
 .fc766 .fc-flash small{font-size:9px;top:9px;left:12px}
 .fc766 .fc-flash em{font-size:9px;bottom:10px}
 .fc766 .fc-row{gap:5px;margin:6px 0 2px;flex-wrap:nowrap}
 .fc766 .fc-row button{min-width:0;flex:1;padding:8px 4px;font-size:11px;min-height:34px}
 .fc766 .fc-grades{gap:4px;margin-top:7px}
 .fc766 .fc-grades button{font-size:11px;padding:6px 1px;min-height:47px}
 .fc766 .fc-grades small{font-size:9px}
 .fc766 .fc-stats{gap:4px}
 .fc766 .fc-stats>div{padding:7px 2px}
 .fc766 .fc-stats b{font-size:19px}
 .fc766 .fc-stats span{font-size:9px}
 .fc766 .fc-choices{gap:6px}
 .fc766 .fc-choices button{padding:12px 8px;min-height:57px}
 .fc766 .fc-edit-form{grid-template-columns:1fr}
 .fc766 .fc-bottom{grid-template-columns:1fr}
 .fc766 .fc-import{padding:14px}
 .fc766 .fc-answer-row{flex-wrap:wrap}
 .fc766 .fc-answer-row button{width:100%}
}
@media(prefers-reduced-motion:reduce){.fc766 *, .fc766 *::before, .fc766 *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.fc766 .fc-hero,.fc766 .fc-sidebar,.fc766 .fc-overview,.fc766 .fc-active,.fc766 .fc-import,.fc766 .fc-bottom{display:none!important}}
/* Ensure shared-site navigation remains legible against the atelier header. */
.fc766 .topbar .navlinks a{background:transparent!important;color:#eaf6ec!important;border:0!important;box-shadow:none!important}
@media(min-width:821px){.fc766 .fc-flash{min-height:202px}.fc766 .fc-hero{min-height:102px;padding-top:15px;padding-bottom:15px}}
.fc766 .fc-side-deck-tools{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
.fc766 .fc-side-deck-tools button{flex:1;white-space:nowrap;font-size:11px}
@media(min-width:531px){.fc766 .fc-side-deck-tools{display:none}}
