/* Theme controls live inside the language popover; existing header layout is preserved. */
.language-list{display:grid;gap:3px}.language-list>button{display:flex;align-items:center;gap:10px;padding:10px 11px;min-height:43px;border:1px solid transparent;border-radius:14px;background:transparent;color:#555;font:12px Manrope,'Segoe UI',sans-serif;text-align:left;cursor:pointer}.language-list>button[aria-selected=true]{background:#2c2d2f;color:#fff}.language-list>button[aria-selected=true] .language-badge{color:#ccc}.language-list>button[aria-selected=true] .language-check{visibility:visible;filter:invert(1)}.language-list>button:hover:not([aria-selected=true]){background:#f1f2f3}.theme-settings{border-top:1px solid #e7e8ea;padding:10px 2px 2px;margin-top:6px}.theme-settings-label{font:600 9px/1.5 Manrope,'Segoe UI',sans-serif;color:#888;margin:0 4px 8px;letter-spacing:.04em}.theme-choices{display:grid;grid-template-columns:1fr 1fr;gap:6px}.theme-choice{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:37px;padding:8px 5px;border-radius:12px;border:1px solid #e3e5e8;background:#f5f6f7;color:#555;font:650 10px/1.3 Manrope,'Segoe UI',sans-serif;cursor:pointer;white-space:nowrap}.theme-choice img{width:12px;height:12px;opacity:.65}.theme-choice[aria-pressed=true]{background:#202328;border-color:#202328;color:white}.theme-choice[aria-pressed=true] img{filter:invert(1);opacity:1}.theme-choice:focus-visible,.language-list>button:focus-visible{outline:2px solid #8192a8;outline-offset:1px}.language-options{max-height:calc(100dvh - 24px);overflow:auto;scrollbar-width:none}.language-options::-webkit-scrollbar{display:none}
html[data-theme=dark]{color-scheme:dark;--bg:#101317;--surface:#181d23;--surface-2:#21272f;--line:#303843;--text:#edf0f4;--muted:#a4adba;--blue:#d4dce7;--red:#d4dce7;background:#101317}
html[data-theme=dark] body{background:#101317!important;color:#edf0f4!important}
html[data-theme=dark] :is(h1,h2,h3,h4,h5,strong,b){color:#edf0f4!important}
html[data-theme=dark] :is(p,small,.eyebrow,.v3-kicker,.v3-lead,.muted,.v3-fine,.connect-subtitle,.connect-instruction,.connect-footer,.connect-privacy){color:#a4adba!important}
html[data-theme=dark] a{color:inherit}html[data-theme=dark] hr{border-color:#303843}
html[data-theme=dark] :is(.site-header,.ac-header,.v3-header,.v3-dashboard-top){background:#101317f2!important;border-color:#303843!important;color:#e7ecf3}
html[data-theme=dark] :is(.v3-logo,.brand,.connect-brand,.nav-account,.v3-trust b,.v3-trust small,.nav-account-copy,.v3-language select,.language-trigger,.v3-header nav a){color:#e7ecf3!important}
html[data-theme=dark] :is(.v3-dash-sidebar,.connect-card,.login-card,.v3-auth-form,.admin-sidebar){background:#151a20!important;border-color:#303843!important}
html[data-theme=dark] :is(.v3-promo-card,.v3-overview,.v3-mini-dashboard,.v3-mini-grid>span,.v3-feature-card,.pricing-card,.v3-review-card,.v3-posted-review,.v3-review-form,.v3-review-empty,.v3-faq-list details,.v3-usage-card,.ac-card,.ac-panel,.ac-stat,.ac-stat-card,.stat-card,.card,.panel,.download-note,.download-release-grid>div,.review-delete-dialog,.v3-modal,.cspro-notification-panel,.cspro-update-notice){background:#181d23!important;border-color:#303843!important;color:#e7ecf3!important;box-shadow:0 12px 35px #00000012}
html[data-theme=dark] :is(.v3-mini-grid>span,.ac-stat,.ac-stat-card,.v3-auth-method,.v3-review-author-row,.v3-dash-sidebar nav a,.connect-account,.v3-rating-options span){border-color:#303843!important}
html[data-theme=dark] :is(input,textarea,select){background:#11161c!important;color:#e9edf3!important;border-color:#384351!important;accent-color:#c4d0df}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#8b96a5!important}
html[data-theme=dark] :is(.v3-button,.btn.primary,.nav-start,.connect-action,.google-action,button[type=submit]){background:#e9edf2!important;color:#11161c!important;border-color:#e9edf2!important}
html[data-theme=dark] :is(.v3-button,.btn.primary,.nav-start,.connect-action,.google-action,button[type=submit]):hover{background:#fff!important;color:#11161c!important;border-color:#fff!important}
html[data-theme=dark] :is(.v3-button.v3-outline,.v3-round,.btn.secondary,.quiet,.ghost,.menu-toggle){background:#1d242d!important;color:#e9edf3!important;border-color:#394451!important}
html[data-theme=dark] :is(.v3-button.v3-outline,.v3-round,.btn.secondary,.quiet,.ghost,.menu-toggle):hover{background:#2a3440!important;color:#edf0f4!important;border-color:#596a80!important}
html[data-theme=dark] .v3-icon,html[data-theme=dark] .connect-account-check{filter:invert(1)}
html[data-theme=dark] :is(.nav-start,.v3-button:not(.v3-outline)) .v3-icon{filter:none!important}
html[data-theme=dark] .google-action img{filter:grayscale(1) brightness(0)!important}
html[data-theme=dark] :is(.language-trigger>img,.language-check,.theme-choice img,.connect-code-label img,.connect-privacy img){filter:invert(1)}
html[data-theme=dark] .menu-line{background:#edf0f4!important}
html[data-theme=dark] :is(.language-trigger,.cspro-notification-button){background:transparent!important;color:#e7ecf3!important;border-color:#303843!important}
html[data-theme=dark] :is(.language-trigger,.cspro-notification-button):hover,html[data-theme=dark] .language-trigger[aria-expanded=true]{background:#242d38!important}
html[data-theme=dark] .cspro-notification-button img{filter:invert(1)}
html[data-theme=dark] .language-options{background:#181d23;border-color:#384351;color:#e7ecf3;box-shadow:0 16px 45px #0007}
html[data-theme=dark] .language-list>button{color:#b3bdc9}html[data-theme=dark] .language-list>button:hover:not([aria-selected=true]){background:#26303c;color:#fff}
html[data-theme=dark] .language-list>button[aria-selected=true]{background:#e9edf2;color:#131820}
html[data-theme=dark] .language-list>button[aria-selected=true] .language-badge{color:#465363}
html[data-theme=dark] .language-list>button[aria-selected=true] .language-check{filter:none}
html[data-theme=dark] .theme-settings{border-color:#343e4b}html[data-theme=dark] .theme-settings-label{color:#a4adba}
html[data-theme=dark] .theme-choice{background:#11161c;border-color:#384351;color:#b8c2d0}html[data-theme=dark] .theme-choice[aria-pressed=true]{background:#e9edf2;border-color:#e9edf2;color:#131820}
html[data-theme=dark] .theme-choice[aria-pressed=true] img{filter:none}
html[data-theme=dark] :is(.v3-header>nav a[aria-current=page],.v3-dash-sidebar nav a.active){background:#e9edf2!important;color:#131820!important;border-color:#e9edf2!important}
html[data-theme=dark] .v3-dash-sidebar nav a.active img{filter:none}
html[data-theme=dark] :is(.v3-header nav a:after,.steps-progress i){background:#d3ddea!important}
html[data-theme=dark] :is(.v3-segment,.v3-gallery-filters,.v3-rating-options span,.connect-code,.connect-notice,.notice,.v3-review-initial,.ac-avatar,#avatar){background:#222a34!important;color:#dce4ee!important;border-color:#384351!important}
html[data-theme=dark] :is(.v3-segment button[aria-pressed=true],.v3-gallery-filters button.active,.v3-rating-options input:checked+span){background:#e9edf2!important;color:#131820!important;border-color:#e9edf2!important}
html[data-theme=dark] .v3-footer{background:#0c0f13!important;border-color:#2b333e!important;color:#d2dbe7}
html[data-theme=dark] :is(.v3-footer p,.v3-footer a:not(.v3-logo),.v3-footer small){color:#9aa7b7!important}
html[data-theme=dark] .v3-footer a:hover{color:#fff!important}
html[data-theme=dark] :is(.v3-hero,.connect-art,.v3-auth-main,.download-hero){background:#101317!important}
html[data-theme=dark] .v3-hero:before{background:linear-gradient(90deg,#101317 0%,#101317 27%,#101317e8 41%,#10131744 70%,#10131722)}
html[data-theme=dark] .v3-art{filter:grayscale(1) brightness(.58);mask-image:linear-gradient(0deg,transparent 0%,black 14%,black 86%,transparent 100%)}
html[data-theme=dark] .v3-auth-art{filter:brightness(.7)}
html[data-theme=dark] .v3-auth-main:before{background:linear-gradient(90deg,#101317 0%,#101317e8 27%,#10131780 43%,transparent 65%)}
html[data-theme=dark] .connect-art>img{filter:grayscale(1) brightness(.65)}
html[data-theme=dark] .connect-art:after{background:linear-gradient(180deg,#101317e8 0%,#10131790 30%,transparent 65%,#0008 100%)}
html[data-theme=dark] .connect-layout{background:#151a20;border-color:#303843;box-shadow:0 20px 60px #0003}
html[data-theme=dark] .connect-code strong{color:#e9edf3!important}html[data-theme=dark] .connect-symbol{background:#e9edf2;color:#151a20}
html[data-theme=dark] .connect-step{color:#a4adba}html[data-theme=dark] .connect-step-dot{background:#c9d5e5}
html[data-theme=dark] :is(.v3-number,.v3-steps b){color:#465365!important}
html[data-theme=dark] :is(.ac-countdown,.ac-pro-countdown,.badge,.pill,.tag){background:#252e3a!important;color:#d7e2ee!important;border-color:#445266!important}
html[data-theme=dark] :is(table,th,td,tr){background-color:transparent!important;border-color:#303843!important;color:#d9e1ec}
html[data-theme=dark] :is(.auth-back,.v3-dash-bottom a,.ac-list small,.ac-meta){color:#a4adba!important}
html[data-theme=dark] .login-brand img{filter:invert(1)}
html[data-theme=dark] .v3-star{background:#e9edf2;color:#11161c}
@media(max-width:760px){html[data-theme=dark] .v3-header>nav{background:#181d23!important;border-color:#303843!important;box-shadow:0 16px 35px #0004}html[data-theme=dark] .v3-hero:before{background:linear-gradient(180deg,#101317 0%,#101317 43%,#101317b0 60%,transparent 85%)}html[data-theme=dark] .v3-auth-main:before{background:linear-gradient(180deg,#101317cc,#10131780 55%,transparent)}}
@media(prefers-reduced-motion:reduce){.theme-choice{transition:none!important}}

html[data-theme=dark] .v3-trust img[src*="google"],html[data-theme=dark] .v3-trust .v3-icon[src*="google"]{filter:grayscale(1) brightness(0) invert(1)!important}
html[data-theme=dark] .connect-code-label,html[data-theme=dark] #email{color:#a4adba!important}

html[data-theme=dark] :is(.v3-community,.v3-community>div,.v3-download,.download-instructions,.download-install-step){background:#181d23!important;border-color:#303843!important}
html[data-theme=dark] .v3-community>img{filter:grayscale(1) brightness(.7)}
html[data-theme=dark] .v3-usage-ring text{fill:#edf0f4!important}
html[data-theme=dark] .v3-header nav a[aria-current=page]{background:transparent!important;color:#edf0f4!important;border-color:transparent!important}
html[data-theme=dark] .language-list>button,html[data-theme=dark] .language-list>button:hover,html[data-theme=dark] .language-list>button:focus{border-color:transparent!important;box-shadow:none!important}
html[data-theme=dark] .language-list>button[aria-selected=true]{background:#303b49!important;color:#f0f3f7!important}
html[data-theme=dark] .language-list>button[aria-selected=true] .language-badge{color:#bac5d2}
html[data-theme=dark] .language-list>button[aria-selected=true] .language-check{filter:invert(1)}
html[data-theme=dark] .language-list>button:focus:not(:focus-visible){outline:none!important}
html[data-theme=dark] .language-list>button:focus-visible{outline:1px solid #63738a!important;outline-offset:0}
html[data-theme=dark] .theme-choice:hover{border-color:#4c5b70!important}
html[data-theme=dark] .theme-choice[aria-pressed=true]{background:#303b49;border-color:#506179;color:#f0f3f7}
html[data-theme=dark] .theme-choice[aria-pressed=true] img{filter:invert(1)}
@media(max-width:760px){html[data-theme=dark] .v3-header>nav a[aria-current=page]{background:#2b3542!important;border-color:#3c495a!important;border-radius:12px}}
.theme-changing::view-transition-old(root),.theme-changing::view-transition-new(root){animation:none;mix-blend-mode:normal}
.theme-changing::view-transition-new(root){z-index:2}.theme-changing::view-transition-old(root){z-index:1}
.theme-fading *,.theme-fading *:before,.theme-fading *:after{transition:background-color .5s ease,color .5s ease,border-color .5s ease,box-shadow .5s ease,filter .5s ease!important}
@media(prefers-reduced-motion:reduce){.theme-fading *,.theme-fading *:before,.theme-fading *:after{transition:none!important}}

html[data-theme=dark] body.v3-auth[data-view=login] .v3-auth-form .v3-button{background:#e9edf2!important;color:#11161c!important;border-color:#e9edf2!important}
html[data-theme=dark] body.v3-auth[data-view=login] .v3-auth-form .v3-button:hover{background:#fff!important;color:#11161c!important;border-color:#fff!important}
html[data-theme=dark] .v3-auth-method>span{background:#26303b!important;border:1px solid #384351;color:#edf0f4}
html[data-theme=dark] .v3-header .nav-account-avatar{color:#edf0f4!important}
html[data-theme=dark] .v3-auth-header>a:last-child{color:#a4adba!important}

html[data-theme=dark] :is(.v3-faq-list,.ac-summary>article,.metrics>article,body>aside,.subscription-countdown,dialog,.key-activation,.security-form,.record-list>article){background:#181d23!important;border-color:#303843!important;color:#dce4ef!important}
html[data-theme=dark] :is(.ac-summary>article>span,.metrics>article>span,.record-list span,.sidebar-bottom span){color:#a4adba!important}
html[data-theme=dark] :is(.link-button,.admin-auth .auth-back){color:#d3deed!important;border-color:#384351!important;background:transparent!important}
html[data-theme=dark] :is(a.primary,button.primary){background:#e9edf2!important;color:#11161c!important;border-color:#e9edf2!important}
html[data-theme=dark] body>aside nav button{background:transparent;color:#b2bece;border-color:transparent}
html[data-theme=dark] body>aside nav button.selected{background:#303b49!important;color:#eef2f7!important;border-color:#415168!important}
html[data-theme=dark] dialog::backdrop{background:#0009}
html[data-theme=dark] .v3-usage-ring circle:first-of-type{stroke:#2d3744!important}html[data-theme=dark] .v3-usage-ring circle:nth-of-type(2){stroke:#aec0d8!important}

html[data-theme=dark] :is(.status-picker-trigger,.status-picker-menu){background:#181d23!important;color:#dce4ef!important;border-color:#384351!important;box-shadow:0 14px 35px #0004}
html[data-theme=dark] .status-picker-menu button{background:transparent!important;color:#bac6d6!important;border-color:transparent!important}
html[data-theme=dark] .status-picker-menu button[aria-selected=true]{background:#303b49!important;color:#f0f3f7!important}
html[data-theme=dark] .status-picker-menu button:hover,html[data-theme=dark] .status-picker-menu button:focus-visible{background:#26313e!important;border-color:#445267!important;outline-color:#63738a!important}

html[data-theme=dark] .v3-dash-sidebar nav a.active{background:#303b49!important;color:#edf0f4!important;border-color:#415168!important}
html[data-theme=dark] .v3-dash-sidebar nav a.active img{filter:invert(1)}
html[data-theme=dark] :is(.ac-stats>div,.v3-dash-bottom){border-color:#303843!important}
html[data-theme=dark] :is(.ac-stats dt,.v3-chart-legend,[data-dashboard-name]){color:#a4adba!important}
html[data-theme=dark] .ac-stats dd{color:#edf0f4!important}

/* Capture the actual final palette, never an in-progress button/background transition. */
.theme-changing *,.theme-changing *:before,.theme-changing *:after{transition:none!important}

/* Labels are text, not nested surface cards. */
html[data-theme=dark] .download-release-grid>div,html[data-theme=dark] .download-details article,html[data-theme=dark] .download-instructions li{background:#181d23!important;border-color:#303843!important;color:#edf0f4}
html[data-theme=dark] .download-release-grid>div>span{background:transparent!important;border:0!important;box-shadow:none!important;color:#a4adba!important}
html[data-theme=dark] .download-note,html[data-theme=dark] .download-instructions{background:transparent!important;border:0!important;box-shadow:none!important}
.cspro-notification-heading button{display:grid;place-items:center;flex:none;padding:0;color:#31383f;background:#eef0f2;border:1px solid transparent;line-height:1;font-family:Arial,sans-serif}
html[data-theme=dark] .cspro-notification-heading button{background:#26313d!important;color:#edf0f4!important;border-color:#384351!important}
html[data-theme=dark] .cspro-notification-heading button:hover{background:#344153!important;border-color:#516178!important}
html[data-theme=dark] .cspro-notification-panel article{border-color:#303843!important}
html[data-theme=dark] .cspro-notification-panel article a{background:#25313d;color:#edf0f4;border:1px solid #384351}
html[data-theme=dark] .cspro-notification-button.has-unread:after{border-color:#101317}

/* Text and layout containers do not inherit card fills. */
html[data-theme=dark] :is(.v3-steps,.v3-steps>article,.steps-story,.download-note,.download-instructions,.download-install-steps,.download-hero .v3-lead,.download-hero .v3-note){background:transparent!important;box-shadow:none!important}
html[data-theme=dark] .download-instructions>p,html[data-theme=dark] .download-instructions>div{background:transparent!important;box-shadow:none!important}
html[data-theme=dark] :is(.v3-button.v3-outline,.btn.secondary,.quiet,.ghost,.menu-toggle):is(:hover,:focus-visible){color:#edf0f4!important}

/* Signed-in navigation: avatar only, accessible name retained. */
.site-header .nav-account.account-avatar-only{padding:0!important;gap:0!important;min-width:40px!important;width:40px!important;flex:0 0 40px!important;justify-content:center!important}.site-header .account-avatar-only .nav-account-copy,.site-header .account-avatar-only [data-account-caption]{display:none!important}

/* Shared key account statistics */
.license-stats-link{background:transparent!important;border:0!important;padding:0!important;min-height:36px;color:inherit!important;text-align:left;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:5px}
.license-statistics-dialog{width:min(680px,calc(100vw - 28px));max-height:85dvh;overflow:auto;border:1px solid #d8dce0;border-radius:22px;padding:24px;background:#fff;color:#16191d}.license-statistics-dialog::backdrop{background:#0007;backdrop-filter:blur(5px)}.license-statistics-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.license-statistics-head h2{margin:0;font-size:22px}.license-statistics-head button{font-size:24px;min-width:42px;min-height:42px}.license-statistics-summary{line-height:1.7}.license-statistics-member{padding:16px;margin-top:12px;border:1px solid #d8dce0;border-radius:16px}.license-statistics-member h3{margin:0 0 6px}.license-statistics-member p{margin:4px 0;overflow-wrap:anywhere}.license-statistics-member small{display:block;margin-top:8px}.record .device-revoke{flex-shrink:0;margin-left:12px}
:root[data-theme=dark] .license-statistics-dialog{background:#181d23;color:#eef1f5;border-color:#343e4a}:root[data-theme=dark] .license-statistics-member{border-color:#343e4a}@media(max-width:480px){.license-statistics-dialog{padding:16px}.record:has(.device-revoke){flex-wrap:wrap}.record .device-revoke{margin:8px 0 0}}

/* Unboxed setup steps in both themes */
:root .v3-steps>article,:root .steps-story .v3-steps>article{background:transparent!important;box-shadow:none!important}

/* CSPRO notice action contrast: neutral primary and secondary controls in both themes. */
html[data-theme] .cspro-update-notice a{background:#e2eaf4!important;color:#17212c!important;border:1px solid #cdd7e4!important;min-height:44px;transition:background-color .2s,color .2s}
html[data-theme] .cspro-update-notice a:hover{background:#cbd5e1!important;color:#17212c!important;border-color:#cbd5e1!important}
html[data-theme] .cspro-update-notice button{background:#26313e!important;color:#e6edf5!important;border:1px solid #3a4756!important;min-height:44px;transition:background-color .2s,color .2s}
html[data-theme] .cspro-update-notice button:hover{background:#344353!important;color:#fff!important;border-color:#445468!important}
html[data-theme] .cspro-update-notice :is(a,button):focus-visible{outline:2px solid #8299af;outline-offset:3px}
