/* hyMarketing campaign composer — native, accessible top-layer modal.
   The list remains stationary and rendered behind the dialog. */
.v16-page.hymarketing-page #cmp-new.hm-campaign-dialog{
  position:fixed;
  inset:0;
  margin:auto;
  width:min(1060px,calc(100vw - 32px));
  max-width:none;
  max-height:calc(100dvh - 30px);
  max-height:calc(100vh - 30px);
  max-height:calc(100dvh - 30px);
  min-width:0;
  padding:clamp(16px,2.3vw,28px);
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  color:var(--hm-ink);
  background:linear-gradient(150deg,color-mix(in srgb,var(--hm-violet) 5%,var(--hm-surface)),var(--hm-surface));
  border:1px solid color-mix(in srgb,var(--hm-cyan) 56%,var(--hm-line));
  border-radius:22px;
  box-shadow:0 22px 100px #000c,0 0 30px color-mix(in srgb,var(--hm-cyan) 18%,transparent);
  scrollbar-width:thin;
}
.v16-page.hymarketing-page #cmp-new.hm-campaign-dialog:not([open]){display:none}
.v16-page.hymarketing-page #cmp-new.hm-campaign-dialog::backdrop{
  background:rgba(2,5,17,.86);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.v16-page.hymarketing-page .hm-campaign-dialog-header{
  position:sticky;
  top:-1px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:9px 6px 13px;
  margin:-7px -5px 14px;
  background:var(--hm-surface);
  border-bottom:1px solid var(--hm-line);
  border-radius:12px 12px 0 0;
  z-index:6;
}
.v16-page.hymarketing-page .hm-campaign-dialog-heading{min-width:0;flex:1}
.v16-page.hymarketing-page .hm-campaign-dialog-kicker{
  margin:0 0 6px;
  color:var(--hm-cyan);
  font-size:10px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.16em
}
.v16-page.hymarketing-page .hm-campaign-dialog-header h2{
  display:flex;
  gap:9px;
  align-items:center;
  flex-wrap:wrap;
  margin:0 0 5px;
  line-height:1.25;
  font-size:clamp(18px,2.2vw,26px);
  overflow-wrap:anywhere
}
.v16-page.hymarketing-page .hm-campaign-dialog-header #cmp-editor-id{
  font-size:11px;
  color:var(--hm-muted);
  overflow-wrap:anywhere
}
.v16-page.hymarketing-page .hm-campaign-dialog-description{
  font-size:12px;
  line-height:1.45;
  color:var(--hm-muted);
  margin:0;
}
.v16-page.hymarketing-page button.hm-campaign-dialog-dismiss{
  flex:0 0 44px;
  height:44px;
  width:44px;
  min-width:44px;
  min-height:44px;
  max-width:44px;
  padding:7px;
  border-radius:12px;
}
.v16-page.hymarketing-page #cmp-new .editor-actions{
  position:sticky;
  bottom:0;
  padding:13px 3px;
  background:var(--hm-surface);
  border-top:1px solid var(--hm-line);
  box-shadow:0 -10px 18px color-mix(in srgb,var(--hm-bg) 32%,transparent);
  border-radius:12px 12px 0 0;
  z-index:5;
}
body.hm-composer-modal-open{overflow:hidden}
@media(max-width:680px){
  .v16-page.hymarketing-page #cmp-new.hm-campaign-dialog{
    width:calc(100vw - 12px);
    max-height:calc(100dvh - 12px);
    padding:13px 12px 18px;
    border-radius:16px;
  }
  .v16-page.hymarketing-page .hm-campaign-dialog-header{
    margin:-4px -3px 10px;
    padding:7px 4px 10px;
    gap:8px;
  }
  .v16-page.hymarketing-page .hm-campaign-dialog-description{font-size:11px}
  .v16-page.hymarketing-page #cmp-new .editor-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding:10px 2px;
  }
  .v16-page.hymarketing-page #cmp-new .editor-actions .btn{
    width:100%;
    min-width:0;
    font-size:12px;
    padding:8px 5px;
  }
  .v16-page.hymarketing-page #cmp-new .editor-actions .autosave-state{
    grid-column:1/-1;
    text-align:center;
  }
}
@media(prefers-reduced-motion:reduce){
  .v16-page.hymarketing-page #cmp-new,
  .v16-page.hymarketing-page #cmp-new *{scroll-behavior:auto}
}
