.bh-inner {
    margin-top: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
}

.bh-inner[hidden],
.bh-body[hidden],
.bh-summary[hidden],
.bh-more[hidden] {
    display: none;
}

.bh-head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    background: none;
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    text-align: left;
    color: var(--text-main);
    cursor: pointer;
}

.bh-head:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: -2px;
}

.bh-head__icon {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.bh-head__copy {
    display: flex;
    flex: 1;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.bh-head__title {
    white-space: nowrap;
}

.bh-summary {
    margin-left: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    color: var(--text-secondary);
}

.bh-head__chevron {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform var(--transition-fast);
}

.bh-head[aria-expanded="true"] .bh-head__chevron {
    transform: rotate(180deg);
}

.bh-body {
    border-top: 1px solid var(--border-light);
}

.bh-list {
    padding: 4px 0;
}

.bh-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 14px;
    font-size: var(--text-sm);
}

.bh-item__date {
    flex-shrink: 0;
    width: 110px;
    color: var(--text-secondary);
}

.bh-item__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-main);
}

.bh-item__build {
    flex-shrink: 0;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px;
    color: var(--text-secondary);
}

.bh-more {
    margin: 2px 14px 5px;
    padding: 6px 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--link-color);
    cursor: pointer;
}

.bh-more:hover,
.bh-more:focus-visible {
    text-decoration: underline;
}

.bh-more:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

.bh-source {
    padding: 6px 14px 9px;
    font-size: 11px;
    color: var(--text-secondary);
}

.bh-status {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 10px 14px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.bh-status__text {
    flex: 1;
    min-width: 0;
}

.bh-retry {
    flex-shrink: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: var(--link-color);
    cursor: pointer;
}

.bh-retry:hover,
.bh-retry:focus-visible {
    text-decoration: underline;
}

.bh-retry:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .bh-head__copy {
        display: block;
    }

    .bh-summary {
        display: block;
        margin-top: 2px;
        overflow: visible;
        white-space: normal;
    }

    .bh-item {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .bh-item__title {
        order: -1;
        flex-basis: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .bh-item__date {
        width: auto;
    }
}
