/* Pair foreground and surface colors: the default app theme is dark even
   before preferences adds data-mm-theme. Keep the fix scoped to stickers. */
body.mm-app #sticker-dialog{--st-panel:#10251b;--st-card:#19392a;--st-field:#0b1c14;--st-text:#f0faf4;--st-muted:#bbd2c3;--st-border:#527360;--st-active:#a6efc4;--st-active-text:#103522;--st-danger:#ffb7a8;background:var(--st-panel);color:var(--st-text);border:1px solid var(--st-border);color-scheme:dark}
body.mm-app[data-mm-theme=light] #sticker-dialog{--st-panel:#f7faf8;--st-card:#e8f2eb;--st-field:#fff;--st-text:#183e2b;--st-muted:#476451;--st-border:#8aa895;--st-active:#195b3a;--st-active-text:#fff;--st-danger:#9b3025;color-scheme:light}
body.mm-app #sticker-dialog .sticker-heading h2,body.mm-app #sticker-dialog label{color:var(--st-text)}
body.mm-app #sticker-dialog button{color:var(--st-text);background:var(--st-card);border:1px solid var(--st-border);min-height:44px}
body.mm-app #sticker-dialog .sticker-tabs button{font-size:14px;font-weight:600;line-height:1.4;padding:10px 14px}
body.mm-app #sticker-dialog .sticker-tabs button[aria-pressed=true],body.mm-app #sticker-dialog #sticker-save{background:var(--st-active);color:var(--st-active-text);border-color:var(--st-active);font-weight:700}
body.mm-app #sticker-dialog .sticker-card{background:var(--st-card);color:var(--st-text);border-color:var(--st-border)}
body.mm-app #sticker-dialog .sticker-card button{background:transparent;color:var(--st-text);border:0;width:100%}
body.mm-app #sticker-dialog .sticker-card span{color:var(--st-text);font-size:12px;font-weight:600;line-height:1.45;opacity:1}
body.mm-app #sticker-dialog .sticker-card .sticker-delete{color:var(--st-danger)}
body.mm-app #sticker-dialog .sticker-search,body.mm-app #sticker-dialog .sticker-fields input,body.mm-app #sticker-dialog .sticker-fields select{background:var(--st-field);color:var(--st-text);-webkit-text-fill-color:var(--st-text);border:1px solid var(--st-border);font-size:16px;min-height:44px}
body.mm-app #sticker-dialog input::placeholder{color:var(--st-muted);-webkit-text-fill-color:var(--st-muted);opacity:1}
body.mm-app #sticker-dialog input[type=file]::file-selector-button{background:var(--st-card);color:var(--st-text);border:1px solid var(--st-border);border-radius:8px;padding:9px;margin-right:8px}
body.mm-app #sticker-dialog .sticker-help,body.mm-app #sticker-dialog .sticker-empty,body.mm-app #sticker-dialog .sticker-status{color:var(--st-muted);font-size:13px;opacity:1}
body.mm-app #sticker-dialog button:disabled{opacity:.65}
body.mm-app #sticker-dialog :is(button,input,select):focus-visible{outline:3px solid var(--st-active);outline-offset:2px}
