:root[data-theme=dark]{color-scheme:dark;background:#0c1018;color:#ecf0f8;--muted:#a0aabd;--border:#273043;--blue:#638fff;--surface:#121925;--raised:#182131}
[data-theme=dark] body{background:radial-gradient(ellipse at 70% 0,#15213a55,transparent 50%),#0c1018}
[data-theme=dark] :is(.sidebar,.topbar){background:#0f151f;border-color:#242d3e}
[data-theme=dark] :is(.panel,.stat,.content-card,.rule-card,.connection-card,.asset-card,.journey-card,.execution-log,.brand-form){background:#121925;border-color:#273043;box-shadow:0 4px 18px #0000000a}
[data-theme=dark] :is(h1,h2,h3,.brand,.profile strong,.table-title,.journey-card h2,.asset-card-body h3,.variant-body h3,.stat>strong,.automation-stats strong){color:#eef2fc}
[data-theme=dark] :is(p,label,legend,.subtle,.text-button,.breadcrumb,.breadcrumb strong,.nav-item,.field-hint,.eyebrow,.auto-note,.auto-empty p,.connection-form small,.brand-context-card p,.brand-context-card li,.journey-card p,.variant-caption,.asset-card-body small,.section-header p,.profile small){color:#a0aabd}
[data-theme=dark] :is(input,select,textarea){background:#0e1521;color:#e6ecf8;border-color:#303c52}
[data-theme=dark] :is(input,textarea)::placeholder{color:#74829a}
[data-theme=dark] :is(.workspace-picker select,.workspace-picker,.mobile-workspace,.topbar-workspace){background:#182131;color:#e6ecf8;border-color:#2c374a}
[data-theme=dark] .workspace-icon{background:#2c3241;color:#d3d9e6}
[data-theme=dark] :is(.secondary,.icon-button,.plan-card button,.file-button){background:#1a2435;color:#c6d2e8;border-color:#303d54}
[data-theme=dark] .primary{background:#638fff;border-color:#7aa0ff;color:#071126;box-shadow:0 3px 18px #4e7fff25;font-weight:650}
[data-theme=dark] :is(.nav-item.active,.tabs button.active){background:#223553;color:#92b3ff}
[data-theme=dark] .nav-item.active>span{color:#92b3ff}
[data-theme=dark] :is(.nav-item:hover,.text-button:hover){color:#e8efff;background:#1a2537}
[data-theme=dark] .brand-icon{background:#e8efff;color:#121925}
[data-theme=dark] .avatar{background:#343943;color:#f0e7d5;border-color:#121925;box-shadow:0 0 0 1px #394356}
[data-theme=dark] :is(.plan-card,.profile,.channel-options label,.section-header,.panel-bottom,.mini-post,.review-history,.review-history>div,.network-customise,.rule-bottom,.connection-bottom){border-color:#293346}
[data-theme=dark] .automation-hero{background:radial-gradient(ellipse at 90% 20%,#3454a048,transparent 65%),linear-gradient(115deg,#19253e,#14223c 65%,#1b2c4b);border-color:#354b73;box-shadow:0 10px 70px #050a1570}
[data-theme=dark] .automation-hero :is(h2,p){color:#eff4ff}
[data-theme=dark] .automation-hero p{color:#acbbd5}
[data-theme=dark] :is(.orbit-source>span,.orbit-core,.orbit-stages>span){background:#243758;border-color:#44618b;color:#b9d0ff;box-shadow:0 5px 20px #07112680}
[data-theme=dark] .orbit-core{background:linear-gradient(145deg,#345995,#233b63)}
[data-theme=dark] :is(.orbit-line,.orbit-branches){border-color:#455f87}
[data-theme=dark] :is(.orbit-label,.automation-hero .eyebrow){color:#9ab0d4}
[data-theme=dark] :is(.automation-stats>article,.readiness-card,.journey-card,.run-summary-strip,.asset-card-body,.variant-body){background:#121925;border-color:#273043}
[data-theme=dark] :is(.readiness-row,.readiness-bottom,.campaign-row,.journey-card-footer,.journey-card-meta,.asset-card-body,.studio-form>.section-header,.variant-actions,.run-selector,.brand-form>.section-header){border-color:#293346}
[data-theme=dark] :is(.campaign-glyph,.rule-icon,.journey-mini-flow>div,.stage-editor-card,.small-chip,.run-status,.asset-type,.brand-ai-status){background:#1d2a41;color:#adbfdf;border-color:#34425d}
[data-theme=dark] :is(.journey-mini-flow strong,.readiness-row strong,.campaign-row .table-title,.journey-stage-editor strong){color:#dce6f9}
[data-theme=dark] :is(.brand-context-card,.studio-ai-card){background:linear-gradient(145deg,#1b2942,#172135);border-color:#33435f}
[data-theme=dark] :is(.brand-context-card h2,.studio-ai-card h2){color:#edf3ff}
[data-theme=dark] :is(.studio-source,.studio-source-media,.asset-visual,.variant-media,.variant-pending){background:#0b111c;border-color:#2e3c55}
[data-theme=dark] :is(dialog,.simple-modal){background:#141d2b;color:#e0e8f8;border-color:#3a4963}
[data-theme=dark] dialog::backdrop{background:#020610b8;backdrop-filter:blur(8px)}
[data-theme=dark] :is(.modal-footer,.post-preview,.journey-stage-editor){background:#111a29;border-color:#2c3850}
[data-theme=dark] :is(.modal-header,.variant-recipe,.video-cuts,.journey-source-list>label,.stage-editor-card,.source-details){border-color:#303d55}
[data-theme=dark] :is(.notice,.auto-note,.field-notice,.import-success){background:#192840;border-color:#304866;color:#b0c3e2}
[data-theme=dark] :is(.data-table,.calendar,.calendar-panel,.week-calendar){background:#121925;color:#c7d3e8}
[data-theme=dark] :is(.data-table th,.day-label,.calendar .day-label,.bulk-bar,.filter-bar,.inbox-sidebar,.inbox-detail-header){background:#182131;color:#9eadc6;border-color:#2b364b}
[data-theme=dark] :is(.data-table td,.day,.week-day,.conversation-row,.inbox-detail,.inbox-layout,.message-meta,.inbox-compose){border-color:#2a3549}
[data-theme=dark] .data-table tr:hover td{background:#1c293d}
[data-theme=dark] :is(.day.muted,.day.other-month){background:#0e1420;color:#5f6e87}
[data-theme=dark] :is(.day.today,.calendar .day.today){background:#162b49}
[data-theme=dark] :is(.day button,.calendar-post){background:#203959;color:#b7cefa;border-color:#36547d}
[data-theme=dark] :is(.badge,.small-chip.approved-chip,.run-status.ready){background:#16372f;color:#7bddb2;border-color:#2e6653}
[data-theme=dark] :is(.badge.draft,.status-draft){background:#252e40;color:#bcc7dc;border-color:#3a475e}
[data-theme=dark] :is(.run-error,.hold-chip,.status-changes_requested){background:#3d2e25;color:#edc39b;border-color:#765943}
[data-theme=dark] :is(.execution-log ol:before,.budget-progress){background:#2b3750}
[data-theme=dark] .execution-log li i{background:#6b96fc;border-color:#1a2842}
[data-theme=dark] :is(.run-summary-strip span,.variant-meta,.variant-cta,.variant-recipe,.review-note,.journey-card-meta,.studio-source-caption,.media-upload-folder>span){color:#afc0dc}
[data-theme=dark] :is(.inbox-conversation,.conversation-row.active,.message-bubble,.saved-replies,.report-preview,.link-editor-row,.competitor-row){background:#18263b;border-color:#30415e;color:#c3d1e8}
[data-theme=dark] :is(.message-bubble.outgoing,.internal-note){background:#213858;color:#d6e5ff}
[data-theme=dark] :is(.search-input,.search-wrap,.toolbar input,.toolbar select,.tabs,.toolbar .tabs){background:#121c2b;color:#cad5eb;border-color:#2d3a52}
[data-theme=dark] footer{color:#8493ad;border-color:#263145}
[data-theme=dark] .capability-dot.ready{background:#68d5a7}
[data-theme=dark] .connection-result.error{color:#ffb6ad}
[data-theme=dark] .connection-result.success{color:#7bddb2}
[data-theme=dark] #toast{background:#e3edff;color:#162039;border:1px solid #aec7f5}
[data-theme=dark] :is(.integration-note p,.settings-panel p,.simple-modal p,.simple-modal li){color:#a6b5ce}
[data-theme=dark] .sidebar nav{scrollbar-color:#35435a transparent}
[data-theme=dark] .orbit-brain{background:linear-gradient(145deg,#31507e,#1c3152);border-color:#5277ac;color:#c7dcff;box-shadow:0 10px 40px #07112270}
[data-theme=dark] .orbit-brain small{color:#b7ccef}
[data-theme=dark] .workspace-add{background:#263650;color:#c0d6ff;border-color:#405578}

[data-theme=dark] .readiness-bottom{background:#151f31;color:#acbcd5}

.preview-banner{position:fixed;bottom:10px;left:50%;transform:translateX(-50%);z-index:50;border:1px solid #5978af;background:#17263fe8;color:#d3e2ff;border-radius:20px;width:max-content;padding:8px 12px;font:9px system-ui;letter-spacing:.4px;text-align:center;max-width:calc(100vw - 24px);backdrop-filter:blur(12px)}