/* Human Bot IA V100 — Formularios visibles con teclado Android/iOS y PC. */
:root{--hb100-visible-height:100dvh;--hb100-visible-top:0px}
#hb72Tools.open{
  inset:auto 0 auto 0!important;
  top:var(--hb100-visible-top)!important;
  height:var(--hb100-visible-height)!important;
  max-height:var(--hb100-visible-height)!important;
  min-height:0!important;
}
#hb72Tools .hb72-head{padding-top:clamp(8px,2vh,14px)!important;min-height:56px!important}
#hb72Tools .hb72-body{
 min-height:0!important;min-width:0!important;
 padding-top:18px!important;
 padding-bottom:max(28px,env(safe-area-inset-bottom,0px))!important;
 scroll-padding-top:64px;scroll-padding-bottom:84px;
 overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior-y:contain;
}
/* Los títulos quedan separados físicamente de los bordes de inputs y textareas. */
#hb72Tools .hb72-body form{display:block;min-width:0;max-width:100%;padding-top:1px}
#hb72Tools .hb72-body form>label{
 display:block!important;height:auto!important;min-height:0!important;
 margin:18px 0 10px!important;padding:0!important;
 color:inherit;line-height:1.55!important;overflow:visible!important;
 position:relative;z-index:0;
}
#hb72Tools .hb72-body form>label>input,
#hb72Tools .hb72-body form>label>textarea,
#hb72Tools .hb72-body form>label>select{
 display:block!important;box-sizing:border-box!important;
 margin-top:10px!important;margin-bottom:0!important;
 width:100%;max-width:100%;min-width:0;
 min-height:52px;line-height:1.45!important;
 padding:12px 14px!important;
 font-size:16px!important;overflow-wrap:break-word;
 scroll-margin-block:88px 105px;
}
#hb72Tools .hb72-body textarea{height:auto;min-height:118px;max-height:45dvh;resize:vertical;overflow-y:auto;overflow-wrap:anywhere;white-space:pre-wrap}
#hb72Tools .hb72-body :is(input,textarea,select):focus{scroll-margin-top:88px;scroll-margin-bottom:105px}
#hb72Tools .hb72-body .hb72-actions{display:flex;gap:9px;flex-wrap:wrap}
#hb72Tools .hb100-delete-contact{background:#512635!important;border:1px solid #8e4a62!important;color:#fff!important}
#hb72Tools .hb72-entry{overflow-wrap:anywhere}
#hb72Tools .hb72-entry .hb72-actions button{max-width:100%;min-height:44px}
/* Evitar campos cortados en otras pantallas y el zoom automático de iPhone. */
input,textarea,select{box-sizing:border-box;min-width:0;max-width:100%;}
input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:max(16px,1em)}
input,textarea,[contenteditable=true]{user-select:text!important;-webkit-user-select:text!important}
/* No esconder el caret ni el texto activo cuando el teclado virtual está abierto. */
@media(max-width:767px){
 #hb72Tools .hb72-grid{gap:10px}
 #hb72Tools .hb72-card{min-width:0}
 #hb72Tools .hb72-body form>label{margin-top:20px!important}
 #hb72Tools .hb72-body :is(input,textarea,select){scroll-margin-block:95px 110px}
}
@media(max-width:340px){#hb72Tools .hb72-entry .hb72-actions .hb72-action{flex:1 1 42%}}
