/* UI chrome only. Do not recolor document paper, photo pixels, masks or color swatches. */
html[data-brand="pdfmall"][data-pdfmall-editor]{--pm-brand:#008b76;--pm-action:#007663;--pm-action-hover:#005e50;--pm-ink:#18384a;--pm-muted:#5b6f77;--pm-soft:#edf7f4;--pm-border:#d9e7e3;--accent:var(--pm-action);--accent-hover:var(--pm-action-hover);--blue:var(--pm-action);--blue-dark:var(--pm-action-hover);--brand:var(--pm-action);--brand-hover:var(--pm-action-hover);--brand-soft:var(--pm-soft);--ui-ink:var(--pm-ink);--ui-muted:var(--pm-muted);--ui-border:var(--pm-border);--ui-canvas:#f4f8f7;--ui-focus:#008b76;--ui-selection:#cae8e0;--ui-shadow:#18384a14}
html[data-brand="pdfmall"][data-pdfmall-editor="light"]{--ink:var(--pm-ink);--muted:var(--pm-muted);--line:var(--pm-border);--canvas:#f0f5f3;--green:#006b5b;background:#f4f8f7;color:var(--pm-ink)}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"]{--accent:#44c7b1;--accent-hover:#6ddbc8;--accent-soft:#214d47;--pink:#44c7b1;--panel:#183137;--line:#315056;--muted:#b0c5c9;color:#edf8f5;background:#10262c;color-scheme:dark}
html[data-brand="pdfmall"] .mp-studio-brand .mp-brand-logo{width:154px;height:44px;min-width:0;mix-blend-mode:normal}
html[data-brand="pdfmall"] .mp-studio-brand .mp-brand-icon{object-fit:contain;mix-blend-mode:normal}
html[data-brand="pdfmall"] .compress-studio-brand .pdfmall-editor-logo{width:154px;height:44px;object-fit:contain}
html[data-brand="pdfmall"] :is(.site-header>.brand,#formula-home-link,.pdfmall-editor-brand-link) .pdfmall-editor-logo{display:block;max-width:100%;width:142px;height:41px;object-fit:contain}
html[data-brand="pdfmall"] .pdfmall-editor-brand-link{display:inline-flex;flex-shrink:0}
html[data-brand="pdfmall"][data-pdfmall-editor] :is(.upload-button,.primary,.choose-photo,.download-button,.process-button,.button-primary,#choose,.convert-process-button){background:var(--pm-action);border-color:var(--pm-action);color:#fff;box-shadow:0 4px 12px #00766316}
html[data-brand="pdfmall"][data-pdfmall-editor] :is(.upload-button,.primary,.choose-photo,.download-button,.process-button,.button-primary,#choose,.convert-process-button):hover{background:var(--pm-action-hover);border-color:var(--pm-action-hover)}
html[data-brand="pdfmall"][data-pdfmall-editor] :is(button,a,input,textarea,select):focus-visible{outline-color:#008b76;outline-offset:3px}
html[data-brand="pdfmall"][data-pdfmall-editor] input[type="range"],html[data-brand="pdfmall"][data-pdfmall-editor] input[type="checkbox"],html[data-brand="pdfmall"][data-pdfmall-editor] progress{accent-color:var(--pm-brand)}
html[data-brand="pdfmall"][data-pdfmall-editor="light"] :is(.topbar,.site-header,.document-bar,.panel.controls,.canvas-toolbar,.toolbar,.desk-topbar){border-color:var(--pm-border)}
html[data-brand="pdfmall"][data-pdfmall-editor="light"] :is(.drop-zone.dragover,.upload-zone.dragover,.tool-button.active,.tool-button[aria-pressed="true"]){background:var(--pm-soft);border-color:var(--pm-brand);color:var(--pm-action)}
html[data-brand="pdfmall"][data-pdfmall-editor="light"] :is(.document-icon,.file-badge){color:var(--pm-action);border-color:#b9dcd2;background:var(--pm-soft)}
html[data-brand="pdfmall"][data-pdfmall-editor="light"] #choose-file{box-shadow:0 5px 12px #00766325}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] body{background:#10262c;color:#edf8f5}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.topbar,.settings-panel,.history-panel,.settings,.sky-library,.canvas-toolbar,.workspace-status,.controls-panel,.panel-header,.panel-footer){background:#183137;border-color:#315056;color:#edf8f5}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.workspace,.preview,.workspace-main,.editor-main){background:#10262c}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.segment-options,.view-toolbar,.layout-controls,.setting-section) button:is(.selected,[aria-pressed="true"]){background:#214d47;color:#b9f1e5;border-color:#44c7b1}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.panel-heading,.section-body,.setting-section,.toolbar){border-color:#315056}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.empty-icon,.section-icon,.eyebrow,.active-tool){color:#6ddbc8}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(button,a,input,textarea,select):focus-visible{outline-color:#6ddbc8}
html[data-brand="pdfmall"][data-pdfmall-editor="embedded"] :is(.sign-app,.sign-layout,.watermark-workspace,.image-convert-workspace,.compress-editor){--accent:var(--pm-action);--accent-hover:var(--pm-action-hover);--line:var(--pm-border)}
/* Shared light image tools, including the proxied Skin studio. */
html[data-brand="pdfmall"][data-pdfmall-editor="light"]{--border:var(--pm-border)}
html[data-brand="pdfmall"][data-pdfmall-editor="light"] :is(.app-header,.settings-panel,.gallery){border-color:var(--pm-border)}
html[data-brand="pdfmall"][data-pdfmall-editor="light"] :is(.empty-icon,.editor-empty>span,.section-badge){background:var(--pm-soft);color:var(--pm-action)}
html[data-brand="pdfmall"][data-pdfmall-editor="light"] :is(.upload-card.dragover,.icon-button[aria-pressed="true"],.tool-button.active){background:var(--pm-soft);color:var(--pm-action);border-color:#b9dcd2}
/* Studio controls use several fixed legacy colors as well as tokens. Limit
   these overrides to named chrome; color chips and image layers stay intact. */
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(body>header,.sky-settings,.settings-footer,.product-panel,.product-panel-heading,.gallery-strip,.gallery-footer,.help-content,.tool-popover,.editor-language nav){background:#183137;border-color:#315056;color:#edf8f5}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.file-bar,.header-upload,.view-switch,.view-toolbar,.viewport-toolbar,.edit-modes button,.subject-actions button,.crop-toolbar,.crop-toolbar button,.crop-toolbar input,.crop-toolbar select,.workflow-actions button,.subtle-action,.sidebar-toggle,.direction-control,.direction-buttons button,.library-filters select,.library-filters input,.sky-transform-buttons button,.settings-footer button,.custom,.edit-tools>button,.tool-menu>summary,.gallery-header button,.gallery-footer button,.gallery-card,.product-pane input:not([type="range"]):not([type="color"]),.product-pane select,.saved-style-row>button,.batch-row,.batch-common-settings,.segment-options button){background:#214047;border-color:#315a60;color:#d9ebe7}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.view-switch button[aria-pressed="true"],.view-toolbar button[aria-pressed="true"],.direction-buttons button[aria-pressed="true"],.no-shadow-button[aria-pressed="true"],.sidebar-toggle[aria-expanded="false"],.workspace-help[open] summary,.editor-language a[aria-current],#expandWorkspace[aria-pressed="true"],#beautifySky,.tool-menu[open]>summary){background:#28665d;border-color:#44c7b1;color:#e5fff8}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.header-upload>.button,.header-export #format,#download:not(.disabled)){background:var(--pm-action);border-color:var(--pm-action);color:#fff}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.header-upload>.button,.header-export #format,#download:not(.disabled)):hover{background:var(--pm-action-hover)}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.header-file span,.range-control label,.range-control output,.empty-state p,.empty-state>small,.preview-footer,.workspace-note,.live-note,.transform-hint){color:#b0c5c9}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.preview-footer,.workspace-note){background:#183137e8}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(#stage,.preview-stage){background-color:#0f2429;background-image:radial-gradient(#3d666c33 .7px,transparent .7px);border-color:#315056}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.empty-icon,#libraryTotal){background:#214d47;border-color:#315a60;color:#b9f1e5}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .empty-icon svg{color:#b9f1e5}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .range-control input{background:linear-gradient(to right,#44c7b1 var(--range-fill,35%),#315a60 var(--range-fill,35%))}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .sky-settings input[type="range"],html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .sky-settings input[type="range"]::-webkit-slider-runnable-track{background:#315a60}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] input[type="range"]::-webkit-slider-thumb{background:#44c7b1;border-color:#a8e7db}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] input[type="range"]::-moz-range-thumb{background:#44c7b1;border-color:#a8e7db}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .sky-settings input[type="range"]::-moz-range-track{background:#315a60}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background :is(.upload-panel,.editor-panel,.topbar,.canvas-topbar,.product-popover,.product-popover-heading,.upload-panel .panel-actions,.editor-bottom){background:#183137;border-color:#315056;color:#edf8f5}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background :is(.mode-option,.mode-option:has(input:checked),.mode-tabs,.editor-tabs,.editor-subtabs,.product-menus>button,.product-popover input:not([type="range"]):not([type="color"]),.product-popover select,.editor-panel input[type="search"],.editor-panel select,.editor-language nav,.editor-download,.editor-export select,#togglePanels){background:#214047;border-color:#315a60;color:#d9ebe7}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background :is(#chooseFile,#chooseFileEmpty,#processButton,#editorSave,.editor-download:not(:disabled)){background:var(--pm-action);border-color:var(--pm-action);color:#fff;box-shadow:0 4px 12px #00766316}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background :is(#chooseFile,#chooseFileEmpty,#processButton,#editorSave,.editor-download:not(:disabled)):hover{background:var(--pm-action-hover)}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background :is(.editor-tabs,.editor-subtabs) button[aria-selected="true"]{color:#b9f1e5;border-color:#44c7b1;background:#214d47}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background :is(.processing-hint,.mode-option small,.preview-badge,.empty-state p,.mode-controls>p,.preview-footer>p){color:#b0c5c9}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background #beautifyProduct{background:#28665d;border-color:#44c7b1;color:#e5fff8}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background{--pink:#44c7b1;--studio-action:var(--pm-action);--editor-accent:#44c7b1;--editor-accent-dark:#6ddbc8;--editor-line:#315056;--green:var(--pm-action);--accent:var(--pm-action);--line:#315056;--muted:#b0c5c9}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background :is(.background-tabs,.editor-footer,.upload-panel-footer,.product-toolbar){background:#183137;border-color:#315056}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background .background-tabs button[aria-selected="true"]{background:#28665d;color:#e5fff8;box-shadow:inset 0 0 0 1px #44c7b1}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.primary-upload,.apply-button,.add-photo-button){background:var(--pm-action);border-color:var(--pm-action);color:#fff}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.primary-upload,.apply-button,.add-photo-button):hover{background:var(--pm-action-hover)}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .apply-button:disabled{background:#28504c;color:#a2bfb9}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(.apply-area,.layout-toggle,.canvas-toolbar>button){background:#183137;border-color:#315056;color:#d9ebe7}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .empty-symbol{color:#6ddbc8}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background .app-shell:not(.has-source) .header-upload #chooseFile:not(:disabled){border-color:var(--pm-action)}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .mode{background:#214047;border-color:#315a60;color:#d9ebe7}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .mode.selected{background:#28665d;border-color:#44c7b1;box-shadow:inset 0 0 0 1px #44c7b130}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(#settingsToggle,#historyToggle,.add-photo){background:#214047;border-color:#315a60;color:#d9ebe7}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .image-frame:has(>.empty-state:not([hidden])){background:#0f2429}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] :is(#downloadButton,.download-button)[aria-disabled="true"]{background:#214047;border-color:#315056;color:#819c9e}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background :is(.product-tool-tray,.processing-footer,.editor-export #exportFormat){background:#183137;border-color:#315056;color:#d9ebe7}
html[data-brand="pdfmall"][data-pdfmall-editor="dark"] .studio-remove-background .image-stage:has(>.empty-state:not([hidden])){background-color:#0f2429;border-color:#315056}
@media(max-width:560px){html[data-brand="pdfmall"] .mp-studio-brand .pdfmall-editor-logo{display:none}html[data-brand="pdfmall"] :is(.site-header>.brand,#formula-home-link,.pdfmall-editor-brand-link) .pdfmall-editor-logo{width:112px;height:33px}}
