/* ===================================
   LANGUAGE BAR (TLP-1463)
   The eight languages of a form: a SegmentedControl with a mark per tab, Fill missing,
   one status line, and under the active tab what Claude doubted. One bar per form.

   SPACING CONTRACT: no external margin. The parent places the bar; the bar spaces its
   own rows by gap, and the doubt card pads itself. Every value from design-tokens.css.
   =================================== */

.language-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.language-bar-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Eight tabs can outgrow a narrow modal: the row scrolls sideways inside itself and never
   wraps (ui-patterns.md, Navigation & sub-tabs) -- the sliding pill is sized to the whole
   control. Fill missing keeps its place at the end of the row. */
.language-bar-tabs {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
}

.language-bar-row .btn {
    flex: 0 0 auto;
}

.language-bar-status {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.language-bar-notes {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.language-bar-notes:empty {
    display: none;
}

/* A doubt waits for an answer: the warning colours of the Badge dictionary. */
.language-bar-doubt {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3);
    border: var(--border-width-1) solid var(--color-warning);
    border-radius: var(--border-radius-md);
    background: var(--color-warning-light);
    font-size: var(--text-sm);
    color: var(--text-body);
}

.language-bar-doubt-attempt {
    color: var(--text-primary);
}

.language-bar-doubt-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
}

.language-bar-stale {
    font-size: var(--text-sm);
    color: var(--color-warning-hover);
}
