/* Member dashboard branding only. All existing layout and dimensions are retained. */
html[data-theme] body.is-signed-in{
 --desk-bg:#edf5f1;--desk-panel:#f6faf8;--desk-soft:#e3f2eb;--desk-ink:#17352c;--desk-muted:#516b60;--desk-line:#b9d4c7;--desk-control:#eff7f2;--desk-accent:#087d61;--desk-mint:#3ff5c4;--desk-selected-ink:#09271d;
 background:radial-gradient(ellipse at 95% 0%,#cfeee3,transparent 55%),var(--desk-bg);color:var(--desk-ink);
}
html[data-theme=dark] body.is-signed-in{
 --desk-bg:#090d11;--desk-panel:#10171b;--desk-soft:#112a24;--desk-ink:#f0f7f5;--desk-muted:#a6beb5;--desk-line:#315147;--desk-control:#16251f;--desk-accent:#3ff5c4;
 background:radial-gradient(ellipse at 95% 0%,#102b24,transparent 55%),var(--desk-bg);
}
html[data-theme] body.is-signed-in header{background:#090d11;border-color:#28383a}
html[data-theme] body.is-signed-in header :is(.brand,.brand span,.back-link,.language-switch a){color:#f0f7f5}
html[data-theme] body.is-signed-in header .language-switch a[aria-current=page]{background:#112e27;color:#3ff5c4;border-color:#315147}
html[data-theme] body.is-signed-in #theme-toggle{background:#16251f;color:#3ff5c4;border-color:#315147}
html[data-theme] body.is-signed-in :is(.intro h1,#profile-panel>.panel-heading h2){color:var(--desk-ink)}
html[data-theme] body.is-signed-in .intro :is(p,.eyebrow){color:var(--desk-muted)}
html[data-theme] body.is-signed-in .intro h1 em{color:var(--desk-accent)}
html[data-theme] body #profile-panel>.panel-heading{background:transparent;border:0;box-shadow:none;padding:0;margin:0 0 16px;align-items:center;color:var(--desk-ink)}
html[data-theme] body #profile-panel>.panel-heading>div{min-width:0}
html[data-theme] body #profile-panel>.panel-heading #member-email{margin:4px 0 0}
html[data-theme] body.is-signed-in header #adminPortalToggle{background:#3ff5c4;color:#09271d;border-color:#3ff5c4;box-shadow:none}
html[data-theme] body.is-signed-in header #adminPortalToggle:hover{background:#27dfae;color:#09271d;border-color:#27dfae}
html[data-theme] body.is-signed-in header #adminPortalToggle[aria-pressed=true]{background:#112e27;color:#3ff5c4;border-color:#3ff5c4}
html[data-theme] body.is-signed-in header #adminPortalToggle:focus-visible{outline:2px solid #3ff5c4;outline-offset:3px}
html[data-theme] body #profile-panel>.panel-heading :is(.eyebrow,#member-email){color:var(--desk-ink)}
html[data-theme] body #profile-panel>.panel-heading #signout{background:var(--desk-control);color:var(--desk-accent);border-color:var(--desk-line)}
html[data-theme] body #profile-panel>.journalNav{background:var(--desk-panel);border-color:var(--desk-line)}
html[data-theme] body #profile-panel>.journalNav button{background:var(--desk-control);color:var(--desk-muted);border-color:var(--desk-line);box-shadow:none}
html[data-theme] body #profile-panel>.journalNav button[aria-pressed=true]{background:var(--desk-mint);color:var(--desk-selected-ink);border-color:var(--desk-mint)}
html[data-theme] body #dashboardOverview{--ink:var(--desk-ink);--muted:var(--desk-muted);--line:var(--desk-line);--accent:var(--desk-accent);color:var(--desk-ink)}
html[data-theme] body #dashboardOverview :is(.dashboard-card,.market-board){background:linear-gradient(135deg,var(--desk-panel),var(--desk-soft));border-color:var(--desk-line);color:var(--desk-ink);box-shadow:inset 0 1px #ffffff08,0 8px 24px #09271d08}
html[data-theme] body #dashboardOverview :is(h3,h4,strong,label,.coin-name,.dashboardDisclosure>summary,.mobileDrawingFold>summary){color:var(--desk-ink)}
html[data-theme] body #dashboardOverview :is(p,small,.fine,.market-note,.chart-footer,.feed-note,.feed-meta,.calendar-event-meta,.coin-name small,#market-status,.access-item-heading,.access-item .fine){color:var(--desk-muted)}
html[data-theme] body #dashboardOverview :is(.eyebrow,a,.calendar-event time){color:var(--desk-accent)}
html[data-theme] body #dashboardOverview :is(.card-heading,.dashboardFoldContent,.market-tile+.market-tile,.feed-item,.mobileDrawingFold){border-color:var(--desk-line)}
html[data-theme] body #dashboardOverview :is(.calendar-event,.dashboardFoldIcon,.access-item,.chart-switch,.chart-tool-group,.chart-scale-settings[open],.chart-scale-settings summary,.mobileDashboardNav,.kybera-chart-controls,.kybera-ema-legend){background:var(--desk-control);color:var(--desk-ink);border-color:var(--desk-line)}
html[data-theme] body #dashboardOverview :is(.chart-mount,.chart-start){background:var(--desk-panel);color:var(--desk-ink);border-color:var(--desk-line)}
html[data-theme] body #dashboardOverview :is(button,.secondary,select,input:not([type=color]):not([type=checkbox]),textarea){background:var(--desk-control)!important;color:var(--desk-ink)!important;border-color:var(--desk-line)!important;box-shadow:none}
html[data-theme] body #dashboardOverview :is(button,.secondary):hover:not(:disabled){background:var(--desk-soft)!important;color:var(--desk-accent)!important}
html[data-theme] body #dashboardOverview :is(.primary,button[aria-pressed=true]){background:var(--desk-mint)!important;color:var(--desk-selected-ink)!important;border-color:var(--desk-mint)!important}
html[data-theme] body #dashboardOverview :is(.primary,button[aria-pressed=true]):hover:not(:disabled){background:#27dfae!important;color:#09271d!important}
html[data-theme] body #dashboardOverview button:disabled{background:var(--desk-control)!important;color:var(--desk-muted)!important;border-color:var(--desk-line)!important}
html[data-theme] body #dashboardOverview :is(input,textarea)::placeholder{color:var(--desk-muted);opacity:1}
html[data-theme] body #dashboardOverview :is(.quick-links a,.calendar-discord,.feed-meta span){background:var(--desk-control);color:var(--desk-accent);border-color:var(--desk-line)}
html[data-theme] body #dashboardOverview :is(.access-state,.access-remaining,.uid-status--approved:not(:empty)){background:var(--desk-soft);color:var(--desk-accent);border-color:var(--desk-line)}
html[data-theme] body #dashboardOverview .uid-status--pending:not(:empty){background:var(--desk-control);color:var(--desk-muted);border-color:var(--desk-line)}
html[data-theme] body #dashboardOverview .access-card .access-item{background:transparent;border:0;box-shadow:none;padding:0;margin:0}
html[data-theme] body #dashboardOverview .access-card .access-item+.access-item{margin-top:16px}
html[data-theme] body #dashboardOverview .access-card .access-item-heading{align-items:center;margin-bottom:8px}
html[data-theme] body #dashboardLearningRank .learningRank{background:linear-gradient(120deg,var(--desk-soft),var(--desk-panel));border-color:var(--desk-line);color:var(--desk-ink);box-shadow:inset 0 1px #ffffff08}
html[data-theme] body #dashboardLearningRank .learningRankInfo :is(strong,p,small){color:var(--desk-ink)}
html[data-theme] body #dashboardLearningRank :is(.learningRankNoteDetails,.courseSyncStatus){color:var(--desk-muted)!important}
html[data-theme] body #dashboardLearningRank .dashboardLearnButton{background:var(--desk-mint);color:var(--desk-selected-ink);border-color:var(--desk-mint)}
html[data-theme] body #dashboardLearningRank progress{accent-color:var(--desk-accent)}
html[data-theme] body #dashboardOverview :is(button,a,input,select,textarea,summary):focus-visible{outline-color:var(--desk-accent)!important}

/* Course actions keep their text paired with their actual surface, including nested labels. */
html[data-theme=dark] body #courseWorkspace button{background:#16251f!important;color:#f0f7f5!important;border-color:#527467!important}
html[data-theme=dark] body #courseWorkspace button:hover:not(:disabled){background:#234238!important;color:#f0f7f5!important}
html[data-theme=dark] body #courseWorkspace :is(button,.learningResumeAction) :is(span,strong,small,em){color:inherit!important}
html[data-theme=dark] body #courseWorkspace :is(.primary,button[aria-pressed=true],.courseComplete,.learningModuleStart,.coursePagerFinish,.courseMenu button[aria-current=step],.learningResumeAction){background:#3ff5c4!important;color:#09271d!important;border-color:#3ff5c4!important}
html[data-theme=dark] body #courseWorkspace :is(.primary,button[aria-pressed=true],.courseComplete,.learningModuleStart,.coursePagerFinish,.courseMenu button[aria-current=step]):hover:not(:disabled),
html[data-theme=dark] body #courseWorkspace .learningResume:hover .learningResumeAction{background:#27dfae!important;color:#09271d!important}
html[data-theme=dark] body #courseWorkspace button:disabled{background:#23332c!important;color:#b5c9bf!important;border-color:#527467!important;opacity:1}
html[data-theme=dark] body #courseWorkspace :is(.courseSyncStatus,.courseSyncStatus:disabled,.rankBadgeTrigger){background:transparent!important;color:#b5c9bf!important;border:0!important}
html[data-theme=dark] .courseImageViewerBar button{background:#16251f;color:#f0f7f5;border-color:#527467}

/* Sync feedback is plain text, including hover and disabled states. */
html[data-theme] body #profile-panel :is(#dashboardOverview,#courseWorkspace) button.courseSyncStatus,
html[data-theme] body #profile-panel :is(#dashboardOverview,#courseWorkspace) button.courseSyncStatus:hover,
html[data-theme] body #profile-panel :is(#dashboardOverview,#courseWorkspace) button.courseSyncStatus:disabled{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--desk-muted)!important;border-radius:0}

/* Keep the chart still and reserve a restrained sheen for other workspace cards. */
html[data-theme] body #dashboardOverview .dashboard-card:before{background:linear-gradient(110deg,transparent 35%,#c8ffe808 48%,#e1fff40b 52%,transparent 65%);animation:memberQuietSheen 22s ease-in-out infinite!important;opacity:.12}
html[data-theme] body #dashboardOverview .chart-card:before{content:none;animation:none!important;background:none;opacity:0}
html[data-theme] body #profile-panel .learningRank:before{background:linear-gradient(110deg,transparent 35%,#c8ffe808 48%,#e1fff40b 52%,transparent 65%);animation:memberQuietRank 24s ease-in-out infinite!important;opacity:.2}
@keyframes memberQuietSheen{0%,65%{background-position:160% 0;opacity:0}85%{opacity:.18}100%{background-position:-60% 0;opacity:0}}
@keyframes memberQuietRank{0%,65%{transform:translateX(-110%);opacity:0}85%{opacity:.2}100%{transform:translateX(110%);opacity:0}}
html:where([data-motion="reduce"])[data-theme] body #dashboardOverview .dashboard-card:before,html:where([data-motion="reduce"])[data-theme] body #profile-panel .learningRank:before{animation:none!important;opacity:0}

/* Library labels have independent surfaces and must not inherit the card's text. */
html[data-theme] body #courseWorkspace .learningModuleCard .learningModuleVisual .learningModuleStatus{background:#162f25;color:#f0f7f5!important;border-color:#527467;opacity:1;backdrop-filter:none}
html[data-theme] body #courseWorkspace .learningModuleCard[data-state=complete] .learningModuleVisual .learningModuleStatus{background:#d6e9b9;color:#17352c!important;border-color:#d6e9b9}
html[data-theme] body #courseWorkspace .learningModuleCard .learningModuleVisual :is(.learningModuleNumber,.learningModuleArrow){color:#f0f7f5!important}

/* Teaching images retain their original colors independently of the interface theme. */
html[data-theme] body #courseWorkspace :is(.courseFigure,.courseTeachingFigure,.courseNativeFigure) img{filter:none;mix-blend-mode:normal;opacity:1;background:#f4f1e8}
html[data-theme] body #courseWorkspace :is(.courseTeachingFigure,.courseNativeFigure)>a{background:#f4f1e8}
html[data-theme] .courseImageViewport{background:#f4f1e8}
html[data-theme] .courseImageViewport img{filter:none;mix-blend-mode:normal;opacity:1;background:#f4f1e8}

/* Make the selected chart interval unambiguous in both themes. */
html[data-theme] body #dashboardOverview .kybera-chart-controls button[data-interval]{background:var(--desk-control);color:var(--desk-ink);border:1px solid var(--desk-line);font-weight:600}
html[data-theme] body #dashboardOverview .kybera-chart-controls button[data-interval][aria-pressed=true]{background:#3ff5c4!important;color:#09271d!important;border-color:#087d61!important;box-shadow:inset 0 -3px 0 #087d61;font-weight:800}
html[data-theme] body #dashboardOverview .chart-active-timeframe{color:var(--desk-ink);font-size:11px;font-weight:700;white-space:nowrap;margin-right:5px}
@media(max-width:560px){html[data-theme] body #dashboardOverview .chart-active-timeframe{flex-basis:100%;margin:1px 0 3px}}
