/* ============================================================
   Verse Studio › Make (studio-make.js): cover maker, slideshow, sound pad.
   Same tokens and rules as studio-edit.css; only the guided page (its numbered steps), the previews and the pad grid live here.
   A maker is a three-step sequence, so the steps are numbered — those numbers are the page's only decorative-looking marks
   (design plan, "Editors and makers"); the accent stays with the one primary button, focus rings and the recording dot.
   ============================================================ */
/* the guided page: the steps in a 360 px column, the preview beside it from 1024 px (the rail's own breakpoint) */
.mk-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1024px) { .mk-grid { grid-template-columns: 360px minmax(0, 1fr); } .mk-form { position: sticky; top: 16px; } }
.mk-form > .card { border-radius: 10px; }
.mk-preview { min-width: 0; }
/* the numbered steps: a real sequence (choose, adjust, make) */
.mk-steps { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.mk-step { display: flex; flex-direction: column; gap: 12px; padding: 14px 0; }
.mk-step + .mk-step { border-top: 1px solid var(--gray-mid); }
.mk-step-head { display: flex; align-items: center; gap: 10px; }
.mk-step-num { flex: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--gray-light); font-size: 12.5px; line-height: 1; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.mk-step-title { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--text); }
.mk-step-body { min-width: 0; }
.mk-step-body .cr-submit { display: flex; flex-wrap: wrap; gap: 8px; }
/* previews: the cover square and the slideshow frame on --black, 6 px, a hairline */
.mk-canvas-wrap { display: flex; flex-direction: column; gap: 10px; }
.mk-canvas-wrap canvas { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 6px; border: 1px solid var(--gray-mid); background: var(--black); }
.mk-canvas-wrap p { margin: 0; font-size: 12.5px; line-height: 1.45; }
.mk-help { font-size: 13.5px; line-height: 1.5; max-width: 62ch; }
.mk-help p { margin: 0; }
/* slideshow: the pictures in order, each with its move / remove buttons */
.mk-ss-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.mk-ss-thumb { position: relative; display: flex; flex-direction: column; gap: 4px; }
.mk-ss-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--gray-mid); background: var(--gray-dark); }
.mk-ss-thumb .ed-row-btns { justify-content: center; }
/* sound pad: 4 × 4, the key in the corner; a loaded pad has the raised edge, the selected one the selected-row fill, a hit is a colour change only */
.sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sp-pad { position: relative; display: flex; flex-direction: column; border-radius: 6px; border: 1px solid var(--gray-mid); background: var(--gray-dark); overflow: hidden; }
.sp-pad.loaded { border-color: var(--gray-light); }
.sp-pad.selected { background: var(--gray-light); }
.sp-pad.selected .sp-pad-key, .sp-pad.selected .sp-pad-name, .sp-pad.selected .sp-pad-hit { color: var(--white); }
.sp-pad.hit { background: var(--gray-light); }
.sp-pad-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 72px; width: 100%; margin: 0; padding: 8px 10px; border: 0; border-radius: 6px 6px 0 0; background: transparent; color: var(--text-soft); font: inherit; text-align: left; cursor: pointer; }
.sp-pad-hit:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
.sp-pad-key { font-size: 12.5px; line-height: 1; font-weight: 700; color: var(--text); }
.sp-pad-name { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* with Verse Vault a pad has four buttons: on a narrow pad they wrap to a second line instead of being clipped by the pad's edge */
.sp-pad-btns { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px 4px 4px; }
.sp-pad-btns .btn-icon { width: 26px; height: 26px; }
.sp-pad-btns .btn-icon[aria-pressed="true"] { background: var(--gray-light); color: var(--white); }
/* on the selected pad the fill is the same --gray-light its pressed button uses, so the pressed one takes the mixer strip's
   treatment there or the sliders button's state vanishes on the pad being worked on (R18 I9, final wave M7) */
.sp-pad.selected .sp-pad-btns .btn-icon[aria-pressed="true"] { background: var(--gray-mid); color: var(--white); outline: 1px solid var(--text); outline-offset: -1px; }
.sp-pad-btns .ed-drop-btn { position: relative; }
.sp-pad-btns .ed-drop-btn:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }
/* phones: the pad is about 80 px wide, so its three icon buttons shrink to fit inside it and nothing is clipped at 400 px (R19 M2) */
@media (max-width: 479px) { .sp-pad-hit { min-height: 56px; } .sp-grid { gap: 6px; } .sp-pad-btns { padding: 2px; } .sp-pad-btns .btn-icon { width: 22px; height: 22px; } }
