/* Vchat 0.36.61 — definitive AI editor interaction layer */
.vchat-frontend-app #vchat-modal.is-ai-editor,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-modal-dialog,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-modal-head,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-modal-body,
.vchat-frontend-app #vchat-modal.is-ai-editor #vchat-ai-agent-form,
.vchat-frontend-app #vchat-modal.is-ai-editor #vchat-ai-agent-form *{
  pointer-events:auto!important;
}
.vchat-frontend-app #vchat-modal.is-ai-editor::before,
.vchat-frontend-app #vchat-modal.is-ai-editor::after,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-modal-dialog::before,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-modal-dialog::after,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-modal-body::before,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-modal-body::after{
  pointer-events:none!important;
}
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-modal-dialog{z-index:2147483000!important}
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-modal-body{position:relative!important;z-index:2!important;isolation:isolate!important}
.vchat-frontend-app #vchat-modal.is-ai-editor #vchat-ai-agent-form{position:relative!important;z-index:4!important}

.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-check-grid>label,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-channel-checks>label,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-auto-toggle{
  position:relative!important;
  z-index:5!important;
  cursor:pointer!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  touch-action:manipulation!important;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
}
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-check-grid>label:hover,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-channel-checks>label:hover,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-auto-toggle:hover{
  border-color:#bdb3dd!important;
  background:#faf8ff!important;
}
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-check-grid>label.is-selected,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-channel-checks>label.is-selected,
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-auto-toggle.is-selected{
  border-color:#6754b5!important;
  background:#f2efff!important;
  box-shadow:0 0 0 2px rgba(103,84,181,.10)!important;
}
.vchat-frontend-app #vchat-modal.is-ai-editor input[type="checkbox"]{
  position:relative!important;
  z-index:9!important;
  pointer-events:auto!important;
  accent-color:#6754b5!important;
}
.vchat-frontend-app #vchat-modal.is-ai-editor [data-ai-submit-agent]{
  position:relative!important;
  z-index:20!important;
  min-width:150px!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
}
.vchat-frontend-app #vchat-modal.is-ai-editor [data-ai-submit-agent]:disabled{opacity:.65!important;cursor:wait!important;pointer-events:none!important}

/* Readability + breathing room for routing controls */
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-editor-section>strong{display:block!important;margin:0 0 5px!important;font-size:12.5px!important;line-height:1.3!important}
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-editor-section>p{margin:0!important;font-size:10px!important;line-height:1.5!important;color:#888299!important}
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-channel-checks label{font-size:11px!important;font-weight:800!important}
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-check-grid>label{min-height:72px!important}
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-check-grid>label b{font-size:11px!important;line-height:1.3!important}
.vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-check-grid>label small{margin-top:4px!important;font-size:9px!important;line-height:1.3!important;color:#8b8599!important}

@media(max-width:760px){
  .vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-check-grid,
  .vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-channel-checks{grid-template-columns:1fr 1fr!important}
  .vchat-frontend-app #vchat-modal.is-ai-editor [data-ai-submit-agent]{width:100%!important}
}
@media(max-width:440px){
  .vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-check-grid,
  .vchat-frontend-app #vchat-modal.is-ai-editor .vchat-ai-channel-checks{grid-template-columns:1fr!important}
}
