/* ── Smart Timer UI: the Trainer's visual language (trainer.css), for the Smart Timer surfaces
   (source onboarding, Live Vision panel, Live Vision setup). Same tokens as .trainer-page:
   borderless filled surfaces, tile = --accent-surface-color, indigo-soft accents, sentence-case
   buttons with 10-12px radii, soft-filled status chips. Scoped by .st-ui so nothing else moves. ── */

.st-ui {
    --st-tile: var(--accent-surface-color, #0b1022);
    --st-surface: var(--mud-palette-surface);
    --st-ink-2: var(--mud-palette-text-secondary);
    --st-ink-3: #6b7494;
    --st-line-strong: rgba(148, 163, 216, .28);
    --st-indigo: var(--mud-palette-primary);
    --st-indigo-soft: color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
    --st-indigo-ink: color-mix(in srgb, var(--mud-palette-primary) 55%, white);
    --st-green: #22c55e;
    --st-green-soft: rgba(34, 197, 94, .14);
    --st-amber: #f59e0b;
    --st-amber-soft: rgba(245, 158, 11, .15);
    --st-red: #ef4444;
    --st-red-soft: rgba(239, 68, 68, .14);
    --st-cyan-soft: rgba(34, 211, 238, .14);
    font-family: Roboto, sans-serif;
}

/* eyebrow: the Trainer's "Drill setup" / "Set setup · step 1 of 2" pill */
.st-ui .st-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--st-indigo-soft);
    color: var(--st-indigo-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2px;
    white-space: nowrap;
}

/* status chips (tr-chip): soft fill, coloured text, no border */
.st-ui .st-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2px;
    white-space: nowrap;
    background: rgba(148, 163, 216, .08);
    color: var(--st-ink-2);
}
.st-ui .st-chip.ok { background: var(--st-green-soft); color: #4ade80; }
.st-ui .st-chip.warn { background: var(--st-amber-soft); color: #fbbf24; }
.st-ui .st-chip.bad { background: var(--st-red-soft); color: #f87171; }
.st-ui .st-chip.busy { background: var(--st-indigo-soft); color: var(--st-indigo-ink); }

/* buttons (tr-primary / tr-secondary): sentence case, no border, no elevation */
.st-ui .st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 14px;
    border: 0;
    border-radius: 10px;
    font: 600 13px/20px Roboto, sans-serif;
    letter-spacing: .1px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}
.st-ui .st-btn-primary { background: var(--st-indigo); color: var(--mud-palette-primary-text); font-weight: 650; }
.st-ui .st-btn-primary:hover { background: color-mix(in srgb, var(--st-indigo) 86%, white); }
.st-ui .st-btn-soft { background: var(--st-indigo-soft); color: var(--mud-palette-text-primary); }
.st-ui .st-btn-soft:hover { background: color-mix(in srgb, var(--mud-palette-primary) 25%, var(--st-surface)); }
.st-ui .st-btn:focus-visible { outline: 2px solid var(--st-indigo); outline-offset: 3px; }
.st-ui .st-btn:disabled { opacity: .45; cursor: default; }
.st-ui .st-btn .mud-icon-root { font-size: 18px; }

/* icon square (tr-choice-symbol) */
.st-ui .st-symbol {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--st-indigo-soft);
    color: var(--st-indigo);
}
.st-ui .st-symbol .mud-icon-root { font-size: 20px; }

/* dialogs that host Smart Timer setup: the Trainer's rounded modal */
.st-dialog.mud-dialog { border-radius: 24px; overflow: hidden; }
.st-dialog.mud-dialog .mud-dialog-title { padding: 20px 24px 8px; }
.st-dialog.mud-dialog .mud-dialog-content { padding-inline: 24px; }

@media (prefers-reduced-motion: reduce) {
    .st-ui .st-btn { transition: none; }
}
