/* M41 Workstream C — guest support widget shell (fail-closed · preview/staging). */
#ema-m41-widget-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  font-family: system-ui, -apple-system, sans-serif;
}
#ema-m41-widget-launcher button {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
#ema-m41-widget-launcher button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
#ema-m41-widget-panel {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 4.5rem;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(70vh, 32rem);
  overflow: auto;
  z-index: 60;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #111;
}
#ema-m41-widget-panel[aria-hidden="false"] {
  display: block;
}
#ema-m41-widget-panel h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
#ema-m41-widget-panel .m41-banner {
  background: #f5f5f5;
  border: 1px solid #ccc;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}
#ema-m41-widget-panel .m41-notice {
  margin: 0.45rem 0;
}
#ema-m41-widget-panel .m41-warn {
  color: #6b2d00;
}
#ema-m41-widget-panel label {
  display: block;
  font-weight: 600;
  margin-top: 0.6rem;
  font-size: 0.82rem;
}
#ema-m41-widget-panel input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem;
  margin-top: 0.2rem;
  border: 1px solid #ccc;
}
#ema-m41-widget-panel .m41-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}
#ema-m41-widget-panel button[type="submit"] {
  margin-top: 0.65rem;
  padding: 0.5rem 0.85rem;
  background: #111;
  color: #fff;
  border: none;
  cursor: not-allowed;
  opacity: 0.55;
}
#ema-m41-widget-panel a {
  color: #0645ad;
}
#ema-m41-widget-status {
  margin-top: 0.65rem;
  font-size: 0.85rem;
}

/* Gate A — mobile overlap polish · clear hero/stats strip · desktop unchanged */
@media (max-width: 767px) {
  #ema-m41-widget-launcher {
    right: 0.75rem;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
  #ema-m41-widget-panel {
    right: 0.75rem;
    bottom: calc(9rem + env(safe-area-inset-bottom, 0px));
    width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(58vh, 28rem);
  }
}

