html.hm-event-open { overflow: hidden; }
dialog.hm-event-modal { position: fixed; inset: 0; width: min(900px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 8px; overflow: auto; background: #fff; color: #39302a; box-shadow: 0 16px 60px #0003; font: 14px/1.4 "Trebuchet MS", Arial, sans-serif; }
dialog.hm-event-modal::backdrop { background: rgb(20 22 28 / 30%); }
.hm-event-image { display: block; width: 100%; height: auto; }
.hm-event-close { position: absolute; z-index: 1; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #fff9; border-radius: 50%; background: #3d251dcc; color: #fff; font: 26px/1 Arial, sans-serif; cursor: pointer; }
.hm-event-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; }
.hm-event-silence { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.hm-event-silence input { appearance: auto; width: 17px; height: 17px; margin: 0; accent-color: #94291b; }
.hm-event-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 20px; border-radius: 4px; background: #94291b; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hm-event-link:hover { background: #762016; }
.hm-event-modal :focus-visible { outline: 3px solid #c58c3c; outline-offset: 3px; }
@media (max-width: 600px) {
    dialog.hm-event-modal { width: calc(100% - 24px); }
    .hm-event-footer { flex-direction: column-reverse; align-items: stretch; gap: 14px; padding: 16px; }
    .hm-event-silence { justify-content: center; min-height: 32px; font-size: 12px; }
}
