/* Atom: bar — sentiment histogram bar and count */

.sentiment-bar {
    height: 1rem;
    border-radius: 0 var(--bn-radius-sm) var(--bn-radius-sm) 0;
    min-width: 2px;
}

.sentiment-bar-count {
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.sentiment-bar-label {
    display: inline-block;
    font-family: var(--bn-font-mono);
    font-size: 0.72rem;
    padding: var(--bn-space-xs) 0.45rem;
    border-radius: var(--bn-radius-sm);
    background: var(--bn-colour-badge-bg);
    color: var(--bn-colour-badge-text);
    line-height: 1.2;
    max-width: 12rem;
    width: fit-content;
    justify-self: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    position: relative;
}

/* Delete button on histogram user-tag labels — matches .badge-delete pattern */
.histogram-bar-delete {
    position: absolute;
    top: calc(-0.3rem - 1px);
    right: calc(-0.3rem - 1px);
    width: calc(0.875rem + 0.5px);   /* ~14.5px */
    height: calc(0.875rem + 0.5px);
    background: var(--bn-colour-bg);
    border: none;
    border-radius: 50%;
    color: var(--bn-colour-muted);
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--bn-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16), 0 0 1px rgba(0, 0, 0, 0.06);
}

.sentiment-bar-label:hover .histogram-bar-delete {
    opacity: 1;
    pointer-events: auto;
}

.sentiment-divider {
    height: 1px;
    background: var(--bn-colour-border);
    margin: var(--bn-space-sm) 0;
    grid-column: 1 / -1;
}
