.badge {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
}

.branch-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .55rem;
    white-space: nowrap;
}

.branch-toggle::after {
    content: '';
    width: .52rem;
    height: .52rem;
    margin-top: -.22rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease, margin .18s ease;
}

.branch[open] .branch-toggle::after {
    margin-top: .2rem;
    transform: rotate(225deg);
}

.aicr-pr-choice {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    padding: .55rem .65rem;
    border: 1px solid #dce4ee;
    border-radius: .55rem;
    background: #f8fbff;
    cursor: pointer;
}

.aicr-pr-choice:hover {
    border-color: #a8c6e7;
    background: #eef6ff;
}

.aicr-pr-choice .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

.aicr-report-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.aicr-title-with-copy {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
}

.aicr-title-with-copy h1 {
    min-width: 0;
}

.aicr-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border: 0;
    border-radius: .25rem;
    background: transparent;
    color: var(--bs-secondary-color, #6c757d);
    cursor: pointer;
    vertical-align: text-bottom;
}

.aicr-copy-link:hover {
    color: var(--bs-primary, #0d6efd);
}

.aicr-copy-link:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 1px;
}

.aicr-copy-link svg {
    display: none;
}

.aicr-copy-link::before {
    content: '';
    position: absolute;
    top: .2rem;
    left: .43rem;
    width: .62rem;
    height: .62rem;
    border: 1.6px solid currentColor;
    border-radius: .08rem;
}

.aicr-copy-link::after {
    content: '';
    position: absolute;
    top: .42rem;
    left: .21rem;
    width: .62rem;
    height: .62rem;
    border: 1.6px solid currentColor;
    border-radius: .08rem;
}

.aicr-title-copy-link {
    flex: 0 0 auto;
    margin-top: .25rem;
}

.aicr-decision-approved {
    color: #146c43;
    font-weight: 700;
}

.aicr-decision-rejected {
    color: #b02a37;
    font-weight: 700;
}

@media (min-width: 992px) {
    .aicr-sidebar-card {
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
}
