#html-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(255,255,255,.3);
    align-items: center;
    justify-content: center;
}
#html-modal.open { display: flex; }
#html-modal.open #html-modal-outer {
    animation: hm-expand .5s cubic-bezier(.16,.84,.44,1) both;
}
#html-modal.closing #html-modal-outer {
    animation: hm-collapse .4s cubic-bezier(.4,0,.6,1) both;
}
@keyframes hm-expand {
    from { transform: scaleY(0.1) scaleX(0.75); opacity: 0; }
    to   { transform: scaleY(1)   scaleX(1);    opacity: 1; }
}
@keyframes hm-collapse {
    from { transform: scaleY(1)   scaleX(1);    opacity: 1; }
    to   { transform: scaleY(0.1) scaleX(0.75); opacity: 0; }
}
#html-modal-outer {
    position: relative;
    background: #052935;
    border: 10px solid #3a4040;
    width: 95vw;
    max-height: 80vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
