/* Themes affect chrome and controls, never invert creatives or photographs. */
html[data-service-theme]:not([data-service-theme="light"]){color-scheme:dark;--st-bg:#111827;--st-panel:#182233;--st-raised:#202d41;--st-line:#36465e;--st-text:#e3eaf5;--st-muted:#a3b2c8;--st-accent:#a5b4fc;--st-tint:#303956;--st-on-accent:#101625;--st-success:#80dbad;--st-danger:#ff929e;--st-warning:#f3cc7e;--st-radius:10px;--yv-bg:var(--st-bg);--yv-text:var(--st-text);--yv-muted:var(--st-muted);--yv-line:var(--st-line);--yv-blue:var(--st-accent);--ink:var(--st-text);--muted:var(--st-muted);--line:var(--st-line);--bg:var(--st-bg);--accent:var(--st-accent)}
html[data-service-theme="hackers"][data-service-theme]{--st-bg:#030a07;--st-panel:#07120d;--st-raised:#0b1d14;--st-line:#28533a;--st-text:#a8f5c2;--st-muted:#7cb68f;--st-accent:#00ef72;--st-tint:#103724;--st-on-accent:#001c0e;--st-success:#00ef72;--st-warning:#ffda65;--st-radius:2px}
html[data-service-theme="matrix"][data-service-theme]{--st-bg:#050a06;--st-panel:#0b160e;--st-raised:#14251a;--st-line:#304e36;--st-text:#c4e8ca;--st-muted:#94b69b;--st-accent:#8bec9a;--st-tint:#203d28;--st-on-accent:#09220f;--st-radius:5px}
html[data-service-theme="graphite"][data-service-theme]{--st-bg:#191a1c;--st-panel:#232427;--st-raised:#2d2f33;--st-line:#494c52;--st-text:#ebe9e5;--st-muted:#b6b5b1;--st-accent:#d3c3a2;--st-tint:#3a3833;--st-on-accent:#252218}
html[data-service-theme="midnight"][data-service-theme]{--st-bg:#081426;--st-panel:#0e2038;--st-raised:#17304a;--st-line:#2b4c68;--st-text:#dceefa;--st-muted:#98b7cf;--st-accent:#69d4f5;--st-tint:#164159;--st-on-accent:#06202b}
html[data-service-theme]:not([data-service-theme="light"]) body{background:var(--st-bg)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.workspace-container,main,.main-content,.content-wrapper,.accounts-container,.campaigns-container,.dashboard-container){background-color:var(--st-bg)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.yv-sidebar,.yv-topbar,.yv-top-card,.modal-content,.modal-container,dialog,.card,.panel,.table-container,.table-wrapper,.table-responsive,.groups-create-panel,.groups-list-panel,.campaign-label-panels>form,.campaign-label-panels>div,.campaign-picker-menu,.campaign-picker-list>button,.duplicate-target-popup,.account-row-menu,.dropdown-menu,.toolbar,.actions-panel,.filters-panel,.bulk-actions-panel,.bulk-actions-bar,#bulk-form,.balance-drawer,.notification-panel,.flatpickr-calendar){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important;box-shadow:0 8px 24px #0003}
html[data-service-theme]:not([data-service-theme="light"]) :is(table,thead,tbody,tfoot,tr,th,td){background-color:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(th,tfoot td,.sticky-header,.sticky-totals,.groups-modal-header,.modal-header,.modal-footer){background-color:var(--st-raised)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) tbody tr:is(:hover,.account-return-hover)>td{background-color:var(--st-raised)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(h1,h2,h3,h4,h5,h6,label,.yv-page-title,.yv-profile-text strong,.account-primary-name,.account-login-info a,.account-name-info,.campaign-name,.campaign-title,.groups-settings-name,.campaign-label-name,.project-cell-label){color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(small,.text-muted,.muted,.yv-profile-text>span,.account-secondary-name,.account-secondary-login,.campaign-id,.delivery-action,.groups-modal-body small){color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) a{color:var(--st-accent)}
html[data-service-theme]:not([data-service-theme="light"]) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]),select,textarea,.form-control,.search-input,.campaign-picker-toggle,.campaign-filter-select){background-color:var(--st-bg)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) ::placeholder{color:var(--st-muted)!important;opacity:1}
html[data-service-theme]:not([data-service-theme="light"]) :is(input,progress){accent-color:var(--st-accent)}
html[data-service-theme]:not([data-service-theme="light"]) :is(button,.btn,[role=button]){color:var(--st-text);border-color:var(--st-line)}
html[data-service-theme]:not([data-service-theme="light"]) :is(.btn-secondary,.btn-outline,.btn-light,.yv-icon-btn,.yv-sidebar-toggle,.bulk-action-button,.account-row-menu button,.campaign-picker-toggle,.campaign-picker-list>button,.theme-trigger){background-color:var(--st-raised)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.btn-primary,.primary,.yv-sidebar-link.active){background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) .yv-sidebar-link{color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) .yv-sidebar-link:hover{background:var(--st-raised)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.action-error,.text-danger,.error-message){color:var(--st-danger)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.alert,.campaign-load-progress,.bulk-boost-intro,.bulk-boost-status){background:var(--st-raised)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.delivery-running .delivery-icon,.delivery-paused .delivery-icon){color:var(--st-success)!important}
html[data-service-theme]:not([data-service-theme="light"]) .delivery-stopped .delivery-icon{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.delivery-rejected .delivery-icon,.delivery-blocked .delivery-icon){color:var(--st-danger)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.modal-overlay,dialog::backdrop){background-color:#0009}
html[data-service-theme]:not([data-service-theme="light"]) :is(input,select,textarea,button,a):focus-visible{outline:2px solid var(--st-accent)!important;outline-offset:3px}
html[data-service-theme]:not([data-service-theme="light"]){scrollbar-color:var(--st-line) var(--st-bg)}
html[data-service-theme="hackers"][data-service-theme] :is(.yv-page-title,.yv-sidebar-link,table,.btn,button,input,select,textarea,.modal-content,dialog){font-family:Consolas,"Courier New",monospace!important}
html[data-service-theme="hackers"][data-service-theme] :is(.card,.panel,.modal-content,dialog,.btn,button,input,select,textarea,.yv-top-card,.yv-sidebar-link){border-radius:2px!important}
html[data-service-theme="hackers"][data-service-theme] :is(th,.yv-page-title,.groups-modal-header h3){color:#51dced!important}
html[data-service-theme="hackers"][data-service-theme] :is(.btn-primary,.primary){background:var(--st-accent)!important;color:var(--st-on-accent)!important}
html[data-service-theme="matrix"][data-service-theme] :is(.yv-page-title,th,.modal-header h3){font-family:Consolas,"Courier New",monospace!important;color:var(--st-accent)!important}
/* The picker is equally usable in light mode and on small screens. */
html[data-service-theme]:not([data-service-theme="light"]){--yv-panel-bg:var(--st-panel);--yv-panel-border:var(--st-line);--yv-text-soft:var(--st-muted);--yv-primary:var(--st-accent);--yv-primary-soft:var(--st-tint);--yv-profile-bg:var(--st-bg)}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.admin-tabs,.users-table-wrapper,.fill-tabs,.wizard-step,.step-panel,.launch-table-wrap,.gallery-main,.goals-stat,.goals-btn,.profile-settings-shell,.profile-aside-card,.profile-editor-card,.profile-section-link,.profile-protect-card,.profile-avatar-lg,.profile-protect-icon,.leads-stats-period-btn,.leads-stats-period-menu,.leads-stats-period-item){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.wizard-step.active,.fill-tab.active,.admin-tab.active,.profile-section-link.active){background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.wizard-step-title,.wizard-step-label,.fill-tab,.goals-stat-value){color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(#groups-dialog,#tags-dialog,#projects-dialog,#campaign-label-dialog) :is(.groups-create-panel,.groups-list-panel,.groups-modal-body,.groups-modal-header){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(#groups-dialog,#tags-dialog,#projects-dialog,#campaign-label-dialog) :is(select,input,textarea,button){background-color:var(--st-raised)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(#groups-dialog,#tags-dialog,#projects-dialog,#campaign-label-dialog) :is(h3,h4,label){color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.leads-top-menu-panel,.leads-top-menu,.leads-menu-link,.header-actions-container,.selected-ads-wrap,.period-dropdown-menu,.tags-dropdown-menu,.group-dropdown-menu){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .leads-menu-link.active{background:var(--st-tint)!important;color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.leads-stats-panel-title,.stat-card-small strong){color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.leads-stats-panel-sub,.stat-card-small small){color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.period-dropdown-btn,.tags-filter-btn,.bulk-btn,.accounts-table-container,.dashboard-metric-btn,.dashboard-chart-scale,.run-notice,.leads-top-menu,.leads-stats-filter-panel,.leads-stats-panel,.stat-card-small,.log-box,.yv-sidebar-support){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.btn,.bulk-btn){background:var(--st-raised)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.btn-primary,.dashboard-metric-btn.active){background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.btn-danger,.bulk-delete-btn){background:#49232d!important;color:#ffadb5!important;border-color:#98515c!important}
html[data-service-theme]:not([data-service-theme="light"]) body .btn-success{background:#164632!important;color:#a9efd0!important;border-color:#398668!important}
html[data-service-theme]:not([data-service-theme="light"]) body .btn-warning{background:#efca52!important;color:#29200a!important;border-color:#efca52!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.leads-stats-filter-panel,.leads-panel,.leads-content) :is(input,select){background:var(--st-bg)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.leads-stats-title,.leads-stats-panel h3,.leads-stats-panel h2,.stat-card-small .stat-value){color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) .yv-nav-icon{color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) .active .yv-nav-icon{color:var(--st-accent)!important}
html[data-service-theme="hackers"][data-service-theme] body .btn-primary{background:var(--st-accent)!important;color:var(--st-on-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]){--dash-bg:var(--st-bg);--dash-surface:var(--st-panel);--dash-surface-strong:var(--st-raised);--dash-border:var(--st-line);--dash-text:var(--st-text);--dash-muted:var(--st-muted);--dash-primary:var(--st-accent);--dash-primary-soft:var(--st-tint);--dash-green-soft:#153d30;--dash-orange-soft:#45351c;--dash-red-soft:#442730}
html[data-service-theme]:not([data-service-theme="light"]) :is(.dashboard-hero,.dashboard-panel,.dashboard-kpi,.dashboard-stat,.dashboard-stat-card,.dashboard-metric-card,.dashboard-chart-wrap,.runs-panel,.run-card,.summary,.item-debug-card,.fill-panel,.gallery-panel,.builder-panel,.editor-panel,.launch-panel,.compact-card,.creative-box,.account-card,.account-picker-shell,.accounts-bulk-panel,.leads-panel,.leads-card,.settings-panel,.admin-panel,.user-panel,.profile-panel,.goals-panel,.boost-panel,.boost-card,.automation-panel,.automation-card,.section-card,.content-card,.stat-card,.metric-card){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.runs-tabs,.section-tabs,.launch-tabs,.tabs,.account-picker-head,.account-picker-row,.campaign-toolbar,.account-toolbar,.filters-row,.table-toolbar,.item-debug-pre){background:var(--st-raised)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.run-btn,.section-tab,.runs-tab,.launch-tab,.item-debug-toggle,.accounts-bulk-actions button){background:var(--st-raised)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.run-card.active,.section-tab.active,.runs-tab.active,.launch-tab.active){background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.runs-subtitle,.mini,.description,.account-card-meta,.account-card-submeta,.account-picker-login,.account-picker-subtitle){color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.account-picker-title,.account-card-title,.compact-section-title,.creative-box-title){color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) .yv-sidebar-logo-full{background:transparent;border-radius:0}
.yv-top-actions .theme-trigger{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:8px;border:1px solid #dce3f3;border-radius:10px;background:#fff;color:#65708a;cursor:pointer}.theme-trigger svg{width:19px;height:19px}
#service-theme-dialog{box-sizing:border-box;width:620px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--st-line,#dce3ef);border-radius:16px;background:var(--st-panel,#fff);color:var(--st-text,#22324a);overflow:auto;box-shadow:0 24px 80px #0005;font:14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
#service-theme-dialog::backdrop{background:#07102299}
#service-theme-dialog .theme-dialog-header{display:flex;justify-content:space-between;gap:16px;margin:0 0 20px;align-items:flex-start}
#service-theme-dialog h2{margin:0 0 5px;font-size:22px}#service-theme-dialog p{margin:0;color:var(--st-muted,#66758b);font-size:12px}
#service-theme-dialog .theme-close{border:0;background:transparent;color:inherit;font:26px/1 Arial;cursor:pointer;padding:2px 6px}
#service-theme-dialog .theme-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#service-theme-dialog .theme-option{position:relative;display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:4px;padding:12px;border:1px solid var(--st-line,#dce3ef);border-radius:10px;background:var(--st-bg,#fafbfe);color:inherit;font:inherit;cursor:pointer;min-width:0}
#service-theme-dialog .theme-option[aria-pressed=true]{outline:2px solid var(--st-accent,#635bff);outline-offset:1px}
#service-theme-dialog .theme-option strong{font-size:14px}#service-theme-dialog .theme-option small{font-size:11px;color:var(--st-muted,#66758b)}
#service-theme-dialog .theme-check{position:absolute;right:14px;bottom:29px;color:var(--st-accent,#635bff);display:none}#service-theme-dialog [aria-pressed=true] .theme-check{display:block}
#service-theme-dialog .theme-swatch{display:flex;gap:9px;height:56px;margin-bottom:5px;padding:10px;border-radius:5px;background:var(--sample-bg);box-sizing:border-box;border:1px solid #8884}
#service-theme-dialog .theme-swatch i{display:block;width:20px;border-right:1px solid var(--sample-accent);opacity:.65}#service-theme-dialog .theme-swatch>span{display:grid;gap:5px;flex:1}#service-theme-dialog .theme-swatch b{height:3px;background:var(--sample-accent);opacity:.5}#service-theme-dialog .theme-swatch b:first-child{width:45%;opacity:1}#service-theme-dialog .theme-swatch b:last-child{width:70%}
#service-theme-dialog .theme-save-status{min-height:17px;margin-top:16px}
@media(max-width:430px){#service-theme-dialog{padding:16px}#service-theme-dialog .theme-options{gap:9px}#service-theme-dialog .theme-option{padding:9px}#service-theme-dialog h2{font-size:20px}}

/* Component-local tokens retain the light design and avoid specificity wars. */
html[data-service-theme]:not([data-service-theme="light"]) :is(.yv-top-actions .theme-trigger,#registration-bell,#registration-panel,.campaign-row-menu,.column-setting-item,.account-info-display,.manual-counter-panel){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(#groups-dialog,#tags-dialog,#projects-dialog,#campaign-label-dialog) .appearance-header :is(.appearance-palette,.appearance-toolbar,.appearance-gear){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(#groups-dialog,#tags-dialog,#projects-dialog,#campaign-label-dialog) .appearance-header .appearance-preset[aria-pressed=true]{background:var(--st-tint)!important;border-color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.appearance-gear,.campaign-filter-gear,.group-settings-btn,.tags-settings-btn,.projects-settings-btn) img{filter:brightness(0) invert(.75);opacity:.85}
html[data-service-theme]:not([data-service-theme="light"]) #duplicate-campaign-modal .bulk-boost-actions .btn-primary{background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.campaign-row-menu button:hover,.duplicate-target-results button:hover,#registration-list a.unread){background:var(--st-tint)!important;color:var(--st-accent)!important}
/* A creative is a preview of the advertisement, not application chrome. */
html[data-service-theme]:not([data-service-theme="light"]) .yandex-ad-preview-card{--st-panel:#fff;--st-bg:#fff;--st-raised:#f7f8fa;--st-text:#24272e;--st-muted:#687287;--st-accent:#3975ff;--st-line:#e1e6ef;background:#fff;color:#24272e;color-scheme:light}

html[data-service-theme]:not([data-service-theme="light"]) :is(.role-badge,.profile-role-pill,.account-type-badge){background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) .status-badge.status-active{background:#164632!important;color:#a9efd0!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.table-settings-btn,.settings-btn) img{filter:brightness(0) invert(.8)}

/* Translucent legacy surfaces and popovers use the same dark palette. */
html[data-service-theme]:not([data-service-theme="light"]) body :is(.metrika-modal-content,.metrika-panel,.metrika-form-card,.metrika-counter-card,.metrika-empty,.metrika-loading,.bulk-dropdown-menu,.column-item,.admin-header,.tab-content,.ad-link-loading-layer,.ad-link-loading-card,.wizard-nav-panel,.modifier-details,.mapper-target-value,.postback-panel,.gallery-sidebar,.table-wrap,.group-item,.folder-item,.gallery-scale-toggle,.row-actions-list,.tg-bot-status-card){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.bulk-dropdown-menu button:hover,.bulk-dropdown-toggle.open,.column-item:hover,.column-item.dragging,.budget-mode-btn:hover,.admin-tab:hover){background:var(--st-tint)!important;color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.metrika-modal-content,.budget-modal-content,.bulk-boost-modal-content,.campaign-setting-modal) :is(.modal-header,.modal-footer){background:var(--st-raised)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.status-badge.status-pending,.status-badge.status-paused){background:#45351c!important;color:var(--st-warning)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(.status-badge.status-expired,.status-badge.status-error){background:#442730!important;color:var(--st-danger)!important}
html[data-service-theme]:not([data-service-theme="light"]) .status-badge.status-disabled{background:var(--st-raised)!important;color:var(--st-muted)!important}

/* Account screenshot audit: logo, tag chips, row actions and navigation. */
html[data-service-theme]:not([data-service-theme="light"]) body .yv-sidebar-logo-full{background:transparent!important;filter:brightness(0) invert(1);opacity:.88}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.yv-sidebar-logo,.yv-sidebar-header){background:transparent!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.account-tag,.campaign-tag){background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) :is(#tags-dialog,#campaign-label-dialog[data-appearance-kind="tag"]) .groups-settings-name{background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.account-row-gear,.campaign-row-gear,#registration-bell,.column-settings-btn){background:var(--st-raised)!important;color:var(--st-accent)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.workspace-breadcrumb-current,.yv-page-title){color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .column-settings-btn img{filter:brightness(0) invert(.75);opacity:1}

/* Floating table copies live outside the table and need their own palette. */
html[data-service-theme]:not([data-service-theme="light"]) body :is(.account-floating-head,.account-floating-heading,.account-sticky-totals,.account-sticky-total-cell,.account-floating-scroll){background:var(--st-raised)!important;color:var(--st-text)!important;border-color:var(--st-line)!important;scrollbar-color:var(--st-muted) var(--st-bg)}
html[data-service-theme]:not([data-service-theme="light"]) body .account-floating-heading:hover{background:var(--st-tint)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .account-floating-scroll::-webkit-scrollbar-thumb{background:var(--st-muted);border-color:var(--st-bg)}
html[data-service-theme]:not([data-service-theme="light"]) body .accounts-table td.account-name-cell .account-type-badge{background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-line)!important}
/* Automation panels, builder and journal: explicit component colors. */
html[data-service-theme]:not([data-service-theme="light"]) body .automation-hero,
html[data-service-theme]:not([data-service-theme="light"]) body .automation-panel,
html[data-service-theme]:not([data-service-theme="light"]) body .automation-form-panel,
html[data-service-theme]:not([data-service-theme="light"]) body .automation-preview-panel{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-hero{background:var(--st-panel)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-eyebrow{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-hero h1{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-hero p{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-stage-note{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-summary-card{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-summary-label{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-summary-value{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-summary-sub{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-tabs{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-tab-btn{color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-tab-btn.active{background:var(--st-panel)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-panel-title{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-panel-sub{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-pill{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-btn{border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-btn.primary{background:var(--st-panel)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-btn.secondary{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-btn.ghost{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-btn.danger{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-task-card{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-task-name{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-task-desc{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-badge,
html[data-service-theme]:not([data-service-theme="light"]) body .automation-status{border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-badge.blue{background:var(--st-panel)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-badge.green{background:var(--st-panel)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-badge.orange{background:var(--st-panel)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-badge.red{background:var(--st-panel)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-status.green{background:var(--st-panel)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-status.red{background:var(--st-panel)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-status.slate{background:var(--st-panel)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-meta-card{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-meta-label{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-meta-value{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-task-footer{border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-timestamps{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-empty{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-empty h3{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-empty p{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-form-title{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-form-sub{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-form-section{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-section-title{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-field label{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-field input,
html[data-service-theme]:not([data-service-theme="light"]) body .automation-field select,
html[data-service-theme]:not([data-service-theme="light"]) body .automation-field textarea{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-field input:focus,
html[data-service-theme]:not([data-service-theme="light"]) body .automation-field select:focus,
html[data-service-theme]:not([data-service-theme="light"]) body .automation-field textarea:focus{border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-field small{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-choice{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-choice strong{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-choice span{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-option-shell{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-option-search{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-option-search input{border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-option-list{background:var(--st-panel)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-option-item{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-option-item strong{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-option-item small{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-status-inline{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-preview-card{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-preview-title{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-preview-text{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-preview-list li{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-step-card{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-step-title{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-step-sub{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-step-pause{border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-step-end-note{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-toast{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-toast.success{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-toast.error{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-toast.info{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-modal{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-modal-head{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-modal-head h3{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-modal-head p{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-modal-close{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-log-item{background:var(--st-panel)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-log-event{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-log-time{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-log-message{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-log-payload{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-hero,
html[data-service-theme]:not([data-service-theme="light"]) body .automation-panel,
html[data-service-theme]:not([data-service-theme="light"]) body .automation-form-panel,
html[data-service-theme]:not([data-service-theme="light"]) body .automation-preview-panel{border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.automation-tab-btn.active,.automation-btn.primary,.automation-eyebrow,.automation-badge.blue){background:var(--st-tint)!important;color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.automation-badge.green,.automation-status.green,.automation-toast.success){background:#164632!important;color:#a9efd0!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.automation-badge.red,.automation-status.red,.automation-btn.danger,.automation-toast.error){background:#442730!important;color:var(--st-danger)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .automation-badge.orange{background:#45351c!important;color:var(--st-warning)!important}

/* Shared personal cabinet sidebar, including balance and marking pages. */
html[data-service-theme]:not([data-service-theme="light"]) body .cabinet-sidebar :is(.user-info-block,.sidebar-menu){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .cabinet-sidebar .user-info-block h2{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .cabinet-sidebar :is(.user-info-block p,.user-id){color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .cabinet-sidebar .menu-item{background:transparent!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .cabinet-sidebar .menu-item:hover{background:var(--st-raised)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .cabinet-sidebar .menu-item.active{background:var(--st-tint)!important;color:var(--st-accent)!important}

/* Existing hosting workspace: tabs, folder navigation and file dialogs. */
html[data-service-theme]:not([data-service-theme="light"]) body #hosting-workspace :is(.subtabs,.tabs){background:var(--st-raised)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body #hosting-workspace :is(.subtab,.tab,.folder-name,.group-title,.folder-item,.group-icon-btn){color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body #hosting-workspace :is(.subtab.active,.tab.active,.folder-item.active,.btn.primary){background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-accent)!important;box-shadow:none}
html[data-service-theme]:not([data-service-theme="light"]) body #hosting-workspace :is(.icon-btn,.group-create-btn,.folder-item,.modal,.editor-card,.modal-head,.editor-head,.context-menu,.domain-task-widget,.transfer-modal-panel,.transfer-modal-panel-head,.transfer-user-item,.file-item){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body #hosting-workspace :is(.folder-item:hover,.file-item.selected,.transfer-user-item.active){background:var(--st-tint)!important;color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body #hosting-workspace :is(.folder-count,.subtitle,.draft-note,.draft-badge){color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .hosting-toast{background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}

/* Boost template cards: preserve readable surfaces for active templates. */
html[data-service-theme]:not([data-service-theme="light"]) body.boost-workspace :is(.template-card,.template-option){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.boost-workspace .template-card.in-use{background:var(--st-panel)!important;border-color:#39b66c!important}
html[data-service-theme]:not([data-service-theme="light"]) body.boost-workspace :is(.template-card.default,.template-option.default){border-color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.boost-workspace :is(.template-name,.template-settings){background:transparent!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.boost-workspace .template-badge{background:var(--st-tint)!important;color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.boost-workspace .template-badge.in-use{background:#164632!important;color:#a9efd0!important}
html[data-service-theme]:not([data-service-theme="light"]) body.boost-workspace .template-actions .btn-small{background:var(--st-raised)!important;color:var(--st-text)!important;border:1px solid var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.boost-workspace .template-actions .btn-small:not(:disabled):hover{background:var(--st-tint)!important;color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.boost-workspace .template-actions .btn-small:disabled{background:var(--st-panel)!important;color:var(--st-muted)!important;opacity:1}

/* Provider letters and profile initials follow the selected dark palette. */
html[data-service-theme]:not([data-service-theme="light"]) body .accounts-page .accounts-table .balance-source-badge,
html[data-service-theme]:not([data-service-theme="light"]) body .accounts-table .balance-source-badge,
html[data-service-theme]:not([data-service-theme="light"]) body .yandex-dot{background:var(--st-tint)!important;color:var(--st-accent)!important;box-shadow:inset 0 0 0 1px var(--st-line)}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.yv-avatar,.account-avatar){background:var(--st-tint)!important;color:var(--st-accent)!important;box-shadow:inset 0 0 0 1px var(--st-line)}

/* Matrix rain stays behind opaque tables, panels and dialogs. */
html.service-matrix-animated body{isolation:isolate}
#service-matrix-rain{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;opacity:.45}
#service-matrix-rain[hidden]{display:none}
html[data-service-theme="matrix"].service-matrix-animated :is(.workspace-container,main,.main-content,.content-wrapper,.accounts-container,.campaigns-container,.dashboard-container){background-color:transparent!important}
#service-theme-dialog .theme-option-wrap{display:flex;flex-direction:column;min-width:0;border:1px solid var(--st-line,#dce3ef);border-radius:10px;background:var(--st-bg,#fafbfe)}
#service-theme-dialog .theme-option-wrap:has([aria-pressed=true]){outline:2px solid var(--st-accent,#635bff);outline-offset:1px}
#service-theme-dialog .theme-option-wrap .theme-option{border:0;outline:none;flex:1}
#service-theme-dialog .theme-option-wrap .theme-option:focus-visible{outline:2px solid var(--st-accent,#635bff);outline-offset:-3px}
#service-theme-dialog .theme-animation-switch{position:relative;display:flex;align-items:center;gap:8px;margin:0 12px;padding:10px 0;min-height:44px;border-top:1px solid var(--st-line,#dce3ef);font-size:12px;cursor:pointer}
#service-theme-dialog .theme-animation-switch>span:first-child{margin-right:auto}
#service-theme-dialog .theme-animation-switch input{position:absolute;right:30px;width:38px;height:24px;opacity:0;margin:0;z-index:1;cursor:pointer}
#service-theme-dialog .theme-animation-track{width:38px;height:22px;border-radius:12px;background:var(--st-raised,#dce3ef);border:1px solid var(--st-line,#c0c8d8);position:relative;flex-shrink:0}
#service-theme-dialog .theme-animation-track:after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:var(--st-muted,#66758b)}
#service-theme-dialog input:checked+.theme-animation-track{background:var(--st-tint,#e6e3ff);border-color:var(--st-accent,#635bff)}
#service-theme-dialog input:checked+.theme-animation-track:after{left:19px;background:var(--st-accent,#635bff)}
#service-theme-dialog input:focus-visible+.theme-animation-track{outline:2px solid var(--st-accent,#635bff);outline-offset:3px}
#service-theme-dialog .theme-animation-switch small{width:24px;color:var(--st-muted,#66758b)}

/* Remaining cabinet/admin surfaces share the selected dark palette. */
html[data-service-theme]:not([data-service-theme="light"]) body :is(.admin-card,.settings-sidebar,.settings-content,.settings-block,.admin-editor .user-edit-content,.tg-content,.tg-hero,.tg-summary>div,.tg-notice,.accounts-preparing-message){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.settings-nav-btn,.admin-tabs a.selected,.admin-primary){background:var(--st-raised)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.settings-nav-btn.active,.admin-tabs a.selected,.admin-primary:hover){background:var(--st-tint)!important;color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.tg-kicker,.tg-hero a){color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.tg-hint,.tg-summary small){color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .tg-setting{border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .tg-switch i{background:var(--st-raised)!important;box-shadow:inset 0 0 0 1px var(--st-line)}
html[data-service-theme]:not([data-service-theme="light"]) body .tg-switch i:after{background:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .tg-switch input:checked+i{background:var(--st-tint)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .tg-switch input:checked+i:after{background:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.tg-pill,.stats-log-status.ok,.stats-log-status.success){background:#164632!important;color:#a9efd0!important}
html[data-service-theme]:not([data-service-theme="light"]) body .tg-pill.tg-offline{background:var(--st-raised)!important;color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.mark-table-status[data-state="empty"],.mark-indicator[data-state="empty"],.stats-log-status.warning){background:#45351c!important;color:var(--st-warning)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.mark-table-status[data-state="filled"],.mark-indicator[data-state="filled"]){background:#164632!important;color:#a9efd0!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.mark-table-status[data-state="error"],.mark-indicator[data-state="error"],.stats-log-status.error){background:#442730!important;color:var(--st-danger)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-zaleycash :is(.zaleycash-tabs,.account-inner-tabs){background:var(--st-raised)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-zaleycash :is(.zaleycash-user-info,.balance-item,.info-box,.form-section,.inner-tab-content){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-zaleycash :is(.info-value,.balance-amount,.form-section p,.info-box p){color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-zaleycash :is(.info-label,.balance-currency,.balance-item small){color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-zaleycash :is(.zc-tab,.inner-tab){color:var(--st-text)!important;background:transparent!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-zaleycash :is(.zc-tab.active,.inner-tab.active){color:var(--st-accent)!important;background:var(--st-tint)!important}
/* Goals: project selection, installation code and editor surfaces. */
html[data-service-theme]:not([data-service-theme="light"]) body :is(.goals-shell,.goals-modal) :is(.project-item,.snippet-box,.goals-dialog,.goals-feature-section,.goals-feature-settings,.goals-help-text,.control-action-trigger,.control-action-menu,.goals-info-tip,.crm-filter-panel,.crm-account-dropdown,.crm-detail-item){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .goals-shell .project-item.active{background:var(--st-tint)!important;border-color:var(--st-accent)!important;box-shadow:0 0 0 1px var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .snippet-row code{background:var(--st-bg)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.goals-shell,.goals-modal) :is(.goals-stat strong,.project-name,.goals-checks label,.goals-feature-toggle,.control-action-option,.crm-account-option,.crm-account-option-name,.crm-account-cell strong,.crm-detail-item code){color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.goals-shell,.goals-modal) :is(.goals-stat span,.project-meta,.detail-title p,.snippet-box label,.goal-empty,.goals-field label,.goals-help-text,.control-action-placeholder,.control-action-group,.crm-filter-field>label,.crm-account-option-login,.crm-account-empty,.crm-account-cell span,.crm-events,.crm-pagination-summary){color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.goals-shell,.goals-modal) :is(.project-status,.goal-badge,.control-action-tag,.crm-tab.active,.crm-account-option:hover,.control-action-option:hover){background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .goals-shell .project-status.off{background:var(--st-raised)!important;color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) body :is(.goals-panel-head,.goals-table-wrap,.goals-dialog-head,.goals-dialog-actions,.crm-table-wrap){border-color:var(--st-line)!important}

/* Idle Matrix curtain covers only the workspace; its contents keep their state. */
html[data-service-theme="matrix"].service-matrix-idle #service-matrix-rain{z-index:2147483000;opacity:1;background:var(--st-bg);pointer-events:auto;clip-path:inset(var(--matrix-idle-top,0px) 0 0 var(--matrix-idle-left,0px))}
/* Shared admin KPI cards, including launch and boost monitoring. */
html[data-service-theme]:not([data-service-theme="light"]) body .admin-metrics>div{background:var(--st-raised)!important;border-color:var(--st-line)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .admin-metrics b{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .admin-metrics span{color:var(--st-muted)!important}
/* User administration: readable warning actions and state badges in dark themes. */
html[data-service-theme]:not([data-service-theme="light"]) body .users-card :is(.mini.warning,.state-pill.pending){background:#45351c!important;color:#ffdc8b!important;border-color:#8c713e!important}
html[data-service-theme]:not([data-service-theme="light"]) body .users-card .mini.warning:hover{background:#594522!important;color:#ffe7b2!important}
html[data-service-theme]:not([data-service-theme="light"]) body .users-card .mini.warning:focus-visible{outline:2px solid #ffdc8b;outline-offset:2px}
html[data-service-theme]:not([data-service-theme="light"]) body .users-card .state-pill.active{background:#164632!important;color:#a9efd0!important}
html[data-service-theme]:not([data-service-theme="light"]) body .users-card :is(.state-pill.expired,.state-pill.blocked){background:#442730!important;color:var(--st-danger)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .users-card .role-pill.admin{background:var(--st-tint)!important;color:var(--st-accent)!important}
/* Gallery controls and folder labels use the active palette, not UI-kit light colors. */
html[data-service-theme]:not([data-service-theme="light"]) body .gallery-shell :is(.folder-name,.gallery-scale-btn,.gallery-btn){color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .gallery-shell :is(.gallery-btn,.gallery-scale-toggle){background:var(--st-raised)!important;border-color:var(--st-line)!important;box-shadow:none!important}
html[data-service-theme]:not([data-service-theme="light"]) body .gallery-shell .gallery-scale-btn{background:transparent!important}
html[data-service-theme]:not([data-service-theme="light"]) body .gallery-shell :is(.gallery-scale-btn.active,.folder-item.active,.gallery-btn.primary,.gallery-btn:hover){background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-accent)!important;box-shadow:none!important}
html[data-service-theme]:not([data-service-theme="light"]) body .gallery-shell .folder-item.active .folder-name{color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .gallery-shell :is(.folder-count,.gallery-toolbar>div>div[style]){color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) body .gallery-shell :is(.folder-icon,.folder-icon:before){background:var(--st-accent)!important}
/* CRM: board, forms and analytics share dark-theme surfaces. */
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm :is(.crm-column,.crm-stage-head,.crm-history,.crm-task-group h3,.crm-view-switch,.crm-stage-ribbon button,.crm-funnel-row>div){background:var(--st-raised)!important;color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm :is(.crm-card,.crm-search,.crm-quiet,.crm-private,.crm-loading,.crm-empty,.crm-task-row,.crm-dialog-head,.crm-fields,.crm-form-actions,.crm-task-group,.crm-kpis article,.crm-analytics-panel,.crm-stage-ribbon,.crm-view-switch button){background:var(--st-panel)!important;color:var(--st-text)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm :is(.crm-primary,.crm-view-switch [aria-pressed=true],.crm-nav span,.crm-tag,.crm-column.drag-over,.crm-stage-ribbon button.selected,.crm-add-stage:hover,.crm-quiet:hover){background:var(--st-tint)!important;color:var(--st-accent)!important;border-color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm .crm-add-stage{background:transparent!important;color:var(--st-muted)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm :is(.crm-summary strong,.crm-card-amount,.crm-stage-title,.crm-empty h3,.crm-history h3,.crm-event.note){color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm :is(.crm-card-title,.crm-link,.crm-kpis strong,.crm-nav [aria-selected=true]){color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm :is(.crm-card-client,.crm-card-task,.crm-column-empty,.crm-stage-amount,.crm-stage-title span,.crm-summary,.crm-task-row small,.crm-task-date,.crm-form label,.crm-event,.crm-event time,.crm-inline-info,.crm-health button,.crm-record-id,.crm-kpis article>span,.crm-kpis small,.crm-analytics-panel p,.crm-footnote,.crm-search span){color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm :is(.crm-nav,.crm-column,.crm-card-task,.crm-history-list,.crm-stage-edit,.crm-task-inline,.crm-view-switch,.crm-view-switch button){border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm .crm-nav [aria-selected=true]{border-bottom-color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm .crm-event.note{background:var(--st-tint)!important;border-color:var(--st-line)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm :is(.crm-error,.crm-overdue){color:var(--st-danger)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm .crm-error{background:#442730!important;border-color:var(--st-danger)!important}
html[data-service-theme]:not([data-service-theme="light"]) body.page-crm button:focus-visible{outline-color:var(--st-accent)!important}
.account-typography-options{display:flex;flex-wrap:wrap;gap:12px;border:1px solid var(--st-line,#d9e3f3);border-radius:8px;padding:12px;margin:0 0 18px;color:var(--st-text,#253247)}
.account-typography-options legend{padding:0 6px;font-size:13px;font-weight:600}.account-typography-options label{display:grid;gap:6px;flex:1;min-width:150px;font-size:12px}.account-typography-options select{padding:8px;border:1px solid var(--st-line,#d9e3f3);border-radius:6px;background:var(--st-panel,#fff);color:var(--st-text,#253247)}.account-typography-options small{flex-basis:100%;line-height:1.5;color:var(--st-muted,#65718a)}
html[data-service-theme]:not([data-service-theme="light"]) body #columns-dialog :is(.column-item,.column-item label,.column-name,legend,h4){color:var(--st-text)!important}
/* Campaign delivery text must remain readable on every dark surface. */
html[data-service-theme]:not([data-service-theme="light"]) body #root .campaign-delivery-status,html[data-service-theme]:not([data-service-theme="light"]) body #root .campaign-delivery-status .delivery-copy{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body #root .campaign-delivery-status .delivery-action{color:var(--st-muted)!important}
html[data-service-theme]:not([data-service-theme="light"]) body #root .campaign-delivery-status .delivery-action:hover{color:var(--st-accent)!important}
html[data-service-theme]:not([data-service-theme="light"]) body #root .campaign-delivery-status .delivery-icon{color:var(--st-text)!important}
html[data-service-theme]:not([data-service-theme="light"]) body #root :is(.delivery-active,.delivery-paused) .delivery-icon{color:#55d6a6!important}
html[data-service-theme]:not([data-service-theme="light"]) body #root :is(.delivery-no-funds,.delivery-rejected) .delivery-icon{color:var(--st-danger)!important}

/* Quiet night sky, behind all interactive surfaces. */
html.service-night-sky body{isolation:isolate}
#service-night-sky{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;background:radial-gradient(ellipse at 78% 12%,#1b2945 0,transparent 52%),#0d1424}
#service-night-sky[hidden]{display:none}
html[data-service-theme="night"].service-night-sky :is(.workspace-container,main,.main-content,.content-wrapper,.accounts-container,.campaigns-container,.dashboard-container){background-color:transparent!important}
.night-galaxy{position:absolute;inset:-30%;background:radial-gradient(ellipse at center,rgba(161,171,223,.14),rgba(98,99,163,.09) 20%,transparent 58%);transform:rotate(-28deg) scaleY(.32);animation:night-galaxy-breathe 22s ease-in-out infinite alternate}
.night-stars{position:absolute;left:0;top:0;width:1.4px;height:1.4px;border-radius:50%;background:transparent}
.night-stars-a{box-shadow:63.94vw 2.50vh 0 0px rgba(206,222,255,0.37),13.95vw 10.25vh 0 0px rgba(206,222,255,0.53),3.18vw 9.37vh 0 0px rgba(206,222,255,0.49),2.65vw 19.88vh 0 0.4px rgba(206,222,255,0.35),58.93vw 80.94vh 0 0px rgba(206,222,255,0.61),15.97vw 42.26vh 0 0px rgba(206,222,255,0.32),95.72vw 33.66vh 0 0px rgba(206,222,255,0.43),35.90vw 34.40vh 0 0px rgba(206,222,255,0.63),72.97vw 53.62vh 0 0.4px rgba(206,222,255,0.29),29.32vw 62.86vh 0 0px rgba(206,222,255,0.52),70.46vw 4.58vh 0 0px rgba(206,222,255,0.61),98.52vw 85.53vh 0 0px rgba(206,222,255,0.43),45.34vw 83.41vh 0 0px rgba(206,222,255,0.42),20.95vw 26.70vh 0 0px rgba(206,222,255,0.54),17.11vw 72.91vh 0 0px rgba(206,222,255,0.47),26.99vw 92.54vh 0 0px rgba(206,222,255,0.57),84.29vw 77.60vh 0 0px rgba(206,222,255,0.64),80.50vw 40.12vh 0 0px rgba(206,222,255,0.35),94.29vw 87.64vh 0 0px rgba(206,222,255,0.35),49.92vw 88.47vh 0 0.4px rgba(206,222,255,0.32),13.96vw 74.50vh 0 0px rgba(206,222,255,0.60),42.84vw 58.35vh 0 0px rgba(206,222,255,0.35),99.75vw 50.95vh 0 0px rgba(206,222,255,0.61),86.11vw 15.28vh 0 0px rgba(206,222,255,0.62),42.22vw 6.35vh 0 0.4px rgba(206,222,255,0.53),46.80vw 25.14vh 0 0px rgba(206,222,255,0.57),11.46vw 88.48vh 0 0px rgba(206,222,255,0.61),34.02vw 29.35vh 0 0px rgba(206,222,255,0.46),95.38vw 87.59vh 0 0px rgba(206,222,255,0.71),76.20vw 50.77vh 0 0px rgba(206,222,255,0.66),29.84vw 63.89vh 0 0px rgba(206,222,255,0.32),76.25vw 53.94vh 0 0px rgba(206,222,255,0.53),48.86vw 11.19vh 0 0px rgba(206,222,255,0.66),83.17vw 30.75vh 0 0px rgba(206,222,255,0.36),56.74vw 7.88vh 0 0.4px rgba(206,222,255,0.63),97.80vw 53.27vh 0 0px rgba(206,222,255,0.31),47.53vw 54.98vh 0 0px rgba(206,222,255,0.50),60.66vw 96.44vh 0 0px rgba(206,222,255,0.59),39.90vw 67.17vh 0 0px rgba(206,222,255,0.46),51.76vw 12.10vh 0 0px rgba(206,222,255,0.28),2.10vw 55.39vh 0 0px rgba(206,222,255,0.25),70.78vw 5.89vh 0 0px rgba(206,222,255,0.68),85.96vw 7.09vh 0 0px rgba(206,222,255,0.38),48.54vw 53.92vh 0 0.4px rgba(206,222,255,0.36),47.30vw 40.71vh 0 0px rgba(206,222,255,0.30),43.11vw 42.36vh 0 0.4px rgba(206,222,255,0.66),5.42vw 65.35vh 0 0px rgba(206,222,255,0.28),72.82vw 80.06vh 0 0px rgba(206,222,255,0.37),19.02vw 44.86vh 0 0.4px rgba(206,222,255,0.34),46.26vw 87.45vh 0 0px rgba(206,222,255,0.46),86.13vw 55.03vh 0 0px rgba(206,222,255,0.56),54.06vw 1.48vh 0 0px rgba(206,222,255,0.69),84.87vw 16.63vh 0 0.4px rgba(206,222,255,0.48),86.47vw 90.24vh 0 0px rgba(206,222,255,0.43),98.53vw 26.52vh 0 0.4px rgba(206,222,255,0.38),69.66vw 73.05vh 0 0.4px rgba(206,222,255,0.32),29.67vw 96.87vh 0 0px rgba(206,222,255,0.60),5.72vw 58.42vh 0 0px rgba(206,222,255,0.28),50.78vw 85.13vh 0 0px rgba(206,222,255,0.53),67.52vw 23.52vh 0 0px rgba(206,222,255,0.69),56.97vw 57.89vh 0 0px rgba(206,222,255,0.54),41.92vw 58.37vh 0 0px rgba(206,222,255,0.69),20.43vw 71.62vh 0 0px rgba(206,222,255,0.37),13.09vw 64.55vh 0 0.4px rgba(206,222,255,0.40),75.19vw 7.25vh 0 0.4px rgba(206,222,255,0.54),56.30vw 10.00vh 0 0px rgba(206,222,255,0.49),13.25vw 34.90vh 0 0px rgba(206,222,255,0.66),36.95vw 15.77vh 0 0px rgba(206,222,255,0.54),98.72vw 65.40vh 0 0px rgba(206,222,255,0.56),55.46vw 93.18vh 0 0px rgba(206,222,255,0.69),13.43vw 11.54vh 0 0px rgba(206,222,255,0.60),15.54vw 28.18vh 0 0px rgba(206,222,255,0.59),20.36vw 63.42vh 0 0px rgba(206,222,255,0.49),25.11vw 90.82vh 0 0px rgba(206,222,255,0.29),42.36vw 27.67vh 0 0px rgba(206,222,255,0.41),13.08vw 97.98vh 0 0px rgba(206,222,255,0.60),55.17vw 42.77vh 0 0px rgba(206,222,255,0.30),94.51vw 69.10vh 0 0px rgba(206,222,255,0.51),83.46vw 58.25vh 0 0px rgba(206,222,255,0.45),4.18vw 36.47vh 0 0px rgba(206,222,255,0.67),21.01vw 24.95vh 0 0px rgba(206,222,255,0.42),55.99vw 87.47vh 0 0px rgba(206,222,255,0.69),23.67vw 16.25vh 0 0px rgba(206,222,255,0.66),2.48vw 73.66vh 0 0px rgba(206,222,255,0.62),41.17vw 66.99vh 0 0px rgba(206,222,255,0.38);animation:night-twinkle 8s ease-in-out infinite alternate}
.night-stars-b{box-shadow:78.74vw 10.81vh 0 0px rgba(206,222,255,0.65),22.24vw 81.66vh 0 0.4px rgba(206,222,255,0.41),82.05vw 87.13vh 0 0px rgba(206,222,255,0.26),19.31vw 32.83vh 0 0px rgba(206,222,255,0.70),27.91vw 64.15vh 0 0.4px rgba(206,222,255,0.57),84.37vw 33.11vh 0 0px rgba(206,222,255,0.30),97.04vw 17.86vh 0 0px rgba(206,222,255,0.27),59.66vw 34.57vh 0 0px rgba(206,222,255,0.46),98.42vw 11.56vh 0 0px rgba(206,222,255,0.37),70.88vw 0.17vh 0 0px rgba(206,222,255,0.42),7.00vw 66.42vh 0 0px rgba(206,222,255,0.54),66.34vw 12.46vh 0 0px rgba(206,222,255,0.49),66.69vw 32.62vh 0 0px rgba(206,222,255,0.51),19.18vw 66.49vh 0 0.4px rgba(206,222,255,0.57),90.28vw 61.55vh 0 0px rgba(206,222,255,0.44),83.37vw 30.39vh 0 0px rgba(206,222,255,0.45),58.00vw 65.47vh 0 0.4px rgba(206,222,255,0.46),67.56vw 51.12vh 0 0px rgba(206,222,255,0.56),28.38vw 66.39vh 0 0px rgba(206,222,255,0.29),95.20vw 23.49vh 0 0px rgba(206,222,255,0.36),19.91vw 2.44vh 0 0px rgba(206,222,255,0.71),61.13vw 76.85vh 0 0.4px rgba(206,222,255,0.44),62.98vw 19.44vh 0 0.4px rgba(206,222,255,0.48),24.40vw 65.61vh 0 0px rgba(206,222,255,0.67),86.04vw 88.55vh 0 0.4px rgba(206,222,255,0.35),80.41vw 69.59vh 0 0.4px rgba(206,222,255,0.27),24.92vw 84.83vh 0 0.4px rgba(206,222,255,0.31),46.46vw 53.11vh 0 0px rgba(206,222,255,0.70),89.14vw 61.27vh 0 0.4px rgba(206,222,255,0.64),54.79vw 89.72vh 0 0.4px rgba(206,222,255,0.46),75.18vw 83.99vh 0 0px rgba(206,222,255,0.61),52.13vw 62.67vh 0 0px rgba(206,222,255,0.46),71.35vw 23.45vh 0 0px rgba(206,222,255,0.40),54.02vw 13.84vh 0 0px rgba(206,222,255,0.43),15.28vw 21.40vh 0 0.4px rgba(206,222,255,0.44),54.26vw 41.58vh 0 0px rgba(206,222,255,0.64),38.95vw 76.98vh 0 0px rgba(206,222,255,0.65),76.56vw 38.04vh 0 0px rgba(206,222,255,0.69),29.86vw 39.00vh 0 0.4px rgba(206,222,255,0.50),73.46vw 79.99vh 0 0px rgba(206,222,255,0.48),27.29vw 48.56vh 0 0.4px rgba(206,222,255,0.41),67.91vw 40.43vh 0 0px rgba(206,222,255,0.65),91.95vw 98.07vh 0 0px rgba(206,222,255,0.68),59.19vw 66.30vh 0 0px rgba(206,222,255,0.55),13.57vw 46.17vh 0 0px rgba(206,222,255,0.37),32.74vw 45.47vh 0 0px rgba(206,222,255,0.61),37.91vw 75.20vh 0 0.4px rgba(206,222,255,0.37),8.19vw 1.94vh 0 0px rgba(206,222,255,0.72),35.00vw 65.01vh 0 0px rgba(206,222,255,0.60),94.96vw 19.94vh 0 0px rgba(206,222,255,0.54),23.85vw 47.36vh 0 0px rgba(206,222,255,0.52),21.80vw 69.95vh 0 0px rgba(206,222,255,0.33),60.72vw 74.79vh 0 0px rgba(206,222,255,0.62),16.38vw 31.10vh 0 0px rgba(206,222,255,0.69),57.58vw 90.80vh 0 0.4px rgba(206,222,255,0.44),71.50vw 7.60vh 0 0px rgba(206,222,255,0.30),77.25vw 85.03vh 0 0px rgba(206,222,255,0.62),56.59vw 4.11vh 0 0.4px rgba(206,222,255,0.56),6.90vw 64.75vh 0 0px rgba(206,222,255,0.65),82.23vw 10.55vh 0 0px rgba(206,222,255,0.55);animation:night-twinkle 13s ease-in-out -5s infinite alternate-reverse}
.night-moon{position:absolute;top:110px;right:7vw;width:66px;height:66px;border-radius:50%;background:radial-gradient(circle at 35% 30%,rgba(110,126,159,.25) 0 5%,transparent 6%),radial-gradient(circle at 62% 64%,rgba(110,126,159,.17) 0 10%,transparent 11%),radial-gradient(circle at 35% 35%,#e1e8f4,#adbcd4 70%);box-shadow:0 0 40px 9px #b9ceff12,0 0 100px 30px #b9ceff08;opacity:.55}
.night-moon:after{content:'';position:absolute;inset:-3px -3px 6px 15px;border-radius:50%;background:#17243c;box-shadow:-5px 3px 9px #17243c}
@keyframes night-twinkle{from{opacity:.35}to{opacity:.85}}
@keyframes night-galaxy-breathe{from{opacity:.45}to{opacity:1}}
html.night-sky-paused #service-night-sky *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){#service-night-sky *{animation:none!important}}
@media(max-width:760px){.night-moon{width:44px;height:44px;right:5vw;opacity:.35}}

/* Holiday palette and lightweight seasonal header scene. */
html[data-service-theme="holiday"][data-service-theme]{--st-bg:#0b1920;--st-panel:#11272d;--st-raised:#19363b;--st-line:#355156;--st-text:#e6f1ed;--st-muted:#a8c4be;--st-accent:#efd49b;--st-tint:#3c3b2d;--st-on-accent:#28200c;--st-success:#8bddb4;--st-danger:#ff9e9e;--st-radius:12px}
html[data-service-theme="holiday"] .yv-topbar{border-bottom-color:#aa8d544f!important;background:linear-gradient(100deg,#11272d,#173138 60%,#11272d)!important}
#service-holiday-scene{position:fixed;overflow:hidden;pointer-events:none;z-index:1101;contain:layout paint}
#service-holiday-scene[hidden]{display:none}
.holiday-winter{position:absolute;right:6%;bottom:0;height:90%;max-width:135px;width:auto;opacity:.9}
.holiday-flight{position:absolute;top:0;left:100%;height:78%;width:190px;animation:holiday-flight 46s linear infinite}
.holiday-flight img{width:100%;height:100%;object-fit:contain}
.holiday-gift{position:absolute;left:51%;top:24%;width:14px;height:13px;border-radius:2px;background:#c94752;box-shadow:0 2px 5px #0004;opacity:0;animation:holiday-gift 46s linear infinite}
.holiday-gift:before{content:'';position:absolute;left:5px;top:0;width:4px;height:100%;background:#ffe2a1}
.holiday-gift:after{content:'';position:absolute;left:-1px;top:1px;width:16px;height:4px;border-radius:1px;background:#efd49b}
.holiday-flakes{position:absolute;inset:-70px 0 0;background-image:radial-gradient(circle,#e3f5ff85 1px,transparent 1.8px),radial-gradient(circle,#e3f5ff55 1px,transparent 1.5px);background-size:73px 49px,113px 67px;background-position:12px 9px,45px 25px;animation:holiday-snow 18s linear infinite;opacity:.5}
@keyframes holiday-flight{0%,3%{left:100%;transform:translateY(2px);opacity:0}4%{opacity:1}13%{transform:translateY(-2px)}25%{left:-200px;transform:translateY(2px);opacity:1}26%,100%{left:-200px;opacity:0}}
@keyframes holiday-gift{0%,12%{opacity:0;transform:translateY(0) rotate(0)}13%{opacity:1;transform:translateY(0) rotate(-12deg)}18%{opacity:1;transform:translateY(28px) rotate(10deg)}22%{opacity:0;transform:translateY(35px) rotate(10deg)}100%{opacity:0}}
@keyframes holiday-snow{to{transform:translateY(67px)}}
.holiday-tight .holiday-flight,.holiday-tight .holiday-gift{display:none}
html.holiday-motion-paused #service-holiday-scene *{animation-play-state:paused!important}
html.holiday-motion-paused .holiday-flight,html.holiday-motion-paused .holiday-gift{visibility:hidden}

/* Visible snowfall, animated snowman and an idle overlay over the work area. */
.holiday-flakes{opacity:.85;animation-duration:5s;background-image:radial-gradient(circle,#edf9ffdd 1.4px,transparent 2px),radial-gradient(circle,#e3f5ff99 1px,transparent 1.8px)}
.holiday-flakes-near{background-size:157px 89px,191px 113px;opacity:.55;animation-duration:8s;animation-delay:-3s}
.holiday-snowman{transform-box:fill-box;transform-origin:50% 100%;animation:holiday-sway 3s ease-in-out infinite alternate}
@keyframes holiday-sway{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
.holiday-preview .holiday-flight,.holiday-preview .holiday-gift{animation-duration:12s}
#service-holiday-saver{position:fixed;right:0;bottom:0;z-index:2147483000;overflow:hidden;background:radial-gradient(ellipse at 50% 100%,#244854,#0b1920 75%);pointer-events:auto}
#service-holiday-saver[hidden]{display:none}
#service-holiday-saver .holiday-winter{height:35%;max-width:320px;right:12%;bottom:5%}
#service-holiday-saver .holiday-flight{top:12%;width:300px;height:140px;animation-duration:30s}
#service-holiday-saver .holiday-gift{top:22%;animation-duration:30s}
#service-holiday-saver .holiday-flakes{background-size:113px 97px,179px 151px;inset:-160px 0 0;animation:holiday-idle-snow 9s linear infinite}
#service-holiday-saver .holiday-flakes-near{background-size:211px 181px,307px 199px;animation-duration:14s;opacity:.6}
@keyframes holiday-idle-snow{to{transform:translate(18px,151px)}}
.holiday-idle-caption{position:absolute;left:7%;bottom:12%;color:#efd49b;font:500 clamp(20px,3vw,36px)/1.4 sans-serif}
.holiday-idle-caption span{display:block;margin-top:10px;color:#a8c4be;font:13px/1.5 sans-serif}
html.holiday-motion-paused .holiday-snowman{animation-play-state:paused!important}
html.holiday-motion-paused .holiday-flakes{visibility:hidden}


#service-holiday-background{display:none;position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
html[data-service-theme="holiday"] body{isolation:isolate}
html[data-service-theme="holiday"] #service-holiday-background{display:block}
html.holiday-motion-paused #service-holiday-background{display:none}
html[data-service-theme="holiday"] .yv-main{background:transparent}

/* Continuous round snow and detailed seasonal artwork. */
.holiday-snow-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.holiday-flight img{visibility:hidden}
.holiday-flight:after{content:"";position:absolute;inset:0;background-image:url("/assets/holiday-sleigh-frames.png");background-size:400% 250%;background-position:0 50%;background-repeat:no-repeat;animation:holiday-gallop .72s steps(4) infinite}
@keyframes holiday-gallop{to{background-position-x:133.333333%}}
#service-holiday-scene .holiday-flight{width:165px;height:85%;top:3%}
#service-holiday-saver .holiday-flight{width:clamp(240px,30vw,440px);height:clamp(140px,17vw,240px);top:8%}
.holiday-tree{position:absolute;right:5%;bottom:2%;height:65%;width:min(48vw,520px);pointer-events:none}
.holiday-tree img{width:100%;height:100%;object-fit:contain}
.holiday-tree-lights{position:absolute;inset:17% 25% 20%;background:radial-gradient(circle at 50% 14%,#ffe4a5cc 0,transparent 5%),radial-gradient(circle at 33% 38%,#ffd48eaa 0,transparent 6%),radial-gradient(circle at 64% 53%,#ffe5a8bb 0,transparent 6%),radial-gradient(circle at 27% 75%,#ffe6a9bb 0,transparent 6%),radial-gradient(circle at 70% 84%,#ffdc8eaa 0,transparent 5%);mix-blend-mode:screen;animation:holiday-lights 3.8s ease-in-out infinite alternate}
@keyframes holiday-lights{from{opacity:.25}to{opacity:1}}
html.holiday-motion-paused .holiday-flight:after{animation-play-state:paused}
@media(max-width:600px){.holiday-tree{height:52%;width:70vw;right:0}.holiday-idle-caption{bottom:5%;font-size:20px}}

/* The fur brim overlaps the avatar itself, not the profile card. */
html[data-service-theme="holiday"] .yv-profile-card{overflow:visible}
html[data-service-theme="holiday"] .yv-profile-card .yv-avatar{position:relative;overflow:visible}
html[data-service-theme="holiday"] .yv-profile-card .yv-avatar::after{content:"";position:absolute;left:-3px;top:-20px;width:42px;height:38px;pointer-events:none;z-index:2;background:center/contain no-repeat url("/assets/holiday-profile-hat.svg?v=2-avatar");filter:drop-shadow(0 1px 1px #0004)}

html.service-night-idle #service-night-sky{z-index:2147483000;left:var(--night-left,0px);top:var(--night-top,0px);pointer-events:auto}

/* Calm night motion: independent twinkles, drifting mist and one rare meteor. */
.night-spark{position:absolute;width:2px;height:2px;border-radius:50%;background:#e2ecff;box-shadow:0 0 5px #ccdcff80;animation:night-spark-glow var(--twinkle,6s) ease-in-out infinite alternate;pointer-events:none}
@keyframes night-spark-glow{from{opacity:.18;transform:scale(.7)}to{opacity:.9;transform:scale(1.25)}}
#service-night-sky .night-galaxy{animation:night-galaxy-drift 65s ease-in-out infinite alternate}
@keyframes night-galaxy-drift{from{opacity:.55;transform:translate(-2%,1%) rotate(-28deg) scaleY(.32)}to{opacity:.95;transform:translate(3%,-2%) rotate(-24deg) scaleY(.38)}}
.night-cloud{position:absolute;width:440px;height:100px;background:radial-gradient(ellipse at 25% 65%,#b4c6e326,transparent 45%),radial-gradient(ellipse at 55% 45%,#b4c6e32b,transparent 51%),radial-gradient(ellipse at 78% 63%,#b4c6e322,transparent 45%);filter:blur(9px);pointer-events:none;animation:night-cloud-drift 48s ease-in-out infinite alternate}
.night-cloud-a{top:125px;right:1%;}.night-cloud-b{top:40%;left:4%;opacity:.6;animation-duration:71s;animation-delay:-23s}
@keyframes night-cloud-drift{from{transform:translateX(-85px)}to{transform:translateX(85px)}}
.night-meteor{position:absolute;left:62%;top:14%;width:105px;height:2px;background:linear-gradient(90deg,transparent,#dcecff);border-radius:100%;opacity:0;transform:rotate(145deg);animation:night-meteor-flight 29s linear infinite;animation-delay:5s;pointer-events:none}
@keyframes night-meteor-flight{0%,92%{opacity:0;transform:translate(0,0) rotate(145deg)}93%{opacity:.8}97%{opacity:0;transform:translate(-300px,210px) rotate(145deg)}100%{opacity:0;transform:translate(-300px,210px) rotate(145deg)}}
#service-night-header{position:fixed;pointer-events:none;overflow:hidden;z-index:1200;contain:layout paint}
#service-night-header[hidden]{display:none}
#service-night-header .night-moon{width:32px;height:32px;top:calc(50% - 16px);right:25px;opacity:.85}
#service-night-header .night-moon:after{inset:-2px -2px 4px 9px;background:#182435;box-shadow:-3px 2px 5px #182435}
#service-night-header .night-cloud{width:160px;height:40px;right:2px;top:calc(50% - 10px);filter:blur(3px);animation-duration:24s}
html.night-sky-paused #service-night-header *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){#service-night-header *,#service-night-sky *{animation:none!important}}

/* Natural sky: no evenly spaced star chain, opaque lunar disk or clipped mist. */
#service-night-sky .night-moon,#service-night-header .night-moon{background:url('/assets/night-moon-photo.png?v=1') 50% 44.5%/134% auto no-repeat;clip-path:circle(40.5% at 50% 50%);box-shadow:none;filter:drop-shadow(0 0 12px #d4e4ff24);border-radius:0;opacity:.9}
#service-night-sky .night-moon:after,#service-night-header .night-moon:after{display:none}
#service-night-sky .night-moon{width:100px;height:100px;top:85px}
#service-night-header .night-moon{width:45px;height:45px;top:calc(50% - 23px);right:32px}
#service-night-sky .night-cloud,#service-night-header .night-cloud{background:url('/assets/night-cloud.svg?v=1') center/contain no-repeat;filter:none;opacity:.36}
#service-night-sky .night-cloud{width:640px;height:240px}
#service-night-sky .night-cloud-a{top:65px;right:-2%}
#service-night-sky .night-cloud-b{top:36%;opacity:.22}
#service-night-header{mask-image:linear-gradient(to right,transparent,#000 24px,#000 calc(100% - 28px),transparent)}
#service-night-header .night-cloud{width:230px;height:86px;top:calc(50% - 36px);right:12px;opacity:.5;animation-name:night-header-mist}
@keyframes night-header-mist{from{transform:translateX(-30px)}to{transform:translateX(16px)}}
.night-spark{box-shadow:0 0 3px #d0dfff40}
@keyframes night-spark-glow{from{opacity:calc(var(--star-alpha,.6)*.45)}to{opacity:var(--star-alpha,.6)}}

/* The entire lunar sphere occludes stars, including its unlit side. */
#service-night-sky .night-moon,#service-night-header .night-moon{z-index:2;opacity:1}
#service-night-sky .night-cloud,#service-night-header .night-cloud{z-index:3}

/* Matrix header decoration stays between the title and account controls. */
