.mw4-bug-report-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.45);
}

.mw4-bug-report-modal {
    position: fixed;
    inset: 0;
    z-index: 1051;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mw4-bug-report-dialog {
    width: min(100%, 640px);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    color: #222;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.mw4-bug-report-header,
.mw4-bug-report-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.mw4-bug-report-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 0;
    justify-content: flex-end;
}

.mw4-bug-report-header h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.25;
}

.mw4-bug-report-body {
    padding: 1rem;
}

.mw4-bug-report-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.mw4-bug-report-error {
    margin-top: .35rem;
    color: #b00020;
    font-size: .875rem;
}

.mw4-bug-report-success {
    margin-top: .75rem;
    color: #0f6b2f;
    font-weight: 600;
}

.mw4-bug-report-privacy {
    color: #666;
    font-size: .9rem;
}

.mw4-bug-report-modal[hidden],
.mw4-bug-report-backdrop[hidden],
.mw4-bug-report-success[hidden] {
    display: none;
}
