/* =================================================================
   tools/binary-add-sub.css
   Auto-extracted from math.css (2026-05-11).
   Loaded via config/js-manifest.php → templates/partials/head-styles.php.
   ================================================================= */

/* ─── Binary Add/Sub visual grid ──────────────────────── */
.math-add-grid {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
}

.math-add-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.math-add-label {
    width: 28px;
    text-align: center;
    font-weight: 700;
    color: var(--math-text-soft);
    flex-shrink: 0;
}

.math-add-cell {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 600;
    background: var(--math-surface-alt);
    border: 1px solid var(--math-border-light);
    color: var(--math-text);
}

.math-add-carry {
    font-size: 11px;
    width: 32px;
    height: 22px;
    color: var(--math-text-muted);
    background: transparent;
    border: 1px dashed var(--math-border);
}

.math-add-carry.active {
    color: var(--math-warning);
    border-color: var(--math-warning);
    background: rgba(245, 158, 11, 0.08);
    font-weight: 700;
}

.math-add-divider {
    height: 2px;
    background: var(--math-primary);
    margin: 2px 0 2px 30px;
    border-radius: 1px;
}

.math-add-result {
    background: var(--math-primary-soft);
    border-color: var(--math-primary);
    color: var(--math-primary);
    font-weight: 700;
}

.math-add-carry-row {
    opacity: 0.7;
}

