.defect-report-open-btn {
    position: absolute;
    top: 28px;
    right: calc(clamp(18px, 4vw, 48px) + 180px);
    z-index: 5;
    padding: 11px 16px;
    color: #fff4c7;
    border: 1px solid rgba(255, 233, 151, 0.54);
    border-radius: 999px;
    background: rgba(9, 46, 45, 0.66);
    box-shadow: 0 12px 26px rgba(2, 19, 25, 0.34);
    backdrop-filter: blur(5px);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.defect-report-open-btn:hover {
    background: rgba(18, 73, 61, 0.82);
    box-shadow: 0 15px 30px rgba(2, 19, 25, 0.42);
    transform: translateY(-1px);
}

.defect-report-overlay {
    position: fixed;
    inset: 0;
    z-index: 2460;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 36px);
    background: rgba(6, 13, 26, 0.62);
}

.defect-report-overlay.hidden {
    display: none;
}

.defect-report-modal {
    width: min(760px, 94vw);
    max-height: min(760px, 92vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #10201d;
    border: 1px solid rgba(255, 236, 160, 0.42);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(252, 250, 229, 0.98), rgba(232, 244, 226, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.defect-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    color: #fff6d2;
    border-bottom: 1px solid rgba(255, 236, 160, 0.26);
    background: linear-gradient(180deg, rgba(18, 73, 61, 0.96), rgba(7, 38, 43, 0.96));
}

.defect-report-eyebrow {
    margin: 0 0 3px;
    color: rgba(255, 232, 152, 0.76);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.defect-report-header h2 {
    margin: 0;
    font-size: 1.45rem;
}

.defect-report-close-btn {
    width: 40px;
    height: 40px;
    color: #fff6d2;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
}

.defect-report-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.defect-report-form {
    overflow: auto;
    display: grid;
    gap: 14px;
    padding: 20px 22px 22px;
}

.defect-report-row {
    display: grid;
    gap: 7px;
}

.defect-report-row label {
    color: #10201d;
    font-weight: 900;
}

.defect-report-row input,
.defect-report-row select,
.defect-report-row textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    color: #10201d;
    border: 1px solid rgba(16, 64, 55, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    font: inherit;
}

.defect-report-row textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.55;
}

.defect-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
    gap: 12px;
}

.defect-report-user {
    padding: 10px 12px;
    border: 1px solid rgba(16, 64, 55, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    color: #38514b;
    font-size: 0.9rem;
    font-weight: 800;
}

.defect-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.defect-report-secondary-btn,
.defect-report-primary-btn {
    min-height: 40px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
}

.defect-report-secondary-btn {
    color: #fff6d2;
    background: rgba(18, 73, 61, 0.86);
}

.defect-report-primary-btn {
    color: #2d1b04;
    background: linear-gradient(180deg, #fff2a8, #e6b241 50%, #9b6419);
}

.defect-report-secondary-btn:disabled,
.defect-report-primary-btn:disabled {
    cursor: default;
    opacity: 0.62;
}

.defect-report-status {
    min-height: 1.2em;
    margin: 0;
    color: #166534;
    font-weight: 800;
}

.defect-report-status.is-error {
    color: #b91c1c;
}

@media (max-width: 720px) {
    .defect-report-open-btn {
        top: 62px;
        right: 16px;
    }

    .defect-report-grid {
        grid-template-columns: 1fr;
    }

    .defect-report-actions {
        justify-content: stretch;
    }

    .defect-report-secondary-btn,
    .defect-report-primary-btn {
        flex: 1 1 120px;
    }
}
