/* Theme affects interface surfaces only. Never invert/filter images, canvas,
   colour-picker gradients, swatches or generated artwork. */
html[data-theme=dark]{color-scheme:dark}
html[data-theme=light]{color-scheme:light;color:#173046;background:#f2f6fa;--panel:#fff;--panel2:#edf3f8;--line:#cbd8e4;--muted:#52677c;--accent:#0f766e;--accent2:#087f75;--danger:#b42340}
.display-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0;position:relative;margin-left:auto}
.tool-nav>.display-controls{align-self:center;padding:2px 4px}.workspace>header .header-actions{align-items:center;flex-shrink:0;gap:8px}.workspace>header>div:first-child{min-width:0}.workspace>header h1{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.display-controls .theme-switch{box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;width:52px;height:28px;min-height:0;margin:0;padding:0 7px;border:1px solid #3c5a70;border-radius:99px;background:#163045;color:#b8d9ec;cursor:pointer}
.display-controls .theme-switch i{font-size:11px;line-height:1}.theme-switch-thumb{position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#e7f1fa;box-shadow:0 1px 4px #0005;transition:transform .18s ease}.display-controls .theme-switch[aria-checked=true] .theme-switch-thumb{transform:translateX(24px)}
.display-controls .customer-view-toggle{box-sizing:border-box;display:grid;place-items:center;width:30px;height:30px;min-height:0;padding:0;border:1px solid #345269;border-radius:9px;background:#102637;color:#a8c8dd;cursor:pointer;font-size:16px}.display-controls .customer-view-toggle[aria-pressed=true]{border-color:#35c8b6;background:#123e40;color:#6cf2dc}.display-controls button:focus-visible{outline:2px solid #36c4b2;outline-offset:3px}.display-controls button:disabled{opacity:.5;cursor:wait}.customer-view-indicator{font-size:10px;color:#5ce5d1;white-space:nowrap}.display-control-status{position:absolute;right:0;top:calc(100% + 7px);z-index:110;max-width:220px;font-size:11px;line-height:1.5;color:#d5f4f3;background:#183d4d;border:1px solid #3b6677;border-radius:8px;padding:7px 10px;white-space:normal}.display-control-status:empty{display:none}
html[data-theme=light] body{background:#f2f6fa;color:#173046}
html[data-theme=light] :is(.workspace,.recolor-page,.vector-page,.auth,.auth-page){background:#f2f6fa;color:#173046}
html[data-theme=light] :is(.sidebar,.tool-nav,.workspace>.tool-nav){background:#fff;border-color:#d0dce7;color:#213b50}
html[data-theme=light] :is(h1,h2,h3,h4,strong,label,summary){color:inherit}
html[data-theme=light] :is(a,.link-button){color:#0b7169}
html[data-theme=light] p{color:#4e677c}
html[data-theme=light] :is(small,.muted,.empty p,.compose-meta,.quick-head,.crop-help,.crop-disclaimer,.erase-note,.lab-muted){color:#52677b}
html[data-theme=light] :is(input:not([type=range]):not([type=checkbox]):not([type=color]):not([type=radio]),textarea,select){background:#fff;color:#173046;border-color:#bdcedc}
html[data-theme=light] :is(input,textarea)::placeholder{color:#667c90}
html[data-theme=light] button{color:#234257;border-color:#bdcedc}
html[data-theme=light] :is(.primary,.new-chat,.send,button.primary,a.primary){background:#0f766e;color:#fff;border-color:#0f766e}
html[data-theme=light] :is(.primary,.new-chat,.send):hover{background:#0c655e}
html[data-theme=light] :is(.panel,.card,.inspector-card,.lab-card,.lab-history-row,.set-card,.setup>*,.recolor-card,.recolor-target-editor,.vector-canvas-card,.vector-controls,.vector-result,.vector-new-job,.vector-advanced,.vector-history,.vector-actionbar,.recolor-ai-results,.recolor-shading,.capture-guide,.topup-card){background:#fff;color:#173046;border-color:#cedbe6;box-shadow:none}
html[data-theme=light] :is(dialog,#eraseDialog,#cropDialog,#labZoom,#sheetDialog,.viewer,.rename-chat-dialog,.recolor-confirm,.recolor-image-dialog,.recolor-color-dialog,.remover-notice-dialog){background:#fff;color:#173046;border-color:#b9cedc;box-shadow:0 22px 80px #19384d33}
html[data-theme=light] dialog::backdrop{background:#1b344a66}
html[data-theme=light] :is(dialog header,dialog footer,#eraseDialog footer,#cropDialog footer,.recolor-confirm-price){background:#fff;color:#173046;border-color:#d1dce5}
html[data-theme=light] :is(dialog p,#eraseDialog p,#erasePrice,#cropPrice,#cropStatus,#cropDialog label,.crop-prompt-label small,.quick-source-dialog>p){color:#4e677c}
html[data-theme=light] :is(#eraseDialog input,#cropDialog input,#cropDialog select,#cropDialog textarea,.rename-chat-input-wrap input,.recolor-color-fields input){background:#f8fbfd;color:#173046;border-color:#b6cbd9}
html[data-theme=light] :is(.erase-tools button,.crop-view-tools button,.crop-border-fields button,#cropSave,.quick-source-actions button:not(.primary),#quickSourceFromChat,.recolor-view-tabs button,.preview-tabs button,.downloads a:not(.primary),.lab-downloads>a,.image-viewer-action,.rename-chat-dialog .secondary){background:#eef4f8;color:#254b62;border-color:#c2d3e0}
html[data-theme=light] :is(#eraseSubmit,#cropGenerate,.quick-source-actions .primary){background:#0f766e;color:#fff}
html[data-theme=light] :is(#eraseClose,#cropClose,#labZoomClose,.dialog-close,.recolor-confirm-close){background:transparent;color:#345568}
html[data-theme=light] :is(.crop-presets button,.quick,.inspector-shortcuts .quick,.reference-option,.lab-stats>div,.recolor-info,.recolor-status){background:#f3f7fb;color:#23475c;border-color:#c9d9e6}
html[data-theme=light] .crop-presets button[aria-pressed=true]{background:#dff4ed;border-color:#0f8b7b;color:#075c54}
html[data-theme=light] :is(.crop-presets small,#cropOutputSummary,.quick small,.quick-wrap small,.inspector-shortcuts .quick>small){color:#4b697e}
html[data-theme=light] :is(#eraseStage,#cropStage,.recolor-image-stage,#outputPreview,#guidePreview){background:repeating-conic-gradient(#e3ebf1 0% 25%,#f7fafc 0% 50%) 0/20px 20px;border-color:#c6d7e2}
html[data-theme=light] :is(.erase-icon,.display-controls .customer-view-toggle){background:#f0f6f9;color:#28576b;border-color:#bdcfdc}
html[data-theme=light] .display-controls .customer-view-toggle[aria-pressed=true]{background:#daf4ec;color:#086e61;border-color:#0b8c79}
html[data-theme=light] .display-controls .theme-switch{background:#dcebef;color:#365870;border-color:#a8c6d1}
html[data-theme=light] .theme-switch-thumb{background:#fff;box-shadow:0 1px 5px #17304644}
html[data-theme=light] :is(.customer-view-indicator,.quick-source-eyebrow,.lab-eyebrow,.lab-heading h1 b){color:#08776a}
html[data-theme=light] .display-control-status{background:#effaf6;color:#175b50;border-color:#a8d6cb}
html[data-theme=light] :is(.studio-conversation .message,.message){background:#fff;border-color:#d0deea;color:#18364a}
html[data-theme=light] :is(.studio-conversation .message.user,.message.user){background:#e1f2f8;border-color:#bddbe6}
html[data-theme=light] :is(.image-open,.studio-conversation .image-open,#inspectorImageOpen,.quick-source-preview img){background:#e9f0f5;color:#526c7e}
html[data-theme=light] :is(.image-expand,.message small,.tag,.download,.download-all,.chat-row .chat-link,.chat-category>summary,.chat-nav-heading,.chat-category>summary>small,.category-empty,#inspectorImageMode,#inspectorImageEmpty){color:#456479}
html[data-theme=light] :is(.tag,#inspectorImageTag){background:#e0f1ec;color:#08695d}
html[data-theme=light] :is(.chat-row.active,.chat-row:hover,.category-more:hover,.chat-actions button:hover,.sidebar-tools summary:hover){background:#e9f3f6;color:#163d50}
html[data-theme=light] :is(.chat-row.active .chat-link,.chat-link:hover,.chat-actions button,.category-more,.sidebar-tools summary,.sidebar-tools-links>a,.sidebar-bottom>a){color:#315368}
html[data-theme=light] :is(.chat-sidebar-status,.category-empty,.inspector-transfers small,.inspector-heading small){color:#61788b}
html[data-theme=light] :is(.studio-conversation .compose-row,.compose-row){background:#fff;border-color:#bacfdf;box-shadow:0 2px 10px #1b4c6b0a}
html[data-theme=light] :is(.upload,.upload-button,.reference-methods button,.inspector-transfers>a,#quickSourceFromChat){background:#eef5f8;color:#345c73;border-color:#c3d6e3}
html[data-theme=light] :is(.inspector-shortcuts .quick:hover,.inspector-transfers>a:hover){background:#e1f4ef;color:#085f55;border-color:#68b8a8}
html[data-theme=light] .quick>i{color:#137e70}
html[data-theme=light] :is(.quick-source-upload,.lab-upload,.recolor-page .recolor-dropzone,.remover-dropzone){background:#e6f6f0;color:#275e58;border-color:#56a996}
html[data-theme=light] :is(.quick-source-upload small,.quick-source-upload>i){color:#286f64}
html[data-theme=light] :is(.chat-queue-status,.lab-notice,.workspace-guidance,.work-progress,.recolor-upload,.recolor-mode button[aria-pressed=true]){background:#e7f6f0;color:#175e53;border-color:#a7d5c7}
html[data-theme=light] :is(.chat-result-set,.chat-result-set>header){background:#f6fafc;color:#32546a;border-color:#cfdfeb}
html[data-theme=light] :is(.chat-queue-counts,.chat-queue-status small,.chat-queue-status strong){color:#1b6659}
html[data-theme=light] :is(.chat-result-set>header span,.inspector-transfers>a,#quickButtons .number-set-shortcut small){color:#4d6e81}
html[data-theme=light] :is(#quickButtons .number-set-shortcut,.sidebar-credit-link){background:#e1f4ed;color:#0b6659;border-color:#92cdbf}
html[data-theme=light] :is(.credit-link-badge,.sidebar-credit-link [data-credit-balance]){color:#075d51}
html[data-theme=light] :is(.studio-inspector.is-open,.inspector-mobile-heading button,.workspace-history,#historyMenu,#historyMenu button,#historyTrigger){background:#fff;color:#23475c;border-color:#b8cddc}
html[data-theme=light] :is(.chat-menu,.chat-menu button,.category-menu,.category-menu button,.chat-menu-item){background:#fff;color:#23475c;border-color:#c6d6e2}
html[data-theme=light] :is(.lab-warnings,.cost-warning,.review-note,.recolor-hint){background:#fff7e7;color:#7c5317;border-color:#e0c382}
html[data-theme=light] :is(.lab header p,.lab .upload>span,.lab .capture-guide p,.lab .retention-note,.lab .set-picker>label,.lab .work-progress p,.lab .work-progress small){color:#4b687d}
html[data-theme=light] :is(.lab-back,.lab-back-icon,.maintenance-back,.maintenance-badge,.lab .badge){background:#e0f3ed;color:#0b6b5f;border-color:#a7cec5;box-shadow:none}
html[data-theme=light] :is(.lab .upload .upload-choose,.lab .work-progress h2,.lab .work-progress .work-eyebrow){color:#145a50}
html[data-theme=light] .lab .upload .upload-choose{background:#d3ece6;border-color:#86bcb1}
html[data-theme=light] :is(.lab-error,.error,.field-error,.danger,#eraseStatus[data-error=true],#cropStatus[data-error=true]){color:#a51c38}
html[data-theme=light] :is(.lab-error,.error:not(.hidden)){background:#fff0f3;border-color:#e9bac6}
html[data-theme=light] :is(.tool-nav a,.tool-nav a:hover){color:#36566c}
html[data-theme=light] .tool-nav a[aria-current=page]{background:#e0f3ed;color:#086e62}
html[data-theme=light] :is(.topup-amount,.topup-summary,.slip-upload,.guide-tip,.guide-step,.guide-placeholder){background:#eff5f9;border-color:#c9d9e5;color:#3e6075}
html[data-theme=light] *{scrollbar-color:#8dafc0 #eef4f8}
@media(max-width:760px){.display-controls{gap:6px}.display-controls .customer-view-indicator{display:none}.tool-nav>.display-controls{grid-column:1/-1;justify-self:end}.workspace>header .header-actions{gap:6px}.workspace>header h1{max-width:calc(100vw - 230px)}}
@media(prefers-reduced-motion:reduce){.theme-switch-thumb{transition:none}}
html[data-theme=light] .tool-nav a.tool-nav-brand{color:#12303f}html[data-theme=light] .tool-nav-sep{background:#d0dce7}html[data-theme=light] .tool-nav a.tool-nav-credits{border-color:#c4d4df}
