#hpiEventDialog{width:min(820px,calc(100vw - 40px));max-width:none;max-height:calc(100vh - 40px);padding:0;overflow:auto;background:#fff;color:#171a2b;border:1px solid #dfe2ea;border-radius:20px}
#hpiEventDialog::backdrop{background:#242033;opacity:.97;backdrop-filter:none}
.hpi-event-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:0;padding:24px 28px;background:#24194b;color:#fff;border-bottom:0}
.hpi-event-head>div{min-width:0}.hpi-event-head small{color:#c9bbff;font-size:10px;font-weight:850;letter-spacing:.14em}.hpi-event-head h2{margin:6px 0;font-size:25px}.hpi-event-head p{margin:0;color:#ddd7f2;overflow-wrap:anywhere}.hpi-event-head .close{flex:0 0 38px;width:38px;height:38px;background:#fff;color:#24194b;border-radius:10px}
.hpi-event-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:24px 28px;background:#fff}.hpi-event-grid label{display:grid;gap:7px;min-width:0;color:#41475a;font-size:12px;font-weight:750}.hpi-event-grid .wide{grid-column:1/-1}.hpi-event-grid input,.hpi-event-grid select,.hpi-event-grid textarea{width:100%;min-width:0;padding:11px 12px;border:1px solid #d8dce6;border-radius:10px;background:#fff;color:#171a2b;outline:0;font:inherit}.hpi-event-grid textarea{resize:vertical;line-height:1.5}.hpi-event-grid input:focus,.hpi-event-grid select:focus,.hpi-event-grid textarea:focus{border-color:#6d4bd0;box-shadow:0 0 0 3px #6d4bd019}.hpi-event-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 28px;background:#f6f7fa;border-top:1px solid #e2e5ec}.hpi-event-actions button{min-height:42px}.hpi-event-actions button:not(.secondary){background:#6444c6}.hpi-event-actions button:disabled{opacity:.55}
@media(max-width:650px){#hpiEventDialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.hpi-event-head,.hpi-event-grid,.hpi-event-actions{padding-left:18px;padding-right:18px}.hpi-event-grid{grid-template-columns:1fr}.hpi-event-grid .wide{grid-column:auto}.hpi-event-actions{flex-direction:column-reverse}.hpi-event-actions button{width:100%}}
