html[data-theme=dark]{color-scheme:dark;--dark-bg:#111522;--dark-surface:#1b2233;--dark-border:#364159;--dark-text:#e8edf7;--dark-muted:#b6c1d5;background:var(--dark-bg)}
html[data-theme=dark] body,html[data-theme=dark] .shell,html[data-theme=dark] .main,html[data-theme=dark] .auth-page{background:var(--dark-bg)!important;color:var(--dark-text)!important}
html[data-theme=dark] :is(.sidebar,.topbar,.panel,.stat,.settingcard,.help-intro,.help-topic,.cf-controls,.cf-toolbar,.cf-workspace,.cf-details,.cf-node,.audio-card,.audio-controls,.auth-card,dialog,.portal-report){background:var(--dark-surface)!important;color:var(--dark-text)!important;border-color:var(--dark-border)!important}
html[data-theme=dark] :is(h1,h2,h3,strong,.brand,.statval,.cf-node strong,.crumb span,label){color:var(--dark-text)!important}
html[data-theme=dark] :is(p,small,td,th,dd,dt,.help-body,.help-category,.statlabel,.statbottom,.bottomnote,.eyebrow,.navlabel,.sidebarfoot,.crumb,.portal-local-note,.cf-stamp,.cf-notes,.audio-help,.tablefoot,.cardbottom,.auth-note){color:var(--dark-muted)!important}
html[data-theme=dark] :is(input,select,textarea,.btn,.pagebuttons button){background:#222d42!important;color:var(--dark-text)!important;border-color:#46536b!important}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#a8b5cc!important}
html[data-theme=dark] :is(th,.dialogfoot,.workspace,.pill,.members span,.filters,.tabs b){background:#222b3e!important;color:var(--dark-muted)!important}
html[data-theme=dark] :is(td,th,.panelhead,.cardbottom,.tablefoot,.dialogfoot,.workspace,.sidebarfoot,.search,.tabs,fieldset,.cf-notes){border-color:var(--dark-border)!important}
html[data-theme=dark] .nav button{color:var(--dark-muted)!important}
html[data-theme=dark] :is(.nav button.active,.nav button:hover,.notice,.portal-announcement){background:#302951!important;color:#ddd4ff!important;border-color:#554879!important}
html[data-theme=dark] .btn.primary{background:#7751e8!important;color:#fff!important;border-color:#9472fa!important}
html[data-theme=dark] :is(.textbtn,a,.tabs button.selected){color:#c0a6ff!important}
html[data-theme=dark] .cf-viewport{background-color:#141c2b!important;background-image:radial-gradient(#34435b 1px,transparent 1px)!important}
html[data-theme=dark] .cf-edge-label{fill:#e2e8f5!important;stroke:#141c2b!important}
html[data-theme=dark] .cf-connector{stroke:#ae9afa!important}
html[data-theme=dark] .cf-canvas :is(marker path,circle){fill:#ae9afa!important}
html[data-theme=dark] .cf-node.selected{outline-color:#b39cff!important}
html[data-theme=dark] :is(.backup-error,[role=alert]){color:#ffb6b6!important}
html[data-theme=dark] .chart{background:repeating-linear-gradient(to top,#1b2233 0px,#1b2233 48px,#364159 49px,#1b2233 50px)!important}
html[data-theme=dark] button:disabled{opacity:.5}
@media print{html[data-theme=dark] body{background:white!important;color:black!important}}
html[data-theme=dark] :is(li,.portal-features,.portal-price,.portal-report-label,.audio-intro,.cf-intro,.cf-node small,.cf-node span,#help-count){color:var(--dark-muted)!important}
