/* MCE agent PWA — interaction recovery + read-only site instructions. */
html[data-mce-agent="active"] .mce-field-bottom-nav{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  pointer-events:auto!important;
}
html[data-mce-agent="active"] .mce-field-bottom-nav button{
  min-width:0!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent;
  font-size:10px!important;
}
html[data-mce-agent="active"] .app-shell,
html[data-mce-agent="active"] .workspace,
html[data-mce-agent="active"] .content,
html[data-mce-agent="active"] .content button,
html[data-mce-agent="active"] .content input,
html[data-mce-agent="active"] .content select,
html[data-mce-agent="active"] .content textarea{
  pointer-events:auto;
}
/* The agent profile never uses the generic application sheet. It must never intercept taps. */
html[data-mce-agent="active"] .mce-field-sheet-wrap{
  display:none!important;
  pointer-events:none!important;
}
html[data-mce-agent="active"][data-mce-app-module="instructions"] .content>:not([data-mce-agent-owned]){
  display:none!important;
}
html[data-mce-agent="active"] .mce-agent-instructions{
  width:100%;
  max-width:940px;
  margin:0 auto;
  color:var(--mce-text);
}
html[data-mce-agent="active"] .mce-agent-instructions [hidden]{display:none!important}
html[data-mce-agent="active"] .mce-agent-instructions-head{
  display:flex;
  align-items:end;
  gap:10px;
  padding-bottom:16px;
  margin-bottom:20px;
  border-bottom:1px solid var(--mce-border);
}
html[data-mce-agent="active"] .mce-agent-instructions-head label{
  display:grid;
  flex:1;
  min-width:0;
  gap:7px;
  color:var(--mce-pwa-heading,var(--mce-text));
  font-weight:650;
}
html[data-mce-agent="active"] .mce-agent-instructions select{
  width:100%;
  min-height:48px;
  padding:10px 12px;
  border:1px solid var(--mce-border);
  border-radius:12px;
  background:var(--mce-surface);
  color:var(--mce-text);
  font:inherit;
}
html[data-mce-agent="active"] .mce-agent-instructions button{
  min-height:48px;
  padding:10px 13px;
  border:1px solid var(--mce-border);
  border-radius:12px;
  background:var(--mce-surface-2);
  color:var(--mce-text);
  font:650 13px/1.2 system-ui;
  touch-action:manipulation;
}
html[data-mce-agent="active"] .mce-agent-instructions-site{
  margin:0 0 12px;
  color:var(--mce-muted);
  font-size:13px;
  font-weight:650;
}
html[data-mce-agent="active"] .mce-agent-instructions-body{
  margin:0;
  padding:18px;
  border:1px solid var(--mce-border);
  border-radius:14px;
  background:var(--mce-surface);
  color:var(--mce-text);
  font-size:15px;
  line-height:1.65;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
html[data-mce-agent="active"] .mce-agent-instructions-empty{
  color:var(--mce-muted);
}
@media(max-width:390px){
  html[data-mce-agent="active"] .mce-field-bottom-nav button{font-size:9px!important;padding-inline:1px!important}
  html[data-mce-agent="active"] .mce-agent-instructions-head{align-items:stretch;flex-direction:column}
  html[data-mce-agent="active"] .mce-agent-instructions-head button{width:100%}
}
@media print{
  html[data-mce-agent="active"] .mce-agent-instructions-head button{display:none!important}
}
/* MCE automatic consigne notification — no acknowledgement button. */
html[data-mce-agent="active"] .mce-agent-consigne-alert{
  position:fixed;
  left:max(10px,env(safe-area-inset-left));
  right:max(10px,env(safe-area-inset-right));
  bottom:calc(74px + env(safe-area-inset-bottom));
  z-index:2147483000;
  width:auto;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  background:#10243d;
  color:#fff;
  box-shadow:0 16px 38px rgba(16,36,61,.28);
  font:750 14px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;
  text-align:center;
  touch-action:manipulation;
}
html[data-mce-agent="active"] .mce-agent-consigne-alert[hidden]{display:none!important}
html[data-mce-agent="active"] .mce-field-bottom-nav button[data-mce-bottom="instructions"]{position:relative}
html[data-mce-agent="active"] .mce-field-bottom-nav button[data-mce-bottom="instructions"][data-mce-consigne-alert="1"]::after{
  content:"";
  position:absolute;
  top:5px;
  right:calc(50% - 17px);
  width:9px;
  height:9px;
  border:2px solid var(--mce-surface,#fff);
  border-radius:999px;
  background:#d92d20;
  box-shadow:0 0 0 2px rgba(217,45,32,.12);
}
@media(min-width:721px){
  html[data-mce-agent="active"] .mce-agent-consigne-alert{left:50%;right:auto;width:min(520px,calc(100vw - 32px));transform:translateX(-50%)}
}
