/* Inline-SVG icons (js/ui/icons.js): currentColor, so they theme with their text; layout only. */
.ic {
    display: inline-block;
    vertical-align: -0.18em;
    flex: 0 0 auto;
}
.btn-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* Never wraps: mid-slide (motion.js revealControls) the box is narrower than its text and a wrapped
       width stuck. The desktop's Qt buttons never reflow their caption either. */
    white-space: nowrap;
}
.btn-icon-text .ic { vertical-align: 0; }
/* A face-swapping toggle is pinned to the wider of its two faces (ui/motion.js pinWidestFace writes an
   inline width), so toggling never shoves the row; this is the pre-measure floor. */
.btn-draw-fixed {
    min-width: max-content;
    justify-content: center;
}
/* Start/Stop is an ACCENT toggle (the .pill-toggle convention), opted out of the green `button.active`;
   border-box, so the outline costs no width. */
#draw-toggle {
    border: 1px solid transparent;
}
#draw-toggle:not(:disabled) {
    background: transparent;
    /* The plain UI outline, not the accent (user decision): the accent is the running state. */
    border-color: var(--ui-outline);
    /* Desktop twin: QToolButton[drawToggle="idle"] (user decision). */
    color: var(--text-main);
}
#draw-toggle:not(:disabled):hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}
/* The on-accent ink, so a yellow accent stays legible. */
#draw-toggle.active:not(:disabled) {
    background: var(--accent);
    color: var(--on-accent);
}
#draw-toggle.active:not(:disabled):hover { background: var(--accent-2); }
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon .ic { vertical-align: 0; }
