/* MerCris Enterprise 2.4.9: scoped production adaptive rules */
html.mc249-ready { --mc249-gap: 12px; }
html.mc249-ready :is(.mercris-visual-editor,.mc-editor,[data-mercris-editor]) {min-width:0;max-width:100%;box-sizing:border-box;}
html.mc249-ready :is(.mercris-visual-editor,.mc-editor,[data-mercris-editor]) :is(img,video,canvas) {max-width:100%;}
html.mc249-ready :is(.mercris-visual-editor,.mc-editor,[data-mercris-editor]) :is(.mc-toolbar,[data-mercris-toolbar]) {display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
html.mc249-ready .mc249-columns {display:grid!important;grid-template-columns:minmax(205px,250px) minmax(0,1fr)!important;gap:var(--mc249-gap);align-items:start;min-width:0;}
html.mc249-ready .mc249-columns > .mc249-sidebar {grid-column:1!important;grid-row:1!important;min-width:0;max-width:100%;}
html.mc249-ready .mc249-columns > .mc249-main {grid-column:2!important;grid-row:1!important;min-width:0;max-width:100%;}
@media(max-width:900px){html.mc249-ready .mc249-columns {grid-template-columns:minmax(0,1fr)!important;}html.mc249-ready .mc249-columns > :is(.mc249-sidebar,.mc249-main){grid-column:1!important;grid-row:auto!important;}}
/* Audit is displayed to authorized operators only on demand, never hides production controls. */
.mc249-audit-panel{position:fixed;right:16px;bottom:16px;z-index:2147483000;max-width:min(420px,calc(100vw - 32px));max-height:60vh;overflow:auto;background:#142134;color:#fff;border:1px solid #4d6079;border-radius:12px;padding:14px;box-shadow:0 14px 40px #0005;font:13px/1.5 system-ui,sans-serif}
.mc249-audit-panel button{background:#ffffff20;border:1px solid #ffffff55;border-radius:7px;padding:5px 9px;color:white;cursor:pointer;margin:4px}
.mc249-audit-panel p{margin:8px 0}.mc249-audit-panel ul{padding-left:18px}
