.nsr-modal[hidden] {
    display: none !important;
}

body.nsr-modal-open {
    overflow: hidden;
}

.nsr-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.nsr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.nsr-modal-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(420px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 10px;
    background: #fff;
    color: #1e1e1e;
    padding: 20px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.nsr-modal-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.nsr-modal-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.nsr-modal-close {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    padding: 2px 6px;
}

.nsr-modal-scroll {
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.nsr-modal-actions {
    display: grid;
    gap: 10px;
}

.nsr-modal-action {
    min-height: 44px;
    border: 1px solid #1e1e1e;
    border-radius: 5px;
    background: #fff;
    color: #1e1e1e;
    cursor: pointer;
    font: inherit;
    padding: 10px 14px;
    text-align: left;
}

.nsr-modal-action:hover,
.nsr-modal-action:focus-visible {
    background: #f0f0f0;
}

.nsr-modal-status {
    min-height: 1.5em;
    margin: 12px 0 0;
}

.nsr-stats table {
    border-collapse: collapse;
    width: min(100%, 620px);
}

.nsr-stats th,
.nsr-stats td {
    border: 1px solid currentColor;
    padding: 0.45rem 0.6rem;
    text-align: left;
}

.nsr-stats-note {
    font-size: 0.9em;
    max-width: 68ch;
}

