.d24-bug-launcher {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 999px;
    background: #a4262c;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(164, 38, 44, 0.28);
    cursor: pointer;
}

.d24-bug-launcher:hover {
    background: #8f1f25;
}

.d24-bug-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(16, 16, 16, 0.45);
}

.d24-bug-modal[hidden],
.d24-bug-screenshot-preview[hidden] {
    display: none !important;
}

.d24-bug-modal-open {
    overflow: hidden;
}

.d24-bug-dialog {
    width: min(100%, 34rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.d24-bug-dialog-header,
.d24-bug-dialog-body,
.d24-bug-dialog-footer {
    padding: 1rem 1.25rem;
}

.d24-bug-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edebe9;
}

.d24-bug-dialog-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.d24-bug-close {
    border: none;
    background: transparent;
    color: #605e5c;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.d24-bug-field {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.d24-bug-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #323130;
}

.d24-bug-field input,
.d24-bug-field textarea,
.d24-bug-field select {
    width: 100%;
    border: 1px solid #c8c6c4;
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
    font: inherit;
}

.d24-bug-field textarea {
    min-height: 7rem;
    resize: vertical;
}

.d24-bug-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.d24-bug-meta {
    margin: 0 0 0.9rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #f3f2f1;
    color: #605e5c;
    font-size: 0.75rem;
    line-height: 1.5;
    word-break: break-word;
}

.d24-bug-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.d24-bug-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 0.9rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.d24-bug-btn-primary {
    background: #0078d4;
    color: #fff;
}

.d24-bug-btn-secondary {
    background: #fff;
    border-color: #c8c6c4;
    color: #323130;
}

.d24-bug-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid #edebe9;
}

.d24-bug-status {
    min-height: 1.25rem;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #605e5c;
}

.d24-bug-status.is-error {
    color: #a4262c;
}

.d24-bug-status.is-success {
    color: #107c10;
}

.d24-bug-status.is-info {
    color: #0078d4;
}

.d24-bug-screenshot-preview {
    display: block;
    width: 100%;
    max-height: 16rem;
    margin-top: 0.75rem;
    border: 1px solid #edebe9;
    border-radius: 0.5rem;
    background: #f3f2f1;
    object-fit: contain;
    object-position: top left;
}

.d24-bug-capture-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    cursor: crosshair;
    background: rgba(0, 0, 0, 0.18);
}

.d24-bug-capture-hint {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 0.875rem;
    pointer-events: none;
}

.d24-bug-capture-selection {
    position: absolute;
    border: 2px solid #0078d4;
    background: rgba(0, 120, 212, 0.12);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

@media (max-width: 640px) {
    .d24-bug-grid {
        grid-template-columns: 1fr;
    }

    .d24-bug-launcher {
        right: 1rem;
        bottom: 1rem;
    }
}