/* Base legível antecipada; cores específicas são refinadas em segundo plano. */
html.pdm-boot * { transition:none !important; }
html.pdm-dark :where(body,body *):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *,[data-pdm-reading],svg,svg *,#pdm-toggle)) { color:var(--pdm-dark-text,#fff) !important; }
html.pdm-dark { color-scheme:dark; background-color:#000 !important; --pdm-surface:#000; }
html.pdm-dark[data-pdm-surface=soft] { --pdm-surface:#111; }
html.pdm-dark[data-pdm-surface=layered] { --pdm-surface:#1a1a1a; }
html.pdm-dark :where(body,body *):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *,img,picture,video,canvas,svg,svg *,iframe,embed,object,#pdm-toggle)) { background-color:var(--pdm-surface) !important; }
html.pdm-dark body:not(:where(.pdm-ignore,[data-pdm-ignore],[data-pdm-excluded])) { background-color:#000 !important; }
html.pdm-dark.pdm-basic :where(body,body *):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *,svg,svg *,#pdm-toggle)) { color:var(--pdm-dark-text,#fff) !important; -webkit-text-fill-color:currentColor !important; }
html.pdm-dark :where(input,textarea,select,button):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *,#pdm-toggle)) { border-color:#888 !important; caret-color:#fff; }
html.pdm-dark :where(input,textarea):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *))::placeholder { color:#bbb; opacity:1; }
html.pdm-dark :where(a,button,input,select,textarea):focus-visible { outline:2px solid #e5c782; outline-offset:3px; }
html.pdm-dark :where(a):not(:where([role=button],.button,.wp-element-button,.pdm-ignore *,[data-pdm-ignore] *,[data-pdm-excluded] *)) { text-decoration:underline; text-underline-offset:.15em; }
html.pdm-dark ::selection { background:#73551f; color:#fff; }
#pdm-toggle {
 position:fixed; right:16px; bottom:16px; z-index:999999; min-height:44px; max-width:calc(100vw - 32px);
 border:1px solid #d0aa61; border-radius:24px; padding:10px 16px; box-sizing:border-box;
 background:linear-gradient(115deg,#b58a3c,#f6dfa2 23%,#d9b76f 43%,#c99d4d 56%,#f4d58d 76%,#bc903f) !important;
 color:#100c06 !important; -webkit-text-fill-color:#100c06 !important;
 font:700 14px/1.4 system-ui,sans-serif; cursor:pointer; box-shadow:inset 0 1px 0 #fff8,0 2px 8px #0004;
}
#pdm-toggle[data-position=left] { left:16px; right:auto; }
#pdm-toggle:focus-visible { outline:3px solid #f6dfa2; outline-offset:3px; }
@media print { #pdm-toggle { display:none !important; } }

/* Paleta escura: links e destaques independentes do clareamento automático. */
html:root.pdm-dark body :is(a,a *):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *,[data-pdm-reading])) { color:var(--pdm-dark-link,#8fcaff) !important; -webkit-text-fill-color:currentColor !important; }
html.pdm-dark body.wp-admin { --wp-admin-theme-color:var(--pdm-dark-accent,#d9b76f); --wp-admin-theme-color-rgb:var(--pdm-dark-accent-rgb,217,183,111); }
html:root.pdm-dark body.wp-admin :is(h1,h2,h3,h4,label,strong):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *,[data-pdm-reading])) { color:var(--pdm-dark-text,#fff) !important; }
html:root.pdm-dark body.wp-admin :is(p.description,p.description *,small,.description,.description *,.plugin-description,.plugin-description *,.plugin-version-author-uri,.plugin-version-author-uri *,.subsubsub,.subsubsub *):not(:where(a,a *,.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *,[data-pdm-reading])) { color:var(--pdm-dark-muted,#d6d6d6) !important; }
html:root.pdm-dark body.wp-admin :is(.button-primary,.button-primary *,#adminmenu .current > a,#adminmenu .current > a *,#adminmenu a.current,#adminmenu a.current *,#adminmenu .wp-has-current-submenu > a,#adminmenu .wp-has-current-submenu > a *):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *)) { background-color:var(--pdm-dark-accent,#d9b76f) !important; color:var(--pdm-dark-accent-ink,#000) !important; -webkit-text-fill-color:currentColor !important; border-color:var(--pdm-dark-accent,#d9b76f) !important; }
html:root.pdm-dark body.wp-admin :is(.plugins .active th.check-column,.plugins .active td.check-column,.button,.button-secondary):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *)) { border-color:var(--pdm-dark-accent,#d9b76f) !important; }
html.pdm-dark ::selection { background:var(--pdm-dark-accent,#d9b76f); color:var(--pdm-dark-accent-ink,#000); }
html.pdm-dark :where(a,button,input,select,textarea):focus-visible { outline-color:var(--pdm-dark-accent,#d9b76f); }

/* Tema claro só é alterado quando sua personalização está habilitada. */
html.pdm-light { color-scheme:light; background:var(--pdm-light-bg,#fff) !important; }
html.pdm-light :where(body,body *):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *,img,picture,video,canvas,svg,svg *,iframe,embed,object,#pdm-toggle)) { background-color:var(--pdm-light-surface,#f7f7f7) !important; color:var(--pdm-light-text,#1e1e1e) !important; -webkit-text-fill-color:currentColor !important; }
html.pdm-light body:not(:where(.pdm-ignore,[data-pdm-ignore],[data-pdm-excluded])) { background-color:var(--pdm-light-bg,#fff) !important; }
html:root.pdm-light body :is(small,.description,.description *,p.description,.plugin-description,.plugin-description *,.plugin-version-author-uri,.plugin-version-author-uri *,.subsubsub,.subsubsub *):not(:where(a,a *,.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *)) { color:var(--pdm-light-muted,#4b5563) !important; }
html:root.pdm-light body :is(a,a *):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *)) { color:var(--pdm-light-link,#135e96) !important; -webkit-text-fill-color:currentColor !important; }
html.pdm-light body.wp-admin { --wp-admin-theme-color:var(--pdm-light-accent,#b58a3c); --wp-admin-theme-color-rgb:var(--pdm-light-accent-rgb,181,138,60); }
html:root.pdm-light body.wp-admin :is(.button-primary,.button-primary *,#adminmenu .current > a,#adminmenu .current > a *,#adminmenu a.current,#adminmenu a.current *,#adminmenu .wp-has-current-submenu > a,#adminmenu .wp-has-current-submenu > a *):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *)) { background-color:var(--pdm-light-accent,#b58a3c) !important; color:var(--pdm-light-accent-ink,#000) !important; -webkit-text-fill-color:currentColor !important; border-color:var(--pdm-light-accent,#b58a3c) !important; }
html:root.pdm-light body.wp-admin :is(.plugins .active th.check-column,.plugins .active td.check-column,.button,.button-secondary):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *)) { border-color:var(--pdm-light-accent,#b58a3c) !important; }
html.pdm-light ::selection { background:var(--pdm-light-accent,#b58a3c); color:var(--pdm-light-accent-ink,#000); }
html.pdm-light :where(a,button,input,select,textarea):focus-visible { outline:2px solid var(--pdm-light-accent,#b58a3c); outline-offset:3px; }
/* Ícones do painel usam pseudo-elementos: também precisam de uma cor clara/escura coerente. */
html:root.pdm-light body.wp-admin :is(.dashicons,.dashicons-before,.wp-menu-image,.ab-icon):not(:where(.pdm-ignore,.pdm-ignore *,[data-pdm-ignore],[data-pdm-ignore] *,[data-pdm-excluded],[data-pdm-excluded] *))::before { color:var(--pdm-light-link,#135e96) !important; }
html:root.pdm-light body.wp-admin #adminmenu :is(.current > a,.wp-has-current-submenu > a) .wp-menu-image::before { color:var(--pdm-light-accent-ink,#000) !important; }
html:root.pdm-light body.wp-admin #wpadminbar :is(svg,svg path) { fill:var(--pdm-light-link,#135e96) !important; }
