/* A second Atelier palette; layout and operational controls are unchanged. */
.atelier-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;min-height:33px;padding:6px 11px;font-size:10px;border-radius:100px;margin-left:10px;flex-shrink:0}
.atelier-theme-toggle [data-theme-icon]{font-size:17px;line-height:1;width:17px}
.atelier-login-theme{position:absolute;top:22px;right:28px}
html[data-theme=dark]{color-scheme:dark;--bg:#1a1710;--panel:#252017;--line:#443d30;--text:#eeebe5;--muted:#b8b2a5;--gold:#d7c5a1;--atelier-ink:#eeebe5;--atelier-sage:#373023;--atelier-accent:#e6ba75;--atelier-shadow:0 5px 24px #00000016}
html[data-theme=dark] body::before{background:radial-gradient(ellipse at 95% 0,#4c412c45,transparent 45%)}
html[data-theme=dark] ::selection{background:#70644c;color:#fff}
html[data-theme=dark] a{color:#d2c2a2}html[data-theme=dark] a:hover{color:#ede3ce}
html[data-theme=dark] aside{background:#211d14;border-color:var(--line)}
html[data-theme=dark] .wordmark,html[data-theme=dark] .atelier-workspace-label strong{color:#e6e1d7}
html[data-theme=dark] .wordmark small,html[data-theme=dark] aside nav .nav-group{color:#a59e8f}
html[data-theme=dark] aside nav button,html[data-theme=dark] aside nav a{color:#b9b3a6!important}
html[data-theme=dark] aside nav button:hover,html[data-theme=dark] aside nav a:hover{background:#383225!important;color:#eee9e0!important}
html[data-theme=dark] aside nav button.active,html[data-theme=dark] aside nav a[aria-current=page]{background:#443c2b!important;color:#e5d7bc!important}
html[data-theme=dark] aside nav button.active::after,html[data-theme=dark] aside nav a[aria-current=page]::after{background:#d5c198}
html[data-theme=dark] nav span#review-count{background:#544b39;color:#e6d8bc}
html[data-theme=dark] .aside-bottom,html[data-theme=dark] .atelier-workspace-label,html[data-theme=dark] footer{border-color:var(--line);color:#afa99e}
html[data-theme=dark] .aside-bottom button,html[data-theme=dark] footer a{color:#c2b9a8}
html[data-theme=dark] .atelier-workspace-label>span:first-child{background:#40392b;color:#dcd1ba}
html[data-theme=dark] .eyebrow,html[data-theme=dark] main>header .eyebrow,html[data-theme=dark] .panel .eyebrow{color:#b8ad96}
html[data-theme=dark] button,html[data-theme=dark] .primary{background:#342d20;border-color:#524938;color:#e4dbca}
html[data-theme=dark] button:hover:not(:disabled){background:#4a4130;border-color:#857b68;box-shadow:0 4px 12px #0002}
html[data-theme=dark] button.primary,html[data-theme=dark] .primary{background:#bfae8b;border-color:#bfae8b;color:#2d2413}
html[data-theme=dark] button.primary:hover:not(:disabled){background:#d6c8ab;border-color:#d6c8ab;color:#271f10}
html[data-theme=dark] :is(input,select,textarea){background:#201b11;border-color:#524938;color:#ebe5d8}
html[data-theme=dark] :is(input,select,textarea):focus{background:#2d2619;border-color:#ab9b7c;box-shadow:0 0 0 4px #af9b741c}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#a49a86}
html[data-theme=dark] label{color:#cdc3af}
html[data-theme=dark] input[type=file]::file-selector-button{background:#433c2d;border-color:#625946;color:#e8dfcd}
html[data-theme=dark] :is(.panel,.card,.stat,.toolbar,.calendar-scroll,.inspiration-card,.atelier-history-grid>.panel){background:var(--panel);border-color:var(--line)}
html[data-theme=dark] :is(.notice,#banner,.worker-check-bar,.automation-result,.automation-run .outcome,.atelier-recovery,.connection-grid details,.brand-details){background:#332d21;border-color:#504633;color:#d0c3a8}
html[data-theme=dark] .stat:first-child{background:#3b3427;border-color:#534a37}html[data-theme=dark] .stat:nth-child(2){background:#382f22;border-color:#534531}html[data-theme=dark] .stat:nth-child(3){background:#363128;border-color:#50493c}html[data-theme=dark] .stat:nth-child(4){background:#3a3221;border-color:#534935}
html[data-theme=dark] .stat strong{color:#ede3cf}html[data-theme=dark] .stat::after{color:#b6a78a}
html[data-theme=dark] .stat{border-top-color:var(--line)!important}
html[data-theme=dark] :is(.stat small,.stat small:first-child,.row p,.card h3,.activity li,.drop-zone strong,.empty h2,.calendar-toolbar h2,.calendar-day>strong,.dialog-head h2,.editor-grid h3,.automation-top h2,.automation-action h3,.automation-action h4,.creative-page main>header h1,#chatgpt-compose h2,.inspiration-upload h2,.inspiration-drop strong,.library-heading h2,.inspiration-card-body h3,.login-card h1,.atelier-legal h1){color:#e0d6c2}
html[data-theme=dark] :is(.help,.page-description,.row small,.card-body p,.automation-action p,.automation-help,.automation-empty,.automation-install,.automation-run small,.automation-run-body p,.worker-check-bar p,.inspiration-drop p,.inspiration-drop small,.inspiration-card-body p,#chatgpt-jobs .help,#chatgpt-jobs [data-paste-target],#chatgpt-prompt-form>p:not([role=status]),.atelier-reference-stage>.help,.brand-details summary,.brand-details p,.atelier-legal p){color:#c0b6a3!important}
html[data-theme=dark] :is(.toolbar .muted,.stat small:last-child,.activity small,.library-heading>span,.creative-page main>p.muted,.creative-connection>summary,.creative-connection [role=status],.analysis,.editor-preview .help,.check .muted,.creative-steps,.inspiration-drop,.archive-toggle,#chatgpt-jobs [data-archive-chatgpt],.login-card .muted,.workspace-loading p:last-child,.calendar-day>small,.workspace-legend,.calendar-post-copy small,.calendar-deliveries summary){color:#b5aa93}
html[data-theme=dark] :is(.row,.activity li,td,.creative-page #chat-form,.automation-run,.automation-progress-row){border-color:var(--line)}
html[data-theme=dark] .activity li::before{background:#bbac8d;border-color:#443c2c}
html[data-theme=dark] :is(.workspace-quick-actions a,.toolbar select,.toolbar input,.card-body button,.empty,.drop-zone,.file-row,.upload-topline button,.calendar-toolbar button,.dialog-head,.dialog-head .close,.editor-grid textarea,.tabs button.active,.delivery-technical,.automation-connection,.discovery-single-actions button,.creative-connection,.creative-connection[open],#chatgpt-compose,#chatgpt-prompt,.inspiration-drop,.chat-message,.chat-assistant,.creative-page .attach-control,.design-preview-tabs [aria-selected=true],#design-preview,.login-card){background:#2c271c!important;border-color:#524936;color:#d8ceb9}
html[data-theme=dark] :is(.preview,.editor-preview,.tabs,.editor-grid .tabs,.check,.editor-grid .check,.inspiration-preview,.atelier-reference-stage,.design-edit-preview,.design-image-stage,.design-preview-tabs button,#design-preview-image,.creative-page #chat-messages,.design-edit-chat,#chatgpt-jobs>.panel,.atelier-job-history){background:#332d22!important;border-color:#514734;color:#d4c7ad}
html[data-theme=dark] :is(.check:has(:checked),.editor-grid .check:has(:checked),#chatgpt-prompt-form .check:has(:checked),.chat-user,.creative-steps span,#chatgpt-jobs [data-recover-chatgpt],#chatgpt-jobs [data-paste-target]){background:#443b2a!important;border-color:#766748;color:#e4d6b9}
html[data-theme=dark] :is(.inspiration-upload,#upload-dialog.inline-upload,.drop-zone.drag,.inspiration-drop.drag,.delivery-status-panel){background:#393122!important;border-color:#584d36}
html[data-theme=dark] :is(.delivery-status-panel .help,.delivery-technical summary,.dialog-head .eyebrow,.tabs button,.creative-steps .current,.inspiration-card-body h3,.atelier-reference-stage>.eyebrow,#chatgpt-prompt-form label:first-child,#chatgpt-jobs>.panel>p:first-child,#chatgpt-jobs>.panel>strong,.chat-message strong,.login-card label,.login-card .eyebrow,.workspace-loading .eyebrow,details,details>summary,.connection-grid details summary,.atelier-recovery summary,.atelier-job-history>summary){color:#cfbf9f}
html[data-theme=dark] :is(.library-heading>span,.inspiration-preview span){background:#403827;border-color:#60553e;color:#e0d4bb}
html[data-theme=dark] .calendar{background:#433b2b}html[data-theme=dark] .day-head{background:#362f21;color:#beae8d}html[data-theme=dark] .calendar>div:empty{background:#252118}
html[data-theme=dark] .calendar-day{background:#2b261b!important}html[data-theme=dark] .calendar-day.slot-rest{background:#242017!important}
html[data-theme=dark] .calendar-day.slot-image>small:first-of-type{color:#c3af87}html[data-theme=dark] .calendar-day.slot-video>small:first-of-type{color:#c5b38f}
html[data-theme=dark] :is(.calendar-post,.calendar-day button.calendar-post,.calendar-post.confirmed){background:#403726;border-color:#63563b}html[data-theme=dark] .calendar-post.complete{background:#4a3f29;border-color:#746548}html[data-theme=dark] .calendar-post.attention{background:#453725;border-color:#795e37}html[data-theme=dark] .calendar-post:hover{background:#54472e;border-color:#937f57}
html[data-theme=dark] :is(.calendar-post-copy strong,.calendar-day .calendar-post-copy strong){color:#e5d6b9}html[data-theme=dark] :is(.calendar-post-copy>span,.calendar-post.complete .calendar-post-copy>span){color:#d3bf96}html[data-theme=dark] .calendar-post.attention .calendar-post-copy>span{color:#efc17e}
html[data-theme=dark] :is(.calendar-post-thumb,.calendar-deliveries[open]){background:#524731}
html[data-theme=dark] .badge{background:#3d3524;color:#cdbd9d;border-color:#584d38}
html[data-theme=dark] :is(.badge.published,.badge.approved,.badge.complete,.badge.verified){background:#463b25;color:#dcc9a3;border-color:#67583a}
html[data-theme=dark] :is(.badge.scheduled,.badge.provider_scheduled,.badge.server_queued,.badge.awaiting_delivery,.badge.submitted,.badge.publishing){background:#3f3521;color:#d8c7a5;border-color:#67593e}
html[data-theme=dark] .badge.draft{background:#463820;color:#e4c486;border-color:#6c5732}html[data-theme=dark] :is(.badge.needs_review,.badge.uncertain,.badge.preflight_failed,.badge.rejected,.badge.failed){background:#4b3026;color:#f2b291;border-color:#81533a}
html[data-theme=dark] dialog,html[data-theme=dark] dialog#editor-dialog{background:#262116;border-color:#554a34;box-shadow:0 30px 100px #0006}html[data-theme=dark] dialog::backdrop{background:#090704a8}
html[data-theme=dark] .editor-publish-actions{background:#2e281cf5;border-color:#615338;box-shadow:0 -6px 20px #0002}
html[data-theme=dark] .editor-lock-note{background:#3b3220;border-color:#6a5933;color:#e2c688}
html[data-theme=dark] .error,html[data-theme=dark] #reject{color:#f0a283}html[data-theme=dark] #approve{color:#dbc7a0;border-color:#978259}
html[data-theme=dark] table{color:#d0c4ac}html[data-theme=dark] th{background:#342e21;color:#bcae93}html[data-theme=dark] tr:hover td{background:#372f20}
html[data-theme=dark] .automation-connection.connected{background:#453b26;border-color:#796846;color:#decca7}html[data-theme=dark] :is(.automation-run strong,.automation-run summary::after,.automation-run .outcome.success){color:#dac69f}html[data-theme=dark] .automation-run .outcome.attention{background:#433720;color:#e7c386}
html[data-theme=dark] .login,html[data-theme=dark] .workspace-loading{background:var(--bg)}html[data-theme=dark] .atelier-legal main{background:var(--panel);border-color:var(--line)}
html[data-theme=dark] .mobile-menu-toggle{background:#443c2c!important;border-color:#645943;color:#e3d6bc}
html[data-theme=dark] #toast{background:#483e2b;border-color:#7a6c51;color:#f5efe3}
@media(max-width:760px){.atelier-workspace-label{gap:6px}.atelier-theme-toggle{padding:5px 9px;margin-left:auto;font-size:9px}.atelier-workspace-label .atelier-date{display:none}html[data-theme=dark] aside{background:#211d14f5}html[data-theme=dark] aside nav{background:#2d271b;border-color:#554a33}.atelier-login-theme{top:17px;right:20px}}
@media(max-width:420px){.atelier-workspace-label>span:nth-child(3){display:none}.atelier-theme-toggle [data-theme-label]{font-size:9px}}
