/* Bossbar generator - builds on text-generators.css (.tg-* layout, panels, commands). */
.bb-choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.bb-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border: 1px solid var(--tg-line);
    border-radius: 10px;
    background: var(--tg-field);
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.bb-choice:hover,
.bb-choice.active {
    border-color: var(--tg-accent);
    background: var(--tg-accent-soft);
    color: var(--text-primary);
}

.bb-choice img,
.bb-style-preview {
    width: 91px;
    height: 5px;
    image-rendering: pixelated;
}

/* Style chips: the bar in the chosen colour with the notch overlay on top. */
.bb-style-preview {
    display: block;
    background-image: var(--notch, none), var(--bar);
    background-size: 91px 5px;
    background-repeat: no-repeat;
}

.bb-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bb-range {
    width: 100%;
    margin: 10px 0 4px;
    accent-color: var(--tg-accent);
}

.bb-cmds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-cmds .cmd-block.is-extra {
    opacity: 0.85;
}

@media (max-width: 900px) {
    .bb-cmds {
        grid-template-columns: 1fr;
    }
}

#bossCanvas {
    width: 100%;
    max-width: 856px;
    height: auto;
    image-rendering: pixelated;
}

/* The "show it" command: without it nobody sees the bar. */
.bb-cmds .cmd-block.is-key .command-box {
    outline: 2px solid color-mix(in srgb, var(--tg-accent) 60%, transparent);
    outline-offset: 2px;
}

.bb-cmds .cmd-block.is-key h3 {
    color: var(--tg-accent);
}
