/* The app's panels as components (js/app/components/panels.js), in the theme (css/theme.css)
   with the interface's components (css/ui.css). Each fills the host it is placed in and
   scrolls inside itself; none assumes a width. The drawings are in css/views.css. */

.cloth-box, .chain-box { height: 100%; overflow: auto; scrollbar-gutter: stable; }
.cloth-box { padding: 6px 4px; }
.chain-box { padding: 4px 6px; }
.bench-box { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--stage-bg); border-radius: var(--radius-s); overflow: auto; }
.bench-box svg.bench-card { flex: 1 1 auto; min-height: 60px; max-height: none; }
.bench-box .bench-label { margin: 0; font-size: 11px; color: var(--md-on-surface-variant); }

/* the transport: the six moments of a pick as a stepper (a state, so no button's fill or border:
   dots on a track, the moment reached ringed), then where the loom is, the controls with play
   the largest, and the speed */
.transport { display: flex; flex-direction: column; gap: 10px; padding: 8px 10px; }
.moments { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; font-size: 11.5px; line-height: 1.3; cursor: default; }
.moments li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 0 2px; text-align: center; color: var(--md-on-surface-variant); }
.moments li::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--md-outline-variant); }
.moments li:first-child::before { display: none; }
.moments li.done::before { background: var(--md-primary); }
.moments .dot { position: relative; z-index: 1; box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--md-outline); background: var(--md-surface-low); }
.moments li.done .dot { border-color: var(--md-primary); background: var(--md-primary); }
.moments li.here .dot { border-color: var(--md-primary); background: var(--md-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--md-primary) 30%, transparent); }
.moments li.here { color: var(--md-on-surface); font-weight: 650; }
.transport-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.controls { display: flex; align-items: center; gap: 10px; }
.controls .btn.icon-only { width: 44px; height: 44px; }
.controls .btn.play { width: 56px; height: 56px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.controls .btn.play .icon { width: 32px; height: 32px; }
/* reset leads the cluster, as stop does on a player: as large as the steps, a little apart */
.controls [data-act="reset"] { margin-right: 6px; }
.where { margin: 0; font-size: 12px; color: var(--md-on-surface-variant); font-variant-numeric: tabular-nums; }
.transport .after { justify-self: end; display: flex; align-items: center; gap: 8px; min-width: 0; width: min(100%, 260px); }
.transport .speed { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; font-size: 12px; color: var(--md-on-surface-variant); }
.transport .speed input { width: 100%; margin: 0; accent-color: var(--md-primary); }
.transport .speed-out { white-space: nowrap; }

/* the status line, and the thread followed */
.status-line { margin: 0; padding: 8px 12px; font-size: 13px; line-height: 1.45; user-select: text; -webkit-user-select: text; }
.status-line.warn { color: var(--md-error); }
.trace-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 12px; }
.trace-text { margin: 0; font-size: 13px; line-height: 1.45; user-select: text; -webkit-user-select: text; }
