:root{color-scheme:light}
.theme-picker{display:flex;align-items:center;gap:8px;margin:0;font-size:.875rem;color:var(--muted);white-space:nowrap}
.theme-picker select{width:auto;min-width:102px;max-width:140px;min-height:44px;margin:0;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff;color:#092337;font:inherit;font-size:1rem}
.legal-page header,.manager-page header{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.legal-page header .theme-picker{margin-left:auto}.legal-page header .theme-picker,.manager-page header .theme-picker{color:#dce7f5}
.brand{background:transparent}.service-brand{background:#f4f7fb}
@media screen{
:root[data-theme=dark]{color-scheme:dark;--ink:#e7eff7;--muted:#a6b9cb;--paper:#071521;--card:#102638;--line:#365064;--blue:#82b8ff;--blue2:#a7ceff;--danger:#ff8e9d;--shadow:0 16px 50px #0003;color:var(--ink);background:var(--paper)}
[data-theme=dark] body{color:var(--ink);background:var(--paper)}
[data-theme=dark] :is(.card,.info-dialog,.install-steps,.cloud-panel,.color-row,.premium-lock,.technology-options label,.service-card){background:var(--card);border-color:var(--line);color:var(--ink)}
[data-theme=dark] :is(.metric,.price-edit,.manual-bar,.include-design,.multi-toggle,.series-time-toggle,.colors-panel,.technology-picker,.data-item,.account-status,.quality-result,.market-status,.external-offer,.auth-switch,.app-tabs,.plan-pill,.source-badge,.service-state){background:#173247;border-color:var(--line);color:var(--ink)}
[data-theme=dark] :is(.drop,.drop.drag){background:#112d42;border-color:#688ba7;color:var(--ink)}
[data-theme=dark] .offer.best{background:#18371f;border-color:#65a844}
[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#0b1e2d;color:#e7eff7;border-color:#557086}
[data-theme=dark] :is(.app-tab,.auth-switch button){color:#b8ccde}
[data-theme=dark] :is(.app-tab.active,.auth-switch button[aria-pressed=true]){background:#244760;color:#fff}
[data-theme=dark] :is(.btn.secondary,.reset-btn,.mini-btn,.quick-search button,.info-btn,.info-close,.store-chip,.social-btn:not(.apple),.secondary,.social button){background:#203f57;color:#d9e9ff;border-color:#557086}
[data-theme=dark] :is(.btn.link,.cloud-panel .btn.link,.password-toggle,.eyebrow,a:not(.brand):not(.service-brand)){color:#91c1ff}
[data-theme=dark] :is(.field label,.color-field label,.row,.language-picker,.theme-picker,.auth-help,.profile-email,.profile-local-note,.auth-divider,.auth-form small,.cloud-panel p,.external-offer .offer-price,.footer,.legal,.support-request small){color:#b8ccde}
[data-theme=dark] :is(.side-head,.mass-card,.plan-card,.install-card,.toast,.drop-icon,.pro-badge,.premium-tag){background:#092337;color:#f3f7fb}
[data-theme=dark] :is(.pro-badge,.premium-tag,.drop-icon){color:#82dd2b}
[data-theme=dark] :is(.side .eyebrow,.mass-card .eyebrow,.plan-card .eyebrow,.plan-card .btn.link,.plan-card .subscription-terms a){color:#9beb4d}
[data-theme=dark] :is(.mass-metric.focus span,.mass-metric.focus strong,.feature-list li::before,.billing-discount,.badge){color:#092337}
[data-theme=dark] .auth-message{background:#173b57;color:#d8ebff;border-color:#517f9f}
[data-theme=dark] :is(.auth-message.success,.service-state.verified){background:#163e2e;color:#b8f0d1;border-color:#548568}
[data-theme=dark] :is(.auth-message.error,.remove-color){background:#492531;color:#ffd1d9;border-color:#a75d6d}
[data-theme=dark] :is(.notice,.service-state.missing,.service-state.unavailable){background:#42371b;color:#ffe5a1;border-color:#9b8347}
[data-theme=dark] .brand{background:#eef5fb}
[data-theme=dark] .legal-page main{background:var(--card);color:var(--ink)}
[data-theme=dark] .manager-page :is(p,small){color:#b8ccde}
[data-theme=dark] .manager-page .service-state{color:#dce7f5}
[data-theme=dark] :focus-visible{outline-color:#91c1ff}
}
@media(max-width:620px){.theme-picker{flex:0 0 auto}.top-actions .theme-picker{margin-left:0}.manager-page header button{margin-left:0}.manager-page header{gap:12px}}
@media print{.theme-picker{display:none!important}:root{color-scheme:light}}

@media screen{[data-theme=dark] .password-error{color:#ffb5c0}[data-theme=dark] .auth-form input[aria-invalid=true]{border-color:#ff849a}}

/* Keep mobile header controls in one reachable row, including long translations. */
@media screen and (max-width:620px){
  .topbar .top-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;width:100%;max-width:100%;min-width:0;gap:8px;overflow-x:auto;padding:4px 4px 8px;scroll-padding-inline:4px;overscroll-behavior-x:contain}
  .topbar .top-actions>*{flex:0 0 auto}
  .topbar .top-actions .language-picker{margin:0}
  .topbar .top-actions .theme-picker>span{display:none}
  .topbar .top-actions button,.topbar .top-actions select{height:44px;min-height:44px;white-space:nowrap;padding:8px;font-size:1rem}
  .topbar .top-actions .theme-picker select{min-width:92px}
  .topbar .top-actions .language-picker select{width:auto;max-width:120px}
}
