/* The app (login, sign-up, dashboard, account, owner pages) in the 2026 site look: light header with the
   TabiPrep wordmark, paper page, Playfair headings, wine actions. The header and footer are the same for everyone; the page colors follow the
   default (Classic) look, and the other account color themes stay as the student chose them. Loaded last in index.html.
   The study card itself is the shared deck's job and is not restyled here. */
:root:is(:not([data-account-theme]),[data-account-theme=classic]){
 --brand-burgundy:#A32A4A;--brand-hover:#7E2038;--brand-cream:#F7F4ED;--page:#F7F4ED;--frame:#F7F4ED;--bg:#F7F4ED;--cream:#F7F4ED;
 --accent:#A32A4A;--primary:#A32A4A;--primary-edge:#A32A4A;--pink:#A32A4A;--rose-ink:#A32A4A;--forest:#0F3D32;--forest2:#0F3D32}

/* ---------- Header ---------- */
html:not(#a26):not(#b26) body .topbar{background:rgba(247,244,237,.97)!important;color:#4b5563!important;border-bottom:1px solid #e5e7eb!important;box-shadow:none!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html:not(#a26):not(#b26) body .topbar a.logo.s26-word{display:inline-flex;align-items:center;gap:.6rem;font-family:"Playfair Display",Georgia,serif!important;font-size:1.25rem;font-weight:400;color:#0f3d32!important;text-decoration:none;white-space:nowrap;padding:.5rem 0}
html:not(#a26):not(#b26) body .topbar a.logo.s26-word em{color:#a32a4a;font-style:italic}
html:not(#a26):not(#b26) body .topbar a.logo.s26-word svg{flex:none;display:block}
html:not(#a26):not(#b26) body .topbar :is(.sitelinks>a:not(.sl-signup),.sl-top,.sl-login){font-family:Montserrat,system-ui,sans-serif!important;font-size:.875rem!important;font-weight:500!important;color:#4b5563!important;text-decoration:none!important}
html:not(#a26):not(#b26) body .topbar :is(.sitelinks>a:not(.sl-signup),.sl-top):hover{color:#0f3d32!important}
html:not(#a26):not(#b26) body .topbar .sl-top span{color:#4b5563!important}
html:not(#a26):not(#b26) body .topbar .sitelinks a.sl-signup,html:not(#a26):not(#b26) body .topbar :is(#coursework,.coursework,a[href="/dashboard"].sl-signup){display:inline-flex;align-items:center;justify-content:center;height:2.75rem;padding:0 1.25rem!important;border-radius:999px!important;background:#a32a4a!important;color:#fff!important;font-family:Montserrat,system-ui,sans-serif!important;font-size:.875rem!important;font-weight:500!important;border:0!important}
html:not(#a26):not(#b26) body .topbar .sitelinks a.sl-signup:hover{background:#7e2038!important}
html:not(#a26):not(#b26) body .topbar :is(#countdown,.navpill){background:#fff!important;color:#0f3d32!important;border:1px solid #d7cfc3!important;font-family:Montserrat,system-ui,sans-serif!important}
html:not(#a26):not(#b26) body .topbar :is(#countdown span,#countdown .cd-l){color:#4b5563!important}
html:not(#a26):not(#b26) body .topbar #countdown .cd-n{color:#0f3d32!important}
html:not(#a26):not(#b26) body .topbar :is(#modeBtn,#menuBtn,#bellBtn){color:#0f3d32!important;border-color:#d7cfc3!important;background:#fff!important}
html:not(#a26):not(#b26) body .topbar :is(#menuBtn,#modeBtn)::before{background-color:#0f3d32!important}
html:not(#a26):not(#b26) body .topbar #bellBtn svg{stroke:#0f3d32!important}
html:not(#a26):not(#b26) body .topbar :is(.avatar,#avatarBtn){color:#0f3d32!important}
html:not(#a26):not(#b26) body .topbar .av-init{background:#0f3d32!important;color:#f7f4ed!important;font-family:"Playfair Display",Georgia,serif!important}
html:not(#a26):not(#b26) body .topbar .vsep{background:#e5e7eb!important}

/* ---------- Page, type and actions (outside the study card) ---------- */
html:not(#a26):not(#b26):is(:not([data-account-theme]),[data-account-theme=classic]) body{background:#f7f4ed!important}
html:not(#a26):not(#b26):is(:not([data-account-theme]),[data-account-theme=classic]) body :is(h1,h2,.welcome,.screen-title,.sec-title):not(#study *):not(.td-modal *):not(.study-modal *):not(.sr){font-family:"Playfair Display",Georgia,serif!important;font-weight:500!important;color:#0f3d32!important;letter-spacing:normal!important}
html:not(#a26):not(#b26):is(:not([data-account-theme]),[data-account-theme=classic]) body :is(h1,h2,.welcome) :is(em,i,.hand,.name):not(#study *){color:#a32a4a!important}
html:not(#a26):not(#b26) body footer.s26-foot.s26-foot{background:#f7f4ed!important}
html:not(#a26):not(#b26):is(:not([data-account-theme]),[data-account-theme=classic]){background:#f7f4ed!important}
html:not(#a26):not(#b26) body .topbar a.logo.s26-word .s26-wordtext{display:contents}
/* Phones: the site links live in the menu; the header keeps the wordmark, Log in and Sign up. */
@media(max-width:800px){html:not(#a26):not(#b26) body .topbar .sitelinks .sl-drop{display:none!important}}
@media(max-width:420px){html.signed-out:not(#a26):not(#b26) body .topbar .sitelinks a.sl-signup{display:none!important}}
html:not(#a26):not(#b26) body .topbar .sitelinks a.sl-signup{white-space:nowrap}
@media(max-width:420px){html:not(.signed-out):not(#a26):not(#b26) body .topbar a.logo.s26-word .s26-wordtext{display:none}}
/* TabiPrep "A Memory Company" logo in the app's top bar. */
html:not(#a26):not(#b26) body .topbar a.logo.s26-word img.s26-logo{display:block;height:52px;width:auto;max-width:100%}
@media(max-width:620px){html:not(#a26):not(#b26) body .topbar a.logo.s26-word img.s26-logo{height:42px}}
@media(max-width:420px){html:not(.signed-out):not(#a26):not(#b26) body .topbar a.logo.s26-word img.s26-logo{height:34px}}
/* Signed-in header = public signed-in header (site-nav-2026.js): 28px between links, 44px bell and avatar. */
@media(min-width:801px){html:not(#a26):not(#b26) body .topbar .sitelinks{gap:1.75rem}html:not(#a26):not(#b26) body .topbar #bellBtn{width:44px;height:44px}html:not(#a26):not(#b26) body .topbar .av-init{width:44px;height:44px;font-size:1.1rem}html:not(#a26):not(#b26) body .topbar .topnav{gap:1rem}html:not(#a26):not(#b26) body .topbar .sitelinks{margin-right:0}html:not(#a26):not(#b26) body .topbar #avatarBtn{padding:0}}
/* Phones, signed in (same as the public pages): logo and countdown left; bell, light/dark switch and ☰ right. No avatar: it opened the same menu as ☰. */
@media(max-width:760px){html:not(.signed-out):not(#a26):not(#b26) body .topbar :is(#avatarBtn,.acct-stack){display:none!important}html:not(#a26):not(#b26) body .topbar>.logo{order:0;margin-right:0!important}html:not(#a26):not(#b26) body .topbar #bellBtn{width:44px;height:44px}html:not(#a26):not(#b26) body .topbar>#countdown{order:1;margin-left:0}html:not(#a26):not(#b26) body .topbar>.topnav{order:2;margin-left:auto}html:not(#a26):not(#b26) body .topbar>.s26-mode{order:3;margin-left:0}html:not(#a26):not(#b26) body .topbar>#menuBtn{order:4;margin-left:0}html:not(.signed-out):not(#a26):not(#b26) body .topbar a.logo.s26-word img.s26-logo{height:42px}}

/* Signed in, the light/dark switch lives on Card Deck Controls, not in the header (Aaron, Nov 20 2026). */
html:not(.signed-out):not(#a26):not(#b26) body .topbar>.s26-mode{display:none!important}
/* The account menu button is ☰ (three lines), the standard, not a circle with the first initial (Aaron, Nov 20 2026). Same look as the phone ☰. */
html:not(#a26):not(#b26) body .topbar #avatarBtn{padding:0!important;gap:0!important}
html:not(#a26):not(#b26) body .topbar #avatarBtn::after{display:none!important}
html:not(#a26):not(#b26) body .topbar #avatarBtn .av-init{width:44px!important;height:44px!important;border-radius:12px!important;border:1px solid #d7cfc3!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='16' viewBox='0 0 20 16'%3E%3Cpath d='M1 1h18M1 8h18M1 15h18' stroke='%230f3d32' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/20px 16px no-repeat!important;color:transparent!important;font-size:0!important}
