/* AvaClik 0.5.71: mobile-only monochrome skin.
 * No changes to layout, images, presets, processing, or desktop styling.
 * Explicit theme tokens, never use a blanket filter (which would recolor photos).
 */
@media (max-width: 768px) {
  html[data-ava-editor-theme] {
    --ava-m-bg:#0e0f11;
    --ava-m-panel:#16171b;
    --ava-m-surface:#222329;
    --ava-m-raised:#2a2c33;
    --ava-m-stroke:#3b3d45;
    --ava-m-text:#f4f5f7;
    --ava-m-muted:#a4a7af;
    --ava-m-selected:#34363e;
    --ava-m-accent:#d3d6dd;
    --ava-m-primary:#e3e5e9;
    --ava-m-on-primary:#17191e;
    --ava-m-disabled:#292b31;
    --ava-m-on-disabled:#9599a3;
    --ava-bg:var(--ava-m-bg);
    --ava-panel:var(--ava-m-panel);
    --ava-surface:var(--ava-m-surface);
    --ava-stroke:var(--ava-m-stroke);
    --ava-text:var(--ava-m-text);
    --ava-muted:var(--ava-m-muted);
    --ava-accent:var(--ava-m-accent);
    --ava-button:var(--ava-m-primary);
    --ava-active:var(--ava-m-selected);
    color-scheme:dark;
  }
  html[data-ava-editor-theme="light"] {
    --ava-m-bg:#f1f2f4;
    --ava-m-panel:#ffffff;
    --ava-m-surface:#f5f6f8;
    --ava-m-raised:#e9ebee;
    --ava-m-stroke:#d5d8de;
    --ava-m-text:#24272d;
    --ava-m-muted:#666b75;
    --ava-m-selected:#e0e3e8;
    --ava-m-accent:#3d424c;
    --ava-m-primary:#292d34;
    --ava-m-on-primary:#ffffff;
    --ava-m-disabled:#e4e6ea;
    --ava-m-on-disabled:#767b86;
    color-scheme:light;
  }

  /* Main mobile editor and topbar. */
  html[data-ava-editor-theme] body.avaclik-editor-host,
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile,
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .workspace {
    background:var(--ava-m-bg)!important;
    background-image:none!important;
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] #fotor-root .esg-topbar {
    background:var(--ava-m-panel)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] #fotor-root .esg-topbar :is(.esg-balance,.esg-auth--account,.esg-burger,.esg-lang__toggle),
  html[data-ava-editor-theme] #fotor-root .esg-topbar .avaclik-language-trigger,
  html[data-ava-editor-theme] #fotor-root .esg-topbar .ava-theme-switch {
    background:var(--ava-m-surface)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] #fotor-root .esg-topbar :is(.esg-balance,.esg-auth--account,.esg-burger,.esg-lang__toggle,.esg-topbar__brand-text) {
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] #fotor-root .esg-topbar :is(.esg-auth--primary,.esg-auth--button.esg-auth--primary) {
    background:var(--ava-m-primary)!important;
    background-image:none!important;
    border-color:var(--ava-m-primary)!important;
    color:var(--ava-m-on-primary)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] .avaclik-language-picker,
  html[data-ava-editor-theme] .avaclik-language-menu {
    --ava-hc-panel:var(--ava-m-panel);
    --ava-hc-surface:var(--ava-m-surface);
    --ava-hc-stroke:var(--ava-m-stroke);
    --ava-hc-text:var(--ava-m-text);
    --ava-hc-accent:var(--ava-m-accent);
    --ava-hc-active:var(--ava-m-selected);
    color-scheme:inherit;
  }

  /* The free-use badge in the header is a separate injected element. */
  html[data-ava-editor-theme] #fotor-root .ava-daily-free-badge,
  html[data-ava-editor-theme] body .ava-daily-free-badge {
    background:var(--ava-m-raised)!important;
    border:1px solid var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
    box-shadow:none!important;
  }

  /* Bottom navigation and floating photo controls. */
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .left-rail,
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .left-rail .rail-list,
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .workspace .ws-float-controls {
    background:var(--ava-m-panel)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .left-rail .rail-btn,
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .left-rail .rail-btn:not(.active),
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .left-rail .rail-toggle,
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .workspace :is(.ws-action,.fc-btn),
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .mtool-top-btn {
    background:var(--ava-m-surface)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .left-rail .rail-btn :is(.rail-ico,.rail-label) {
    color:var(--ava-m-muted)!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .left-rail .rail-btn:is(.active,.sg299-tools-active),
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .mtool-top-btn:is(.active,.mtool-top-btn--tab.active),
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .workspace .ws-action.primary {
    background:var(--ava-m-selected)!important;
    background-image:none!important;
    border-color:var(--ava-m-accent)!important;
    color:var(--ava-m-text)!important;
    box-shadow:inset 0 0 0 1px var(--ava-m-stroke)!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .left-rail .rail-btn:is(.active,.sg299-tools-active) :is(.rail-ico,.rail-label) {
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .workspace :is(.ws-action,.fc-btn,.qt-btn):disabled,
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .mtool-top-btn:disabled {
    background:var(--ava-m-disabled)!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-on-disabled)!important;
  }

  /* Looks keeps a native React tab selected underneath; its old isolated
     selectors had unusually high specificity and were still pink. */
  html[data-ava-editor-theme] body.sg-looks-active #fotor-root .editor-shell.is-mobile .left-rail .rail-btn:is(.active,.sg299-tools-active):not([data-section="ai-looks"]) {
    background:var(--ava-m-surface)!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-muted)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] body.sg-looks-active #fotor-root .editor-shell.is-mobile .left-rail .rail-btn:is(.active,.sg299-tools-active):not([data-section="ai-looks"]) :is(.rail-ico,.rail-label) {
    color:var(--ava-m-muted)!important;
  }
  html[data-ava-editor-theme] body.sg-looks-active #fotor-root .editor-shell.is-mobile .left-rail .rail-btn[data-section="ai-looks"].active {
    background:var(--ava-m-selected)!important;
    border-color:var(--ava-m-accent)!important;
    color:var(--ava-m-text)!important;
    box-shadow:inset 0 0 0 1px var(--ava-m-stroke)!important;
  }
  html[data-ava-editor-theme] body.sg-looks-active #fotor-root .editor-shell.is-mobile .left-rail .rail-btn[data-section="ai-looks"].active :is(.rail-ico,.rail-label) {
    color:var(--ava-m-text)!important;
  }

  /* Mobile tool sheets, selection areas and control groups. */
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(
    .left-panel,.left-panel-header,.left-panel-body,.mobile-tool-page,.mobile-tool-content,
    .mobile-tool-footer,.ai-hair-page,.ai-hair-top,.ai-hair-scroll,.ai-hair-footer,
    .ai-correction-footer,.ai-styles-page,.ai-agent-page,.m-native-block,
    .mtool-panel,.mtool-settings,.mtool-top-controls,.ai-refs,.ai-refs-picked,
    .sg-add-person-reference,.sg-face-swap-upload-card,.sg-face-swap-consent,
    .hair-reference-editor,.m-ai-panel
  ) {
    background:var(--ava-m-panel)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(
    .lp-back,.lp-close,.ai-hair-tab,.sg-action-card,.m-native-card,
    .color-dd-trigger,.hair-color-open,.color-dd-menu,.color-dd-list,.color-dd-item,
    .sg-prompt-chip,.mtool-top-btn--back,.sg-add-person-prompt__preset,
    .sg-add-person-prompt__back,.sg-add-person-prompt__close
  ) {
    background:var(--ava-m-surface)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(
    .ai-hair-tab.active,.sg-action-card.active,.sg-action-card.selected,
    .m-native-card.active,.color-dd-item.active,.color-dd-item.selected
  ) {
    background:var(--ava-m-selected)!important;
    border-color:var(--ava-m-accent)!important;
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile .ai-hair-tab.active::after {
    background:var(--ava-m-accent)!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(
    .lp-title,.mobile-tool-title,.sg-action-card__title,.mtool-title,
    .m-native-label,.ai-hair-title,.ai-agent__title,.ai-hair-tab.active,
    .sg-action-card__icon
  ) {color:var(--ava-m-text)!important;}
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(
    .lp-subtitle,.mobile-tool-hint,.ai-hair-help,.ai-hair-footer-hint,
    .sg-action-card__subtitle,.mtool-hint,.qt-btn__text
  ) {color:var(--ava-m-muted)!important;}

  /* Photo assets remain in full color. Only tile frames are monochrome. */
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(
    .mobile-preset-card,.mobile-catalog-card,.ai-hair-tile,.m-ai-card,
    .ti-preset-card,.ava-create-preset
  ) {
    border-color:var(--ava-m-stroke)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(
    .mobile-preset-card,.mobile-catalog-card,.ai-hair-tile,.m-ai-card
  ):is(.active,.selected,.is-selected,.is-active) {
    border-color:var(--ava-m-accent)!important;
    box-shadow:inset 0 0 0 1px var(--ava-m-accent)!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(
    .mobile-preset-strip,.mobile-catalog-strip,.mobile-tool-content--presets
  ) {border-color:var(--ava-m-stroke)!important;}

  /* Mobile fields and apply buttons. Disabled state stays obvious. */
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(
    textarea,select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
    .sg-prompt-textarea,.sg-prompt-select,.ai-agent__textarea,.ai-agent__select
  ) {
    background:var(--ava-m-surface)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
    -webkit-text-fill-color:var(--ava-m-text)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(textarea,input)::placeholder {
    color:var(--ava-m-muted)!important;
    -webkit-text-fill-color:var(--ava-m-muted)!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(
    .ai-hair-run,.ai-correction-run,.m-ai-apply,.mobile-apply-btn,
    .ai-agent__run,.mtool-top-btn--apply,.m-native-primary,
    .sg-add-person-prompt__run,.hair-reference-editor__run,
    .remove-bg-btn,.upscale-btn
  ) {
    background:var(--ava-m-primary)!important;
    background-image:none!important;
    border-color:var(--ava-m-primary)!important;
    color:var(--ava-m-on-primary)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(
    .ai-hair-run,.ai-correction-run,.m-ai-apply,.mobile-apply-btn,
    .ai-agent__run,.mtool-top-btn--apply,.m-native-primary,
    .sg-add-person-prompt__run,.hair-reference-editor__run,
    .remove-bg-btn,.upscale-btn
  ):disabled {
    opacity:1!important;
    background:var(--ava-m-disabled)!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-on-disabled)!important;
  }

  /* Looks portaled from React root: preserve the upgraded 0.5.70 layout. */
  html[data-ava-editor-theme] body.sg-looks-active > .sg-looks-mobile-pane,
  html[data-ava-editor-theme] body.sg-looks-active > .sg-looks-mobile-pane :is(.mobile-tool-page,.mobile-tool-content),
  html[data-ava-editor-theme] .sg-looks-mobile-pane .sg-looks-mode-tabs {
    background:var(--ava-m-panel)!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] .sg-looks-mobile-pane :is(.sg-looks-mode-tab,.sg-looks-custom-upload,.sg-looks-custom-notes) {
    background:var(--ava-m-surface)!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] .sg-looks-mobile-pane .sg-looks-mode-tab.active {
    background:var(--ava-m-selected)!important;
    border-color:var(--ava-m-accent)!important;
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] .sg-looks-mobile-controls :is(
    .mtool-top-btn--back,.sg-looks-mobile-preview-action,
    .sg-looks-mobile-format-action,.sg-looks-mobile-collapse
  ) {
    background:var(--ava-m-surface)!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] .sg-looks-mobile-controls .mtool-top-btn--apply {
    background:var(--ava-m-primary)!important;
    background-image:none!important;
    border-color:var(--ava-m-primary)!important;
    color:var(--ava-m-on-primary)!important;
  }
  html[data-ava-editor-theme] .sg-looks-mobile-controls .mtool-top-btn--apply:disabled {
    background:var(--ava-m-disabled)!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-on-disabled)!important;
    opacity:1!important;
  }
  html[data-ava-editor-theme] .sg-looks-mobile-selection:not([hidden]) {
    background:var(--ava-m-raised)!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
  }

  /* The burger menu lives on body, outside #fotor-root. */
  html[data-ava-editor-theme] body .sg-mobile-menu__panel {
    background:var(--ava-m-panel)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] body :is(
    .sg-mobile-menu__toggle,.sg-mobile-menu__link,.sg-mobile-menu__lang-item,
    .sg-mobile-menu__action,.sg-mobile-menu__close
  ) {
    background:var(--ava-m-surface)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] body :is(
    .sg-mobile-menu__lang-item.is-current,.sg-mobile-menu__toggle[aria-expanded="true"]
  ) {
    background:var(--ava-m-selected)!important;
    border-color:var(--ava-m-accent)!important;
  }
  html[data-ava-editor-theme] body :is(.sg-mobile-menu__group-title,.sg-mobile-menu__sublink) {
    color:var(--ava-m-muted)!important;
    border-color:var(--ava-m-stroke)!important;
  }
  html[data-ava-editor-theme] body .sg-mobile-menu__action:last-child {
    background:var(--ava-m-primary)!important;
    color:var(--ava-m-on-primary)!important;
    border-color:var(--ava-m-primary)!important;
  }
  html[data-ava-editor-theme] #fotor-root :is(.esg-nav__dropdown,.esg-lang__menu,.esg-mobile-menu){
    background:var(--ava-m-panel)!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
  }

  /* Create Image and AI by prompt full-screen sheets. */
  html[data-ava-editor-theme] #fotor-root :is(.agent-popup,.agent-popup.text-image-popup) {
    background:var(--ava-m-panel)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
    box-shadow:0 16px 48px rgba(0,0,0,.3)!important;
  }
  html[data-ava-editor-theme] #fotor-root .agent-popup:not(.text-image-popup) :is(
    .ai-agent__title,.ai-agent__block-title,.ai-agent__label
  ),
  html[data-ava-editor-theme] #fotor-root .text-image-popup :is(.ti-head h3,.ti-field>span,.ava-create-presets-head) {
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] #fotor-root .agent-popup:not(.text-image-popup) :is(
    .ai-agent__hint,.ai-agent__demo-note,.ai-agent__help-text
  ),
  html[data-ava-editor-theme] #fotor-root .text-image-popup :is(.ti-head p,.ti-presets-intro,.ti-help,.ti-mode-note span) {
    color:var(--ava-m-muted)!important;
  }
  html[data-ava-editor-theme] #fotor-root .agent-popup:not(.text-image-popup) :is(
    .ai-agent__block,.ai-agent__reference,.ai-agent__refs,.sg-agent-mode-tabs,
    .ai-agent__header,.sg-agent-adult-consent
  ),
  html[data-ava-editor-theme] #fotor-root .text-image-popup :is(
    .ti-head,.ti-presets-shell,.ti-presets-intro,.ti-mode-tabs,
    .ti-mode-note,.ti-help,.ti-grid,.ti-quality
  ) {
    background:var(--ava-m-panel)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] #fotor-root .agent-popup:not(.text-image-popup) :is(
    textarea,select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
    .ai-agent__textarea,.ai-agent__select
  ),
  html[data-ava-editor-theme] #fotor-root .text-image-popup :is(
    textarea,select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
    .ti-field textarea,.ti-field select,.ti-grid select
  ) {
    background:var(--ava-m-surface)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
    -webkit-text-fill-color:var(--ava-m-text)!important;
    box-shadow:none!important;
    color-scheme:inherit!important;
  }
  html[data-ava-editor-theme] #fotor-root .agent-popup:not(.text-image-popup) :is(textarea,input)::placeholder,
  html[data-ava-editor-theme] #fotor-root .text-image-popup :is(textarea,input)::placeholder {
    color:var(--ava-m-muted)!important;
    -webkit-text-fill-color:var(--ava-m-muted)!important;
  }
  html[data-ava-editor-theme] #fotor-root .agent-popup:not(.text-image-popup) :is(
    .sg-agent-mode-tab,.ai-agent__help,.sg-add-person-reference,.sg-agent-adult-card
  ),
  html[data-ava-editor-theme] #fotor-root .text-image-popup :is(
    .ti-mode-tab,.ti-help-btn,.ti-secondary,.ti-quality select,
    .ava-create-presets-controls button,.ti-style-button,.ti-hot-aspect--toolbar
  ) {
    background:var(--ava-m-surface)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] #fotor-root .agent-popup:not(.text-image-popup) .sg-agent-mode-tab:is(.active,.is-active),
  html[data-ava-editor-theme] #fotor-root .text-image-popup .ti-mode-tab.is-active {
    background:var(--ava-m-selected)!important;
    border-color:var(--ava-m-accent)!important;
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] #fotor-root .text-image-popup :is(.ti-generate,.ti-generate--hot,.ti-generate--popup-top),
  html[data-ava-editor-theme] #fotor-root .text-image-page.text-image-page .ti-generate.ti-generate,
  html[data-ava-editor-theme] #fotor-root .agent-popup:not(.text-image-popup) .ai-agent__run {
    background:var(--ava-m-primary)!important;
    background-image:none!important;
    border-color:var(--ava-m-primary)!important;
    color:var(--ava-m-on-primary)!important;
    box-shadow:none!important;
  }
  html[data-ava-editor-theme] #fotor-root .text-image-popup :is(.ti-generate,.ti-generate--hot,.ti-generate--popup-top):disabled,
  html[data-ava-editor-theme] #fotor-root .text-image-page.text-image-page .ti-generate.ti-generate:disabled,
  html[data-ava-editor-theme] #fotor-root .agent-popup:not(.text-image-popup) .ai-agent__run:disabled {
    background:var(--ava-m-disabled)!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-on-disabled)!important;
    opacity:1!important;
  }
  html[data-ava-editor-theme] #fotor-root .text-image-popup .ava-create-preset.is-selected {
    border-color:var(--ava-m-accent)!important;
    box-shadow:inset 0 0 0 1px var(--ava-m-accent)!important;
  }
  html[data-ava-editor-theme] #fotor-root .text-image-popup .ava-create-preset:not(.is-selected) {
    border-color:var(--ava-m-stroke)!important;
  }

  /* Modals opened from appearance, reference images and settings. */
  html[data-ava-editor-theme] body :is(
    .hair-color-modal,.sg-add-person-prompt__card,.sg-prompt-sheet__card,
    .ti-mobile-prompt-sheet,.ti-style-sheet,.compact-modal
  ) {
    background:var(--ava-m-panel)!important;
    background-image:none!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] body :is(
    .hair-color-modal__swatch,.hair-color-modal__rgb,.sg-prompt-sheet__card textarea,
    .ti-mobile-prompt-sheet textarea,.ti-style-sheet select,.sg-add-person-prompt__preset
  ) {
    background:var(--ava-m-surface)!important;
    border-color:var(--ava-m-stroke)!important;
    color:var(--ava-m-text)!important;
  }
  html[data-ava-editor-theme] body :is(.hair-color-modal__apply,.sg-prompt-sheet-apply,.sg-add-person-prompt__run) {
    background:var(--ava-m-primary)!important;
    background-image:none!important;
    border-color:var(--ava-m-primary)!important;
    color:var(--ava-m-on-primary)!important;
  }
  html[data-ava-editor-theme] body .hair-color-modal__swatch.active {
    background:var(--ava-m-selected)!important;
    border-color:var(--ava-m-accent)!important;
  }

  /* Visible focus without introducing a pink selection color. */
  html[data-ava-editor-theme] #fotor-root .editor-shell.is-mobile :is(button,input,textarea,select):focus-visible,
  html[data-ava-editor-theme] #fotor-root .agent-popup :is(button,input,textarea,select):focus-visible,
  html[data-ava-editor-theme] body .sg-mobile-menu__panel :is(button,a):focus-visible {
    outline:2px solid var(--ava-m-accent)!important;
    outline-offset:1px!important;
  }
}
