.ei-ajax-portal-trigger{font:inherit}
.ei-ajax-portal-trigger--button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 15px;border:1px solid currentColor;border-radius:10px;background:transparent;color:inherit;cursor:pointer;text-decoration:none;transition:transform .16s ease,opacity .16s ease,background-color .16s ease}
.ei-ajax-portal-trigger--button:hover,.ei-ajax-portal-trigger--button:focus-visible{transform:translateY(-1px);background:color-mix(in srgb,currentColor 8%,transparent);outline:none}
.ei-ajax-portal-trigger--text{color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ei-ap-modal[hidden]{display:none!important}
.ei-ap-modal{position:fixed!important;inset:0!important;z-index:2147483647!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;background:#020617!important;overscroll-behavior:contain!important}
.ei-ap-panel{position:relative;z-index:1;width:min(92vw,980px);max-height:92vh;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:#0f172a;color:#f8fafc;box-shadow:0 28px 90px rgba(0,0,0,.44)}
.ei-ap-panel--compact{width:min(90vw,680px)}
.ei-ap-panel--normal{width:min(92vw,980px)}
.ei-ap-panel--wide{width:min(95vw,1240px)}
.ei-ap-panel--full{width:min(98vw,1540px);height:96vh;max-height:96vh}
.ei-ap-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:10px 12px 10px 18px;border-bottom:1px solid rgba(255,255,255,.12);background:#0f172a}
.ei-ap-modal-head h2{margin:0!important;color:#f8fafc!important;font:700 16px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.ei-ap-modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:38px}
.ei-ap-open-new{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border-radius:8px;color:#cbd5e1!important;text-decoration:none!important;font:600 12px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.ei-ap-open-new:hover{background:rgba(255,255,255,.08);color:#fff!important}
.ei-ap-close{position:relative!important;display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;margin:0!important;padding:0!important;border:0!important;border-radius:10px!important;box-sizing:border-box!important;-webkit-appearance:none!important;appearance:none!important;background:transparent!important;color:#fff!important;font-size:0!important;line-height:0!important;cursor:pointer!important;vertical-align:middle!important}
.ei-ap-close::before,.ei-ap-close::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2px;border-radius:2px;background:currentColor;transform-origin:center}
.ei-ap-close::before{transform:translate(-50%,-50%) rotate(45deg)}
.ei-ap-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.ei-ap-close:hover,.ei-ap-close:focus-visible{background:#263247!important;outline:none!important}
.ei-ap-close:focus-visible{box-shadow:0 0 0 2px rgba(255,255,255,.22)}
.ei-ap-modal-body{position:relative;min-height:180px;height:min(var(--ei-ap-content-height,760px),calc(92vh - 58px));overflow:auto;background:#fff;color:#111827;overscroll-behavior:contain}
.ei-ap-modal-body--frame{overflow:hidden!important}
.ei-ap-panel--full .ei-ap-modal-body{flex:1;height:auto}
.ei-ap-loading{min-height:220px;display:grid;place-items:center;align-content:center;gap:14px;color:#475569;font:600 14px/1.4 system-ui}
.ei-ap-spinner{width:30px;height:30px;border:3px solid #cbd5e1;border-top-color:#334155;border-radius:50%;animation:ei-ap-spin .8s linear infinite}
.ei-ap-error{min-height:220px;display:grid;place-items:center;align-content:center;gap:12px;padding:28px;text-align:center;color:#7f1d1d;font:600 14px/1.5 system-ui}
.ei-ap-error a{color:#1d4ed8}
.ei-ap-ajax-content{min-height:100%;padding:22px}
.ei-ap-frame-wrap{position:relative;width:100%;height:100%;min-height:100%;overflow:hidden;background:#fff}
.ei-ap-frame{display:block;width:100%;height:100%;min-height:100%;border:0;background:#fff}
.ei-ap-frame-hint{position:absolute;left:12px;right:12px;bottom:10px;margin:0;padding:8px 12px;border-radius:999px;background:rgba(15,23,42,.86);color:#e2e8f0;font:500 11px/1.35 system-ui;text-align:center;pointer-events:none}
html.ei-ap-modal-open,body.ei-ap-modal-open{overflow:hidden!important;overscroll-behavior:none!important}
@keyframes ei-ap-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){
  .ei-ap-modal{padding:0!important}
  .ei-ap-panel,.ei-ap-panel--compact,.ei-ap-panel--normal,.ei-ap-panel--wide,.ei-ap-panel--full{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-shadow:none}
  .ei-ap-modal-head{min-height:54px;padding-left:14px}
  .ei-ap-modal-body,.ei-ap-panel--full .ei-ap-modal-body{flex:1;height:auto}
  .ei-ap-open-new{font-size:11px}
  .ei-ap-ajax-content{padding:16px}
}
@media(prefers-reduced-motion:reduce){
  .ei-ajax-portal-trigger--button{transition:none}
  .ei-ap-spinner{animation-duration:1.6s}
}
