/* ED3 15.10.43 — Identidad visual compartida ESDE.
   Scope deliberadamente limitado: no afecta wp-admin general, contenido externo ni lógica del plugin.
   Mantener controles de icono, avatares y chips que requieren forma circular. */
:where(.ed3-shell,.ed3-single-page,.ed3-profile,.ed3-login,.ed3-ux-1541,.ed3-ux-1545,.ed3-ux-1548,.ed3-sim-ux,.ed3-card-app,.ed3-auth,.ed3-wizard-steps,.ed3-1590-levels,.ed3-route-shell){
 --esde-bg:#0B0D0F;--esde-panel:#202225;--esde-raised:#292C30;--esde-border:#3A3E45;
 --esde-text:#F8F8F8;--esde-muted:#B9B9B9;--esde-primary:#45B8E8;--esde-accent:#FFD43D;
 --esde-danger:#7A2434;--esde-radius:12px;--esde-button-radius:9px;
 font-family:'Poppins',Arial,sans-serif;
}
/* Typography and headings: preserve existing Marvin display headings. */
:where(.ed3-shell,.ed3-single-page,.ed3-profile,.ed3-login,.ed3-ux-1541,.ed3-ux-1545,.ed3-ux-1548,.ed3-card-app,.ed3-sim-ux) :is(p,li,label,td,th){line-height:1.5;}
:where(.ed3-shell,.ed3-single-page,.ed3-card-app,.ed3-sim-ux,.ed3-profile) :is(h1,h2,h3,h4){line-height:1.3;overflow-wrap:break-word;}
/* Shared ordinary panels, without painting badge/alert or button surfaces. */
.ed3-shell :is(.ed3-panel,.ed3-hero,.ed3-stats article),
.ed3-single-page :is(.ed3-accordion,.ed3-subaccordion),
.ed3-profile .ed3-form,
.ed3-card-app :is(.ed3-card-nav,.ed3-card-main),
.ed3-sim-ux .ed3-sim-section {
 border-color:var(--esde-border);border-style:solid;border-width:1px;border-radius:var(--esde-radius);
}
.ed3-shell :is(.ed3-panel,.ed3-stats article),.ed3-single-page .ed3-accordion,.ed3-profile .ed3-form {background-color:var(--esde-panel);}
.ed3-shell :is(.ed3-panel,.ed3-hero,.ed3-stats article),.ed3-card-app :is(.ed3-card-nav,.ed3-card-main){min-width:0;}
/* Standard form fields across ED3: no forced color on non-text input types. */
:where(.ed3-shell,.ed3-single-page,.ed3-profile,.ed3-login,.ed3-sim-ux,.ed3-card-app,.ed3-auth,.ed3-wizard-steps,.ed3-route-shell)
:is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=file]):not([type=color]):not([type=submit]):not([type=button]),select,textarea){
 box-sizing:border-box;min-height:44px;max-width:100%;border-radius:9px;
 background-color:var(--esde-raised);border:1px solid #60646A;color:var(--esde-text);
 font-family:'Poppins',Arial,sans-serif;line-height:1.4;
}
:where(.ed3-shell,.ed3-single-page,.ed3-profile,.ed3-login,.ed3-sim-ux,.ed3-card-app,.ed3-auth,.ed3-wizard-steps,.ed3-route-shell)
:is(input,select,textarea):disabled {opacity:.65;cursor:not-allowed;}
:where(.ed3-shell,.ed3-single-page,.ed3-profile,.ed3-login,.ed3-sim-ux,.ed3-card-app,.ed3-auth,.ed3-wizard-steps,.ed3-route-shell)
:is(input,select,textarea,button,a,summary):focus-visible{outline:2px solid var(--esde-accent);outline-offset:3px;}
:where(.ed3-shell,.ed3-single-page,.ed3-profile,.ed3-login,.ed3-sim-ux,.ed3-card-app,.ed3-auth,.ed3-wizard-steps,.ed3-route-shell)
:is(button,input[type=submit],input[type=button],.button,.ed3-btn):not(.ed3-icon-only):not(.ed3-icon-button){min-height:44px;border-radius:9px!important;}
/* Tables: preserve normal desktop layouts, ensure legibility. */
:where(.ed3-shell,.ed3-single-page,.ed3-card-app,.ed3-sim-ux,.ed3-route-shell) table{border-collapse:separate;border-spacing:0;max-width:100%;}
:where(.ed3-shell,.ed3-single-page,.ed3-card-app,.ed3-sim-ux,.ed3-route-shell) :is(th,td){padding-block:10px;vertical-align:top;overflow-wrap:break-word;}
:where(.ed3-shell,.ed3-single-page,.ed3-card-app,.ed3-sim-ux,.ed3-route-shell) th{font-weight:700;text-align:left;}
/* Text in criteria must never become vertical from a narrow grid. */
:where(.ed3-card-app,.ed3-sim-ux) :is(.ed3-card-criteria,.ed3-sim-criteria) label{min-width:0;}
:where(.ed3-card-app,.ed3-sim-ux) :is(.ed3-card-criteria,.ed3-sim-criteria) label span{min-width:0;white-space:normal;word-break:normal;overflow-wrap:break-word;writing-mode:horizontal-tb;}
/* Forms and messages, no color-only signifiers. */
:where(.ed3-shell,.ed3-card-app,.ed3-sim-ux) :is(.ed3-muted,.ed3-helper){color:var(--esde-muted);}
:where(.ed3-shell,.ed3-single-page,.ed3-sim-ux,.ed3-card-app) .ed3-alert{border-radius:9px;}
/* Keyboard navigation and reduced-motion improvements. */
@media(prefers-reduced-motion:reduce){:where(.ed3-shell,.ed3-single-page,.ed3-profile,.ed3-login,.ed3-card-app,.ed3-sim-ux) *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;}}
