/* XR editorial host card only. mjml-editor embeds its canonical editor stylesheet. */

/* ---- host card in the editorial form ---- */
.xr-mjml-card { border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); background: var(--bg-surface); }
.xr-mjml-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.xr-mjml-badge { font-size: var(--fs-label); padding: 2px 8px; border-radius: 999px; background: var(--bg-surface-sunken); color: var(--text-secondary); border: 1px solid var(--border-default); }
.xr-mjml-badge-on { background: var(--positive-soft-bg); color: var(--positive); border-color: transparent; }
.xr-mjml-badge-warn { background: var(--negative-soft-bg); color: var(--negative); border-color: transparent; }
.xr-mjml-note { margin: 0; color: var(--text-secondary); font-size: var(--fs-label); }
.xr-mjml-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.xr-mjml-overlay { position: fixed; inset: 0; z-index: 900; background: var(--bg-page); display: flex; flex-direction: column; }
.xr-mjml-overlay > .mje { flex: 1; min-height: 0; }

/* XR's shared button rules use a fixed-height horizontal layout. Image-layer
   choices are thumbnail cards and must remain readable inside the inspector. */
.mje .mje-hero-layers button.mje-hero-layer { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:5px; width:100%; height:auto; min-height:96px; padding:6px; white-space:normal; line-height:1.3; font-size:11px; }
.mje .mje-hero-layers button.mje-hero-layer img { display:block; flex:none; width:100%; max-width:100%; height:60px; object-fit:contain; }
.mje .mje-hero-layers button.mje-hero-layer span { display:block; white-space:normal; overflow-wrap:anywhere; }
.mje .mje-hero-layers button.mje-hero-layer[aria-pressed=true] { border:2px solid var(--accent); background:var(--accent-soft-bg); }

/* Explicit dropdown affordance without changing accessible button names. */
.mje-bar button[popovertarget]::after { content:""; display:inline-block; margin-left:7px; border-top:4px solid currentColor; border-left:4px solid transparent; border-right:4px solid transparent; vertical-align:middle; }
