.hv518-modal{border:0;max-width:min(780px,96vw);width:780px;max-height:92dvh;background:white;color:#263749;border-radius:16px;padding:0;box-shadow:0 25px 90px #0006}
.hv518-modal::backdrop{background:rgba(14,28,45,.65)}
.hv518-inner{padding:24px;max-height:92dvh;overflow:auto;font:15px/1.5 system-ui,sans-serif}
.hv518-header{display:flex;gap:18px;justify-content:space-between}
.hv518-header small{color:#65821f;font-weight:800;font-size:11px;letter-spacing:.1em}
.hv518-header h3{font-size:24px;color:#193654;margin:6px 0}.hv518-header p{margin:2px 0 16px;color:#66768a}
.hv518-close{font-size:24px;background:#f1f4f6;border:0;border-radius:10px;padding:1px 12px;height:max-content}
.hv518-field{display:grid;gap:6px;font-weight:700}.hv518-field select{padding:10px;border:1px solid #ccd7e2;border-radius:9px;font:inherit;background:white;max-width:100%}
.hv518-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.hv518-actions button,.hv518-inner footer button{padding:9px 12px;border:1px solid #94ac55;border-radius:9px;background:#edf3e0;color:#254424;font-weight:700;cursor:pointer}
.hv518-actions button:disabled,.hv518-inner footer button:disabled{opacity:.5;cursor:not-allowed}
.hv518-summary{border-top:1px solid #dbe2ea;padding-top:10px}.hv518-summary h4{font-size:19px;margin:7px 0}.hv518-summary>p{color:#5d6f7f}
.hv518-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hv518-kpi{background:#f5f7fa;border:1px solid #dde5ec;padding:12px;border-radius:10px;display:grid;gap:3px}
.hv518-kpi b{font-size:25px}.hv518-kpi small{font-size:12px;color:#637284}
.hv518-variables,.hv518-issues,.hv518-meta{border:1px solid #e0e6eb;border-radius:10px;padding:12px;margin-top:12px}
.hv518-variable{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid #eee}.hv518-variable:last-child{border:0}
.hv518-variable strong{flex:1}.hv518-variable span{flex:2;overflow-wrap:anywhere;text-align:right}.hv518-missing{color:#a12635}
.hv518-issues h5,.hv518-variables h5{font-size:15px;margin:0 0 6px}
.hv518-issues p{margin:6px 0}.hv518-issues small{color:#687789}.hv518-meta p{margin:5px 0}
#hv518-msg{color:#336b44;min-height:22px}.hv518-error{color:#b02a37!important}
.hv518-inner footer{border-top:1px solid #e1e8ed;margin-top:14px;padding-top:12px}
.hv518-inner footer p{font-size:12px;color:#687889}
@media(max-width:640px){.hv518-inner{padding:14px}.hv518-header h3{font-size:19px}.hv518-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.hv518-actions button{flex:1 1 100%}.hv518-variable{display:block}.hv518-variable span{display:block;text-align:left}}

/* HV521 · Un diálogo a la vez, sin scroll horizontal ni cierres cortados. */
.hv518-modal,.hv518-modal *{box-sizing:border-box!important}
.hv518-modal{
 width:min(800px,calc(100vw - 36px))!important;
 max-width:calc(100vw - 24px)!important;max-height:min(92dvh,900px)!important;
 padding:0!important;overflow:hidden!important;margin:auto!important;
}
.hv518-modal .hv518-inner{
 width:100%!important;max-width:100%!important;max-height:min(92dvh,900px)!important;
 overflow-x:hidden!important;overflow-y:auto!important;
 overscroll-behavior:contain;scrollbar-gutter:stable;
}
.hv518-modal .hv518-header>div{min-width:0!important}
.hv518-modal .hv518-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
.hv518-modal .hv518-actions button{min-width:0!important;white-space:normal!important;line-height:1.35!important}
.hv518-modal .hv518-field{min-width:0!important}
.hv518-modal .hv518-field select{width:100%!important;min-width:0!important;max-width:100%!important}
.hv518-modal .hv518-inner footer{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
.hv518-modal .hv518-inner footer button{min-width:0!important;white-space:normal!important;line-height:1.35!important}
.hv518-modal .hv518-inner footer p{grid-column:1/-1!important}
@media(max-width:650px){
 .hv518-modal{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:94dvh!important}
 .hv518-modal .hv518-inner{max-height:94dvh!important;padding:16px 14px!important}
 .hv518-modal .hv518-actions{grid-template-columns:1fr!important}
 .hv518-modal .hv518-inner footer{grid-template-columns:1fr!important}
 .hv518-modal .hv518-inner footer p{grid-column:1!important}
}

/* HV524 · Enlace público exacto de la salida, independiente del formulario de Meta. */
.hv518-modal .hv524-trip-link{
  margin-top:12px;padding:14px;border:1px solid #cadbb8;background:#f7faef;
  border-radius:12px;min-width:0;max-width:100%;display:grid;gap:9px;
}
.hv518-modal .hv524-trip-link h5{margin:0;font-size:15px;line-height:1.4;color:#223d20}
.hv518-modal .hv524-trip-link .hv524-url{
  color:#26366b;font-weight:700;font-size:14px;overflow-wrap:anywhere;
  word-break:break-word;margin:0;max-width:100%;
}
.hv518-modal .hv524-link-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.hv518-modal .hv524-link-actions>*{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:9px 12px;border:1px solid #90aa5f;
  border-radius:10px;font:700 14px/1.4 system-ui,sans-serif;
  background:white;color:#283f2a;white-space:normal;text-decoration:none;
  cursor:pointer;max-width:100%;box-sizing:border-box;
}
.hv518-modal .hv524-link-actions>*:focus-visible{outline:2px solid #28427f;outline-offset:2px}
.hv518-modal .hv524-trip-link small{
  font-size:12px;color:#65748a;line-height:1.5;overflow-wrap:anywhere;
}
@media(max-width:640px){
 .hv518-modal .hv524-trip-link{padding:12px}
 .hv518-modal .hv524-link-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 .hv518-modal .hv524-link-actions>*{width:100%}
}