.lc-error-report-modal {
    --report-ink: #172033;
    --report-muted: #64748b;
    --report-border: #dce3ec;
    --report-accent: #e34b31;
}

.lc-error-report-modal .modal-dialog {
    max-width: min(760px, calc(100vw - 24px));
}

.lc-error-report-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
}

body.lc-app-shell:not(.lc-auth-shell) .lc-error-report-modal .modal-header {
    align-items: flex-start;
    padding: 22px 24px 18px;
    color: #fff;
    border: 0 !important;
    background:
        linear-gradient(115deg, rgba(227, 75, 49, 0.96), rgba(15, 23, 42, 0.96)),
        #172033 !important;
    color: #fff !important;
}

body.lc-app-shell:not(.lc-auth-shell) .lc-error-report-modal .modal-header :is(.modal-title, i) {
    color: #fff !important;
}

body.lc-app-shell:not(.lc-auth-shell) .lc-error-report-modal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: 0.78;
}

.lc-error-report-heading {
    display: flex;
    gap: 14px;
    min-width: 0;
}

.lc-error-report-heading-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.lc-error-report-modal .modal-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.lc-error-report-subtitle {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    line-height: 1.45;
}

.lc-error-report-modal .modal-body {
    padding: 22px 24px;
    background: #f8fafc;
}

.lc-error-report-modal .form-label {
    margin-bottom: 7px;
    color: var(--report-ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.lc-error-report-modal textarea.form-control {
    min-height: 124px;
    resize: vertical;
    border-color: var(--report-border);
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
}

.lc-error-report-modal textarea.form-control:focus {
    border-color: rgba(227, 75, 49, 0.7);
    box-shadow: 0 0 0 3px rgba(227, 75, 49, 0.1);
}

.lc-error-report-help {
    margin-top: 6px;
    color: var(--report-muted);
    font-size: 0.75rem;
}

.lc-error-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 14px;
    margin-top: 18px;
}

.lc-error-report-panel {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--report-border);
    border-radius: 8px;
    background: #fff;
}

.lc-error-report-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 28px;
    margin-bottom: 10px;
}

.lc-error-report-panel-title {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0;
    color: var(--report-ink);
    font-size: 0.78rem;
    font-weight: 700;
}

.lc-error-report-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #eef2f7;
}

.lc-error-report-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.lc-error-report-preview-status {
    padding: 16px;
    color: var(--report-muted);
    font-size: 0.76rem;
    text-align: center;
}

.lc-error-report-panel .form-check {
    min-height: 22px;
    margin: 0;
}

.lc-error-report-panel .form-check + .form-check {
    margin-top: 11px;
}

.lc-error-report-panel .form-check-label {
    color: var(--report-ink);
    font-size: 0.78rem;
    line-height: 1.35;
}

.lc-error-report-panel .form-check-input:checked {
    border-color: var(--report-accent);
    background-color: var(--report-accent);
}

.lc-error-report-identity {
    display: flex;
    gap: 9px;
    margin-top: 14px;
    padding: 11px 12px;
    color: #475569;
    border: 1px solid #dbe4ee;
    border-radius: 7px;
    background: #eef4f8;
    font-size: 0.75rem;
    line-height: 1.45;
}

.lc-error-report-page {
    overflow: hidden;
    margin-top: 12px;
    color: #64748b;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lc-error-report-modal .modal-footer {
    gap: 8px;
    padding: 14px 24px;
    border-top: 1px solid #e7edf4;
    background: #fff;
}

.lc-error-report-submit {
    min-width: 136px;
    border-color: #172033 !important;
    background: #172033 !important;
}

.lc-error-report-submit:hover,
.lc-error-report-submit:focus {
    border-color: #e34b31 !important;
    background: #e34b31 !important;
}

.lc-error-report-retake {
    padding: 3px 6px;
    color: #475569;
    border: 0;
    background: transparent;
    font-size: 0.72rem;
}

.lc-error-report-retake:hover {
    color: var(--report-accent);
}

.lc-report-trigger.is-capturing {
    pointer-events: none;
    opacity: 0.68;
}

@media (max-width: 640px) {
    .lc-error-report-modal .modal-header,
    .lc-error-report-modal .modal-body,
    .lc-error-report-modal .modal-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

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