.bug-report-bubble {
    position: fixed;
    right: 24px;
    bottom: 88px;
    z-index: 1030;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #5b5365;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(35, 15, 60, .35);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.bug-report-bubble:hover {
    background: #433b4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(35, 15, 60, .4);
}

.bug-report-bubble:focus-visible {
    outline: 3px solid #c9a8f0;
    outline-offset: 3px;
}

.bug-report-bubble.is-loading {
    cursor: wait;
    opacity: .65;
}

.bug-report-capturing .bug-report-bubble,
.bug-report-capturing .workflow-help-bubble,
.bug-report-capturing .modal-container {
    visibility: hidden !important;
}

.bug-report-dialog .modal-dialog {
    width: calc(100vw - 32px);
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

.bug-report-dialog .modal-content {
    width: 100% !important;
    margin-left: 0 !important;
}

.bug-report-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bug-report-fields,
.bug-report-extras {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 18px;
}

.bug-report-description,
.bug-report-priority {
    margin: 0;
}

.bug-report-section {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--panel-border-color, #d8dde4);
    border-radius: 8px;
    background: var(--panel-bg, #fff);
}

.bug-report-section h4 {
    margin: 0 0 12px;
}

.bug-report-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bug-report-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.bug-report-toolbar .btn.active {
    color: #fff;
    background: #5b5365;
    border-color: #433b4d;
}

.bug-report-toolbar-separator {
    width: 1px;
    margin: 2px 4px;
    background: var(--panel-border-color, #d8dde4);
}

.bug-report-canvas-wrap {
    max-height: 58vh;
    overflow: auto;
    border: 1px solid var(--panel-border-color, #c8ced6);
    border-radius: 4px;
    background-color: #252525;
    background-image:
        linear-gradient(45deg, #303030 25%, transparent 25%),
        linear-gradient(-45deg, #303030 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #303030 75%),
        linear-gradient(-45deg, transparent 75%, #303030 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.bug-report-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
    touch-action: none;
}

.bug-report-canvas-wrap canvas[data-tool="select"] {
    cursor: move;
}

.bug-report-audio-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bug-report-recording {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b42318;
    font-variant-numeric: tabular-nums;
}

.bug-report-recording-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d92d20;
    animation: bug-report-recording-pulse 1.2s ease-in-out infinite;
}

.bug-report-file-name {
    overflow-wrap: anywhere;
}

.bug-report-file-list {
    margin: 8px 0 0;
    padding-left: 20px;
}

@keyframes bug-report-recording-pulse {
    50% {
        opacity: .35;
    }
}

@media (max-width: 767px) {
    .bug-report-fields,
    .bug-report-extras {
        grid-template-columns: 1fr;
    }

    .bug-report-toolbar .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .bug-report-bubble {
        right: 16px;
        bottom: 74px;
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
}
