html[data-theme=dark]{color-scheme:dark;--ink:#e7edf8;--muted:#a7b3c8;--line:#2c3c53;--surface:#152033;--canvas:#0b1220;--blue:#8ab7ff;--blue-dark:#9fc4ff;--blue-soft:#1b3458;--coral:#ffaaaa;--coral-soft:#3d222c;--violet:#c1adff;--violet-soft:#2e2748;--green:#72deb0;--text:var(--ink);--shadow:0 16px 40px rgba(0,0,0,.24);--theme-field:#0e192b;--theme-surface-soft:#111c2e;--theme-surface-raised:#1b2940;--theme-hover:#23364f;--theme-action:#2563d9;--theme-success:#72deb0;--theme-success-soft:#12362d;--theme-success-line:#2e6654;--theme-warning:#f0c478;--theme-warning-soft:#3b2c17;--theme-warning-line:#70552c;--theme-danger:#ffaaaa;--theme-danger-soft:#3d222c;--theme-danger-line:#794350}html[data-theme=dark] body{color:var(--ink);background:radial-gradient(circle at 80% -20%,rgba(58,119,221,.12),transparent 34rem),var(--canvas)}html[data-theme=dark] ::selection{color:#fff;background:#315d98}html[data-theme=dark] :is(button,summary,a,input,select,textarea):focus-visible{outline-color:#8ab7ff}html[data-theme=dark] :is(input,textarea)::placeholder{color:#97a6bd;opacity:1}html[data-theme=dark] input:not([type=checkbox]):not([type=radio]):not([type=color]),html[data-theme=dark] select,html[data-theme=dark] textarea{color:var(--ink);background:var(--theme-field);border-color:var(--line)}html[data-theme=dark] input:not([type=checkbox]):not([type=radio]):not([type=color]):focus,html[data-theme=dark] select:focus,html[data-theme=dark] textarea:focus{background:var(--theme-field);border-color:var(--blue)}html[data-theme=dark] :is(input[type=checkbox],input[type=radio]){accent-color:var(--theme-action)}html[data-theme=dark] .sg-panel input[readonly]{color:var(--muted)!important;background:var(--theme-surface-raised)!important}html[data-theme=dark] input::file-selector-button{color:var(--ink);background:var(--theme-surface-raised);border-color:var(--line)}html[data-theme=dark] .sidebar{background:rgba(17,28,46,.96)}html[data-theme=dark] .login-shell{background:radial-gradient(circle at 82% 8%,rgba(58,119,221,.14),transparent 28rem),radial-gradient(circle at 15% 95%,rgba(126,93,220,.1),transparent 25rem),var(--canvas)}html[data-theme=dark] :is(.login-card,.public-feature-grid article,.public-data-card,.legal-page){background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}html[data-theme=dark] :is(.public-header nav>a:not(.button),.nav-link,.signout){color:var(--muted)}html[data-theme=dark] :is(.public-hero>p:not(.eyebrow),.public-feature-grid p,.public-data-card p,.public-data-card li,.legal-page section p,.legal-page li){color:#bec9dc}html[data-theme=dark] :is(.login-security,.public-footer,.sidebar,.account,.legal-page header){border-color:var(--line)}html[data-theme=dark] :is(.login-security,.nav-icon,.chart-column>span,.metric-card p){color:var(--muted)}html[data-theme=dark] :is(.nav-link:hover,.connected-groups-menu>div a:hover){color:var(--ink);background:var(--theme-hover)}html[data-theme=dark] .nav-link.active{color:var(--blue)}html[data-theme=dark] .nav-count{color:#fff;background:#c84250}html[data-theme=dark] :is(.avatar,.group-avatar,.group-mini,.legal-page code){color:var(--blue);background:var(--blue-soft)}html[data-theme=dark] .rules-dot{border-color:var(--theme-surface-soft)}html[data-theme=dark] :is(.eyebrow,.published-head span){color:var(--blue)}html[data-theme=dark] :is(.connected-groups-menu>summary,.connected-groups-menu>div){color:var(--ink);background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}html[data-theme=dark] .connected-groups-menu>summary:after{color:var(--muted)}html[data-theme=dark] :is(.connected-groups-menu[open]>summary,.connected-groups-menu>div a[aria-current=page]){color:var(--blue);background:var(--blue-soft);border-color:#466890}html[data-theme=dark] :is(.panel,.metric-card,.group-card,.published-card,.system-error-card,.decision-card,.status-strip,.filter-row,.connections-intro,.connections-service,.workspace-tabs,.reporting-catalog-toolbar,.reporting-connection-statuses>span,.reporting-act-section,.reporting-draft-post-list article,.sg-control,.sg-table-wrap,.sg-folder,.sg-connection,.dg-card,.service-performance,.weekly-audit,.vk-task-queue){color:var(--ink);background:var(--surface);border-color:var(--line);box-shadow:0 8px 24px rgba(0,0,0,.12)}html[data-theme=dark] :is(.rules-card,.lifetime-window,.lifetime-summary-card,.lifetime-note,.group-card dl,.creative-groups-list article,.creative-groups-form,.creative-media,.creative-history-item,.creative-submit-groups label,.reporting-catalog-client,.reporting-catalog-platform,.reporting-value,.reporting-edit-field,.reporting-platform-card,.reporting-cleanup-items article,.reporting-wall-fill-row,.reporting-readiness,.reporting-readiness span,.reporting-cleanup-groups>button,.group-purpose-options,.modal .group-purpose-option,.sg-empty,.dg-empty,.dg-candidate,.dg-connection-status,.saved-secret-status,.empty-state){background:var(--theme-surface-soft);border-color:var(--line)}html[data-theme=dark] .empty-state.compact{background:transparent}html[data-theme=dark] :is(.system-error-meta span,.decision-footer span,.action.rejected,.sg-badge,.reporting-badge,.reporting-cleanup-empty,.modal-close,.workspace-tabs button span,.reporting-tabs,.sg-segments){color:var(--muted);background:var(--theme-surface-raised);border-color:var(--line)}html[data-theme=dark] :is(.status-strip>div,.sg-tabs,.sg-table td,.sg-delivery,.sg-modal-footer,.dg-history,.connections-table th,.connections-table td,.vk-task-row,.reporting-refresh-action-row,.reporting-unallocated-list,.reporting-cleanup-body,.reporting-cleanup-preview,.reporting-wall-fill-results,.reporting-posts-modal>header,.reporting-posts-modal>footer,.reporting-act-modal>header,.reporting-act-modal>footer,.published-card>div:last-child){border-color:var(--line)}html[data-theme=dark] .chart{background:repeating-linear-gradient(180deg,transparent 0,transparent 45px,#26354b 46px)}html[data-theme=dark] .reporting-progress>div{background:var(--theme-surface-raised)}html[data-theme=dark] .loading-grid i{background-image:linear-gradient(100deg,#172238 20%,#24334c 40%,#172238 60%)}html[data-theme=dark] :is(.group-card a,.connections-table th,.connections-table td small,.connections-unknown,.creative-grid label small,.creative-picker-menu button span,.creative-picker-menu p,.creative-history-main small,.reporting-catalog-grid label>span,.reporting-action-row label,.reporting-wall-action-row small,.reporting-unallocated-list article small,.reporting-unallocated-list>p,.reporting-cleanup-heading p,.reporting-cleanup-footer p,.reporting-cleanup-groups button small,.reporting-cleanup-controls label,.reporting-cleanup-preview-head small,.reporting-cleanup-items article small,.reporting-cleanup-items article em,.reporting-cleanup-empty,.reporting-wall-fill-row small,.reporting-wall-fill-cell,.reporting-draft-post-list em,.reporting-value small,.reporting-creative-title small,.reporting-platform-head small,.reporting-edit-note,.reporting-edit-field,.reporting-edit-creative label,.reporting-edit-platform-head label,.reporting-edit-platform-fields label,.sg-panel small,.sg-control p,.sg-note,.sg-heading p,.sg-count,.sg-table th,.sg-empty p,.sg-pagination,.sg-stat span,.sg-connection>p,.sg-selection-total,.sg-muted,.dg-metrics,.dg-muted){color:var(--muted)}html[data-theme=dark] .sg-folder-toggle>.sg-icon:first-child{color:var(--muted)}html[data-theme=dark] :is(.system-error-card>p,.post-text,.published-card>p,.creative-groups-form label,.creative-grid label,.creative-picker-menu button,.creative-media,.creative-history-main span,.creative-submit-footer,.reporting-connection-statuses>span,.reporting-catalog-grid label,.reporting-catalog-platform label,.reporting-form label,.reporting-import-form label,.reporting-act-fields label,.reporting-search,.reporting-selection-bar>label,.reporting-selection-note,.reporting-unallocated-list>div,.reporting-cleanup-preview-head>label,.reporting-wall-fill-summary,.reporting-wall-fill-all,.group-purpose-options legend,.sg-folder-toggle,.sg-selection-total b,.dg-scan-counts,.dg-connection-status,.saved-secret-status){color:#bec9dc}html[data-theme=dark] :is(.connections-table td a,.creative-groups-list a,.creative-history-main a,.reporting-post-links a,.sg-table td>a,.sg-delivery a,.sg-text-button,.sg-stat b,.dg-rendered a,.dg-panel a){color:var(--blue)}html[data-theme=dark] :is(.button.secondary,.sg-icon-button,.dg-order-buttons button,.mobile-menu){color:var(--ink);background:var(--theme-surface-raised);border-color:var(--line)}html[data-theme=dark] :is(.button.secondary:hover:not(:disabled),.sg-panel .button.secondary:hover:not(:disabled),.sg-icon-button:hover:not(:disabled),.dg-order-buttons button:hover:not(:disabled)){color:var(--ink);background:var(--theme-hover);border-color:#526b8d}html[data-theme=dark] .button.primary{color:#fff;background:linear-gradient(180deg,#2569de,#1f5dc7);border-color:transparent;box-shadow:0 7px 18px rgba(22,63,137,.24)}html[data-theme=dark] .button.primary:hover:not(:disabled){color:#fff;background:#235bbc}html[data-theme=dark] :is(.group-tabs button,.workspace-tabs button,.reporting-tabs button,.sg-segments button,.sg-tabs button){color:var(--muted);border-color:var(--line)}html[data-theme=dark] :is(.group-tabs button.selected,.workspace-tabs button.active,.creative-history-toolbar .button.active){color:#fff;background:var(--theme-action);border-color:var(--theme-action)}html[data-theme=dark] :is(.workspace-tabs button:hover:not(.active),.sg-tabs button:hover){color:var(--blue);background:var(--theme-hover)}html[data-theme=dark] :is(.reporting-tabs button.active,.sg-segments button[aria-pressed=true]){color:var(--blue);background:var(--theme-hover);box-shadow:0 3px 10px rgba(0,0,0,.15)}html[data-theme=dark] .sg-tabs button.active{color:var(--blue);border-bottom-color:var(--blue)}html[data-theme=dark] :is(.workspace-tabs button.active span,.reporting-tabs span,.reporting-unallocated-button span){color:#c4d9ff;background:#294a78}html[data-theme=dark] .switch{background:#53637a}html[data-theme=dark] .switch.on{background:var(--theme-action)}html[data-theme=dark] :is(.creative-picker-selected,.creative-picker-menu){color:var(--ink);background:var(--theme-field);border-color:var(--line)}html[data-theme=dark] :is(.creative-picker-menu button:hover,.creative-picker-menu button:focus-visible){background:var(--theme-hover)}html[data-theme=dark] :is(.modal,.reporting-act-modal,.reporting-posts-modal){color:var(--ink);background:var(--theme-surface-soft);box-shadow:0 24px 70px rgba(0,0,0,.5)}html[data-theme=dark] :is(.reporting-act-modal>header,.reporting-act-modal>footer,.reporting-posts-modal>header,.reporting-posts-modal>footer){background:var(--surface)}html[data-theme=dark] :is(.modal-backdrop,.creative-submit-backdrop){background:rgba(3,8,18,.72)}html[data-theme=dark] .modal-close:hover:not(:disabled){color:var(--ink);background:var(--theme-hover)}html[data-theme=dark] :is(.toast button:hover,.sg-alert button:hover,.dg-error button:hover){background:rgba(255,255,255,.08)}html[data-theme=dark] :is(.sg-table th,.sg-table tr:hover td,.sg-folder>summary:hover){background:var(--theme-surface-raised)}html[data-theme=dark] .sg-stat{background:linear-gradient(135deg,var(--surface) 65%,#1a2e4c);border-color:var(--line)}html[data-theme=dark] .sg-panel .sg-source-choice{color:var(--ink);background:var(--theme-surface-soft);border-color:var(--line)}html[data-theme=dark] :is(.sg-panel .sg-source-choice:hover,.sg-panel .sg-source-choice.is-selected,.dg-candidate.is-selected,.reporting-cleanup-groups>button.selected,.reporting-cleanup-groups>button:hover:not(:disabled)){color:var(--ink);background:var(--blue-soft);border-color:#507cb3}html[data-theme=dark] :is(.sg-panel .sg-progress,.dg-rendered,.dg-message,.sg-notice,.security-note,.vk-task-result,.reporting-draft-row.sent){color:var(--ink);background:var(--blue-soft);border-color:#375d89}html[data-theme=dark] :is(.reporting-creative-title>span,.reporting-platform-head>span,.reporting-badge.sent){color:#b8d1ff;background:var(--blue-soft)}html[data-theme=dark] .reporting-draft-row:hover{border-color:#507cb3;box-shadow:0 9px 24px rgba(0,0,0,.16)}html[data-theme=dark] :is(.sg-panel .sg-progress progress,.dg-scan-status progress){accent-color:#639cff}html[data-theme=dark] .dg-scan-status.is-complete progress{accent-color:var(--theme-success)}html[data-theme=dark] :is(.toast.success,.status-ok,.system-error-head .resolved,.verdict.unique,.creative-groups-list article>span.connected,.creative-result,.creative-history-actions code,.creative-history-actions .creative-erid-token,.reporting-complete-button,.reporting-readiness.ready,.reporting-cleanup-groups button em.ready,.reporting-cleanup-items article.deleted,.reporting-posts-cleaned,.reporting-badge.ready,.reporting-draft-post-list article.deleted,.connections-status.is-connected,.sg-badge.on,.dg-connection-status.is-connected,.saved-secret-status.connected,.weekly-audit.ok){color:var(--theme-success);background:var(--theme-success-soft);border-color:var(--theme-success-line)}html[data-theme=dark] :is(.creative-history-actions .creative-erid-token:hover,.reporting-complete-button:hover:not(:disabled)){color:#9bf1cb;background:#1a493b;border-color:#478d73}html[data-theme=dark] :is(.group-ok,.creative-client-note,.reporting-refresh-heading small,.reporting-readiness span.ok b,.reporting-cleanup-items article.deleted em){color:var(--theme-success)}html[data-theme=dark] .creative-result span{color:#b3d5c8}html[data-theme=dark] .creative-history-actions .creative-erid-token:focus-visible{outline-color:var(--theme-success)}html[data-theme=dark] .sg-control{border-left-color:#71829b}html[data-theme=dark] .sg-control.is-on{border-left-color:var(--theme-success)}html[data-theme=dark] .reporting-connection-statuses i{background:var(--theme-warning);box-shadow:0 0 0 3px var(--theme-warning-soft)}html[data-theme=dark] .reporting-connection-statuses .connected i{background:var(--theme-success);box-shadow:0 0 0 3px var(--theme-success-soft)}html[data-theme=dark] :is(.status-warn,.no-ai-badge,.verdict.blocked,.action.pending,.creative-groups-list article>span:not(.connected),.creative-groups-safety,.creative-submit-warning,.reporting-unallocated-list article,.reporting-readiness.warning,.reporting-cleanup-groups button em.missing,.reporting-cleanup-items article.excluded,.reporting-badge.blocked,.reporting-future-note,.weekly-audit.issues){color:var(--theme-warning);background:var(--theme-warning-soft);border-color:var(--theme-warning-line)}html[data-theme=dark] :is(.creative-media small,.dg-warning){color:var(--theme-warning)}html[data-theme=dark] :is(.login-error,.toast.error,.system-error-head .open,.verdict.duplicate,.action.failed,.connections-status.is-missing,.connections-unavailable,.reporting-act-errors,.reporting-rejection-note,.reporting-cleanup-items article.error,.reporting-draft-post-list article.error,.reporting-badge.rejected,.reporting-badge.error,.sg-alert,.dg-error){color:var(--theme-danger);background:var(--theme-danger-soft);border-color:var(--theme-danger-line)}html[data-theme=dark] :is(.group-error,.danger-link,.sg-panel .sg-danger,.sg-panel .sg-error-text,.reporting-readiness span.error b,.reporting-cleanup-items article small.error-text,.reporting-cleanup-items article.error em){color:var(--theme-danger)}html[data-theme=dark] :is(.button.danger,.button.danger.secondary-danger,.button.secondary-danger,.secondary-danger,.reporting-cancel-button,.reporting-row-delete,.sg-panel .sg-icon-button.sg-danger,.sg-panel .button.sg-danger,.dg-panel .button.dg-delete-key){color:var(--theme-danger);background:var(--theme-danger-soft);border-color:var(--theme-danger-line)}html[data-theme=dark] :is(.button.danger:hover:not(:disabled),.button.secondary-danger:hover:not(:disabled),.reporting-cancel-button:hover:not(:disabled),.reporting-row-delete:hover:not(:disabled),.sg-panel .sg-icon-button.sg-danger:hover:not(:disabled),.sg-panel .button.sg-danger:hover:not(:disabled),.dg-panel .button.dg-delete-key:hover:not(:disabled)){color:#ffcccc;background:#542e3a;border-color:#a76676}html[data-theme=dark] .reporting-badge.sending{color:var(--violet);background:var(--violet-soft)}html[data-theme=dark] .reporting-cleanup-items article small.error-text,html[data-theme=dark] .reporting-cleanup-items article.error em,html[data-theme=dark] .reporting-cleanup-items article.error small.error-text{color:var(--theme-danger)}.theme-toggle.button{width:var(--control-height);height:var(--control-height);min-width:var(--control-height);padding:0;flex:0 0 var(--control-height);border-radius:var(--control-radius);color:var(--muted);background:var(--surface);border-color:var(--line);box-shadow:none}.theme-toggle.button:hover:not(:disabled){color:var(--blue);background:var(--blue-soft);border-color:var(--blue)}.theme-toggle svg{display:block;flex-shrink:0}.theme-toggle .theme-toggle-sun,html[data-theme=dark] .theme-toggle .theme-toggle-moon{display:none}html[data-theme=dark] .theme-toggle .theme-toggle-sun{display:block}.theme-toggle-global{position:fixed;z-index:25;top:24px;right:24px}body:has(.app-shell)>.theme-toggle-global,body:has(.public-header)>.theme-toggle-global{display:none}.public-header nav>.theme-toggle{margin-left:2px}.public-header nav{flex-shrink:0}.public-header nav>.button{white-space:nowrap}.legal-page h1{overflow-wrap:anywhere}@media (min-width:761px){.page-header .header-actions{flex-shrink:0}}@media (max-width:760px){.page-header{position:relative}.page-header .mobile-menu{top:0;left:0}.page-header>div:first-of-type{padding-right:54px}.page-header .header-actions>.theme-toggle{position:absolute;top:0;right:0}.theme-toggle-global{top:18px;right:18px}.login-shell{padding-top:80px}}@media (max-width:420px){.public-header{align-items:center;gap:10px}.public-brand{min-width:0;gap:8px}.public-brand .brand-mark{width:32px;height:32px;flex:0 0 32px;font-size:14px}.public-brand b{font-size:14px}.public-brand small{display:none}.public-header nav{gap:8px}.public-header nav>a.button{padding:10px 12px}}