/* Components both animator shells share (anim.html desktop,
   anim-mobile.html phone) beyond the controls in css/controls.css:
   the playback row, the info and status lines, the move list's rows,
   the mode toast's fade, the 2D view's container. Layout — where these
   sit — belongs to the shells: css/chrome.css + css/solve.css (desktop
   grid) and css/solve-mobile.css (phone). Colors come from the shared
   tokens in burr-theme.css. */

/* ── Playback controls ── */
.playback-row {
    display: flex;
    gap: 5px;
    align-items: center;
}
.playback-row .btn {
    font-size: 14px;
    padding: 0;
    width: 28px;
    /* fixed height too: the arrow/triangle/pause glyphs have
       different natural line boxes, which would otherwise make
       button heights differ and the row jump on play/pause */
    height: 28px;
    box-sizing: border-box;
    text-align: center;
}
/* Rewind + play swap with the single pause button inside a
   fixed-track grid: pause spans both tracks, so either state
   fills exactly the same footprint and nothing shifts. */
.transport {
    display: grid;
    grid-template-columns: repeat(2, 28px);
    gap: 5px;   /* matches .playback-row's gap */
}
.transport .btn-pause { grid-column: 1 / -1; width: auto; }
.move-label {
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
    white-space: nowrap;
}

/* ── Info section ── */
.info { font-size: 11px; color: var(--muted); line-height: 1.6; }
.info strong { color: var(--text); }
.info .note-warn { color: var(--orange); }
.info .mono { font-family: var(--font-mono); }

/* ── Status ── */
#status {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    display: none;
}
#status.error { display: block; background: var(--red-soft); border: 1px solid var(--red); color: var(--red); }
#status.solving { display: block; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent-text); }

/* ── Move list rows (the list's box belongs to the shells) ── */
.move-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    color: var(--text);
}
.move-item:hover { background: var(--field); }
.move-item.current { background: var(--accent-soft); outline: 1px solid var(--accent); }
.move-item.routing .move-text { color: var(--muted); font-style: italic; }

.move-num { color: var(--muted); font-size: 10px; min-width: 16px; text-align: right; flex-shrink: 0; }
.move-chip { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.move-text { white-space: nowrap; }
/* completion cursor: > above the puzzle's position, < below, · mid-move */
.move-done { color: var(--accent); font-size: 10px; width: 8px; text-align: center; flex-shrink: 0; }
.move-done.todo { color: var(--muted); }
/* On the current row's --accent-soft highlight --muted is 4.1:1; the
   theme's small-text-on-accent-soft ink reads 6:1 there. */
.move-item.current .move-num,
.move-item.current .move-done.todo,
.move-item.current.routing .move-text { color: var(--accent-text); }

/* ── Mode toast: a .stage-toast that fades in and out ── */
#mode-toast {
    opacity: 0;
    transition: opacity 0.3s;
}
#mode-toast.show { opacity: 1; }

/* ── The 2D SVG view fills the stage box beside the 3D canvas ── */
#iso-container {
    position: absolute;
    inset: 0;
    display: none;
    touch-action: none;
    cursor: grab;
}
#iso-container svg { width: 100%; height: 100%; display: block; }
