.cdse-issue-launcher {
    position: fixed;
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 9991;
    appearance: none;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    padding: 8px 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .1);
}

.cdse-issue-launcher:hover,
.cdse-issue-launcher:focus-visible {
    border-color: #2563eb;
    color: #1d4ed8;
}

.cdse-issue-overlay[hidden] {
    display: none !important;
}

.cdse-issue-overlay {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    padding: 20px;
}

.cdse-issue-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .54);
}

.cdse-issue-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    border: 1px solid #dbe3ef;
    border-radius: 20px;
    background: #fff;
    padding: 26px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.cdse-issue-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cdse-issue-kicker {
    margin-bottom: 7px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.cdse-issue-dialog h2 {
    margin: 0 44px 8px 0;
    color: #0f172a;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.1;
}

.cdse-issue-intro {
    margin: 0 0 20px;
    color: #64748b;
    line-height: 1.5;
}

.cdse-issue-field {
    display: block;
    margin: 0 0 16px;
    color: #0f172a;
    font-weight: 700;
}

.cdse-issue-field span {
    color: #64748b;
    font-size: .9em;
    font-weight: 500;
}

.cdse-issue-field select,
.cdse-issue-field textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    padding: 11px 12px;
    font: inherit;
    font-weight: 500;
}

.cdse-issue-field select:focus,
.cdse-issue-field textarea:focus {
    outline: 3px solid rgba(37, 99, 235, .14);
    border-color: #2563eb;
}

.cdse-issue-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.cdse-issue-status {
    min-height: 22px;
    color: #475569;
    font-size: 14px;
}

.cdse-issue-status.is-success {
    color: #166534;
}

.cdse-issue-status.is-error {
    color: #b91c1c;
}

.cdse-issue-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.cdse-issue-open {
    overflow: hidden;
}

.cd-ib-coach-report,
.cdse-help-report {
    display: inline-flex;
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: #475569;
    padding: 2px 0;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cd-ib-coach-report:hover,
.cd-ib-coach-report:focus-visible,
.cdse-help-report:hover,
.cdse-help-report:focus-visible {
    color: #1d4ed8;
}

@media (max-width: 640px) {
    .cdse-issue-launcher {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        padding: 8px 11px;
    }

    .cdse-issue-overlay {
        align-items: end;
        padding: 10px;
    }

    .cdse-issue-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 18px;
        padding: 22px 18px;
    }

    .cdse-issue-actions {
        flex-direction: column;
    }

    .cdse-issue-actions .cdse-btn {
        width: 100%;
    }
}
