/* The build guide (steps_viewer.js): the model fills the stage, the step
   bar sits under it -- play, arrows and counter, a slider to jump -- and the
   parts this step needs float as big icons over the model's right side.
   Shared by cards.html and steps_admin.html. */
.steps-stage{flex:1;min-height:0;position:relative;touch-action:none}
.steps-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:grab}
.steps-stage canvas:active{cursor:grabbing}
.steps-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--ink-soft);font-size:13px}
.steps-bar{flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:16px;padding:10px 20px 14px;border-top:1px solid var(--border)}
.steps-nav{display:flex;align-items:center;gap:10px;flex-shrink:0}
.steps-btn{width:46px;height:40px;border-radius:12px;border:1.5px solid var(--border);background:var(--surface);color:var(--ink-mid);font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.steps-btn:hover:not(:disabled){border-color:var(--green);color:var(--green)}
.steps-btn:focus-visible,.steps-slider:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.steps-btn:disabled{opacity:.35;cursor:default}
.steps-play{font-size:15px;letter-spacing:-.1em}
.steps-play.on{background:var(--green);border-color:var(--green);color:#fff}
.steps-play.on:hover{color:#fff}
/* fixed widths: the counter never pushes the arrows around */
.steps-counter{width:72px;text-align:center;font-weight:700;font-size:14px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.steps-slider{width:280px;flex-shrink:0;accent-color:var(--green)}
/* the parts this step needs: a column of big icons over the right side of
   the model, no words -- the icons in the block colours say it */
.steps-need{position:absolute;top:50%;right:16px;transform:translateY(-50%);z-index:1;display:flex;flex-direction:column;gap:6px;padding:8px;background:rgba(255,255,255,.85);border:1.5px solid var(--border);border-radius:16px;box-shadow:0 4px 14px rgba(0,0,0,.06)}
.steps-need[hidden]{display:none}
/* "the model turned": the step's angle differs from the step before */
.steps-turn{position:absolute;top:14px;left:14px;z-index:1;width:44px;height:44px;border-radius:50%;background:var(--green-dim);color:var(--green);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.steps-turn[hidden]{display:none}
.steps-turn svg{width:28px;height:28px}
.steps-turn.left svg{transform:scaleX(-1)}
.steps-part{display:flex;align-items:center;gap:10px;font:inherit;font-size:24px;color:var(--ink);background:none;border:1.5px solid transparent;border-radius:12px;padding:4px 6px;cursor:pointer}
.steps-part:hover,.steps-part.on{border-color:var(--green);background:var(--green-dim)}
.steps-part:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.steps-part b{min-width:36px;text-align:right;font-variant-numeric:tabular-nums}
.steps-part-icon{display:inline-flex;width:64px;height:64px}
.steps-part-icon svg{width:100%;height:100%}
.steps-part-icon svg rect{fill:currentColor;fill-opacity:.35}
.steps-part-swatch{border-radius:6px;background:currentColor}
@media (max-width:700px){
  .steps-bar{flex-direction:column;padding:8px 10px 12px;gap:8px}
  .steps-slider{width:100%}
  .steps-need{right:10px;padding:8px 10px;gap:6px}
  .steps-part{font-size:18px;gap:6px}
  .steps-part b{min-width:26px}
  .steps-part-icon{width:44px;height:44px}
}
