.bug-report-lock-trigger {
    min-height: 48px;
    margin-top: 18px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 13px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.bug-report-modal {
    position: fixed;
    inset: 0;
    z-index: 6500;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(12,30,24,.58);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility 0s linear .2s;
}

.bug-report-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.bug-report-sheet {
    width: min(100%, 520px);
    max-height: min(760px, calc(100dvh - 36px));
    overflow-y: auto;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 22px;
    background: #fff;
    color: #17211e;
    box-shadow: 0 28px 80px rgba(12,30,24,.28);
    transform: translateY(18px) scale(.98);
    transition: transform .24s cubic-bezier(.22,1,.36,1);
}

.bug-report-modal.is-open .bug-report-sheet { transform: none; }
.bug-report-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bug-report-heading h2 { margin: 0 0 5px; color: #173f35; font-size: 1.35rem; }
.bug-report-heading p { margin: 0; color: #66736e; font-size: .85rem; line-height: 1.4; }
.bug-report-close {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 13px;
    background: #f2f5f3;
    color: #173f35;
    font-size: 1.3rem;
    cursor: pointer;
}
.bug-report-form { display: grid; gap: 14px; margin-top: 22px; }
.bug-report-field { display: grid; gap: 7px; color: #17211e; font-size: .82rem; font-weight: 750; }
.bug-report-field input,
.bug-report-field select,
.bug-report-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #dfe7e3;
    border-radius: 12px;
    outline: none;
    background: #fbfcfb;
    color: #17211e;
    font: inherit;
}
.bug-report-field textarea { min-height: 130px; resize: vertical; line-height: 1.45; }
.bug-report-field input:focus,
.bug-report-field select:focus,
.bug-report-field textarea:focus { border-color: #173f35; box-shadow: 0 0 0 3px rgba(23,63,53,.1); }
.bug-report-meta { margin: 0; color: #66736e; font-size: .72rem; line-height: 1.4; }
.bug-report-status { min-height: 20px; margin: 0; color: #b9473e; font-size: .78rem; font-weight: 650; }
.bug-report-status.success { color: #23724f; }
.bug-report-submit {
    min-height: 50px;
    border: 0;
    border-radius: 13px;
    background: #173f35;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.bug-report-submit:disabled { cursor: wait; opacity: .6; }
body.bug-report-open { overflow: hidden; }

@media (max-width: 560px) {
    .bug-report-modal { align-items: end; padding: 0; }
    .bug-report-sheet { max-height: calc(100dvh - 10px); padding: 20px; border-radius: 22px 22px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bug-report-modal, .bug-report-sheet { transition-duration: .01ms !important; }
}
