/* V-Pop! — the debut wizard, the production studio and the look editor (studio.js).
   Builds on the design tokens from css/vpop.css; every var() has a fallback so this file
   also stands on its own. Phone first: everything fits 390 px with no horizontal scroll. */

.studio {
  --st-ink: var(--ink, #14101f);
  --st-card: var(--card, #221a36);
  --st-card2: var(--card2, #2d2347);
  --st-text: var(--text, #fff6fd);
  --st-muted: var(--muted, #b3a6cc);
  --st-pink: var(--pink, #ff4f9a);
  --st-violet: var(--violet, #8b5cff);
  --st-cyan: var(--cyan, #22d3ee);
  --st-amber: var(--amber, #ffb020);
  --st-green: var(--green, #2ee6a0);
  --st-red: var(--red, #ff5d73);
  --st-r: var(--radius, 16px);
  --st-grad: linear-gradient(135deg, var(--st-pink), var(--st-violet) 55%, var(--st-cyan));
  color: var(--st-text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.studio *, .studio *::before, .studio *::after { box-sizing: border-box; }
:where(.studio) button { font: inherit; color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.studio button:focus-visible, .studio input:focus-visible, .studio select:focus-visible { outline: 2px solid var(--st-cyan); outline-offset: 2px; }

/* ---------- header, tabs, footer ---------- */
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 40px; /* room for the modal ✕ */ }
.st-head-t { display: flex; flex-direction: column; min-width: 0; }
.st-head-t small { color: var(--st-muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.st-head-t b { font-family: var(--font-display, "Baloo 2", "Fredoka", system-ui, sans-serif); font-size: 22px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.st-grade {
  flex: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center;
  column-gap: 6px; padding: 4px 10px 4px 6px; border: 0; border-radius: 14px; min-height: 44px;
  background: var(--st-card2); box-shadow: inset 0 0 0 2px var(--g, var(--st-muted));
}
.st-grade small { grid-column: 2; font-size: 10px; color: var(--st-muted); text-transform: uppercase; letter-spacing: .05em; }
.st-grade b { grid-row: 1 / 3; font-family: var(--font-display, "Baloo 2", "Fredoka", system-ui, sans-serif); font-size: 28px; line-height: 1; color: var(--g, var(--st-text)); width: 30px; text-align: center; }
.st-grade em { grid-column: 2; font-style: normal; font-size: 13px; font-weight: 700; }
.studio .g-S { --g: var(--g-s, #ffd166); } .studio .g-A { --g: var(--g-a, #ff7ab8); } .studio .g-B { --g: var(--g-b, #8fa6ff); }
.studio .g-C { --g: var(--g-c, #7fd8be); } .studio .g-D { --g: var(--g-d, #9a90b8); }
.studio .st-grade.g-S { box-shadow: inset 0 0 0 2px var(--g), 0 0 16px rgba(255, 209, 102, .45); }

.st-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; background: var(--st-ink); border-radius: 14px; padding: 4px; position: sticky; top: -1px; z-index: 3; }
.st-tab { border: 0; background: transparent; border-radius: 10px; padding: 5px 0 4px; min-height: 48px; font-size: 11px; font-weight: 600; color: var(--st-muted); display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.st-tab span { font-size: 19px; line-height: 1.1; }
.st-tab.on { background: var(--st-grad); color: #fff; box-shadow: 0 3px 12px rgba(139, 92, 255, .35); }

.st-pane { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.st-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: sticky; bottom: -1px; z-index: 3; padding: 10px 0 calc(4px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--st-card) 70%, transparent); }
.st-why { margin: 0; color: var(--st-amber); font-size: 13px; text-align: right; }
.st-ready { margin: 0; color: var(--st-green); font-weight: 600; }

/* ---------- buttons, fields ---------- */
.st-btn { border: 0; border-radius: 999px; min-height: 44px; padding: 0 18px; font-weight: 700; background: var(--st-card2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: transform .1s, filter .15s; }
.st-btn:active:not(:disabled) { transform: scale(.96); }
.st-btn.primary { background: var(--st-grad); color: #fff; box-shadow: 0 4px 14px rgba(255, 79, 154, .35); }
.st-btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--st-card2); }
.st-btn.sq { width: 44px; padding: 0; font-size: 20px; }
.st-btn.big { flex: 1; font-size: 16px; min-height: 52px; white-space: normal; line-height: 1.15; }
.st-btn:disabled { filter: grayscale(.9) brightness(.7); box-shadow: none; cursor: not-allowed; }
.st-btn.play { background: var(--st-card2); color: var(--st-cyan); min-width: 104px; }
.st-btn.play.on { background: var(--st-cyan); color: var(--st-ink); animation: st-throb .8s ease-in-out infinite; }
@keyframes st-throb { 50% { filter: brightness(1.2); transform: scale(1.03); } }

.st-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--st-muted); min-width: 0; }
.st-field > span:first-child { font-weight: 600; }
.st-inrow { display: flex; gap: 6px; min-width: 0; }
.st-inp { flex: 1; min-width: 0; min-height: 44px; border-radius: 12px; border: 2px solid var(--st-card2); background: var(--st-ink); color: var(--st-text); padding: 0 12px; font: inherit; font-size: 16px; /* 16px stops iOS zooming in */ }
.st-inp:focus { border-color: var(--st-violet); outline: none; }
select.st-inp { padding-right: 6px; }

.studio .st-h { margin: 8px 0 0; font-weight: 800; line-height: 1.2; font-family: var(--font-display, "Baloo 2", "Fredoka", system-ui, sans-serif); font-size: 17px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.st-h small { font-family: system-ui, sans-serif; font-weight: 400; font-size: 12px; color: var(--st-muted); }
.studio .st-title-lg { margin: 2px 0 0; line-height: 1.15; font-family: var(--font-display, "Baloo 2", "Fredoka", system-ui, sans-serif); font-size: 22px; }
.st-hint { margin: 0; color: var(--st-muted); font-size: 13px; line-height: 1.4; }
.st-hint b { color: var(--st-text); }
.st-empty { color: var(--st-muted); text-align: center; padding: 20px 8px; grid-column: 1 / -1; }
.st-banner { background: linear-gradient(135deg, rgba(255, 79, 154, .22), rgba(139, 92, 255, .22)); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.st-row-end { display: flex; justify-content: flex-end; margin-top: -4px; }

.st-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--st-card2); }
.st-tag.hot { background: rgba(255, 90, 54, .25); color: #ffb199; }
.st-tag.ok { background: rgba(46, 229, 157, .2); color: var(--st-green); }
.st-tag.warn { background: rgba(255, 176, 32, .2); color: var(--st-amber); }
.st-dot { font-size: 11px; }
.st-dot.ok { color: var(--st-green); font-weight: 800; }

/* ---------- chips, segments, cards ---------- */
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { border: 0; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--st-card2); font-size: 14px; font-weight: 600; }
.st-chip.on { background: var(--st-grad); color: #fff; }

.st-segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.st-seg { border: 0; border-radius: 12px; background: var(--st-card2); padding: 8px 4px; min-height: 52px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.st-seg b { font-size: 13px; line-height: 1.15; text-align: center; }
.st-seg small { font-size: 11px; color: var(--st-muted); }
.st-seg.on { background: var(--st-grad); color: #fff; }
.st-seg.on small { color: rgba(255, 255, 255, .85); }

.st-cards { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .st-cards { grid-template-columns: 1fr 1fr; } }
.st-card { text-align: left; border: 0; border-radius: var(--st-r); background: var(--st-card2); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: inset 0 0 0 2px transparent; position: relative; min-height: 64px; }
.st-card.on { box-shadow: inset 0 0 0 2px var(--st-pink), 0 4px 16px rgba(255, 79, 154, .25); background: linear-gradient(160deg, rgba(255, 79, 154, .18), var(--st-card2) 60%); }
.st-card.on::after { content: "✓"; position: absolute; top: -6px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--st-pink); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.st-card.locked { opacity: .5; filter: grayscale(.8); }
.st-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.st-card-top b { font-size: 15px; }
.st-price { font-weight: 800; color: var(--st-amber); white-space: nowrap; }
.st-qbar { position: relative; height: 16px; border-radius: 999px; background: var(--st-ink); overflow: hidden; }
.st-qbar i { position: absolute; inset: 0 auto 0 0; background: var(--st-grad); border-radius: 999px; }
.st-qbar em { position: relative; font-style: normal; font-size: 10px; font-weight: 700; padding-left: 8px; line-height: 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.st-note { color: var(--st-muted); font-size: 12px; line-height: 1.35; }
.st-lock { color: var(--st-amber); font-weight: 700; font-size: 12px; }

.st-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.st-emoji { border: 0; height: 44px; border-radius: 12px; background: var(--st-card2); font-size: 22px; }
.st-emoji.on { background: var(--st-grad); box-shadow: 0 3px 10px rgba(255, 79, 154, .4); }

/* ---------- the hook grid ---------- */
.st-kb { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: end; }
.st-bpm input[type=range] { width: 100%; height: 44px; accent-color: var(--st-pink); margin: 0; }
.hk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.hk-tools { display: flex; gap: 6px; margin-left: auto; }
.hk-grid {
  display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); grid-auto-rows: 26px; gap: 1px;
  margin: 0 -6px; padding: 4px; border-radius: 14px; background: var(--st-ink); touch-action: manipulation;
}
.hk { border: 0; padding: 0; min-width: 0; border-radius: 5px; background: rgba(255, 255, 255, .07); transition: transform .08s, background .12s; }
.hk.gb { background: rgba(255, 255, 255, .13); }
.hk.beat { box-shadow: inset 2px 0 0 rgba(255, 255, 255, .18); }
.hk.now { background: rgba(34, 211, 238, .28); }
.hk.on { transform: scale(1.04); box-shadow: 0 0 10px var(--nc), inset 0 -3px 0 rgba(0, 0, 0, .18); background: var(--nc); }
.hk.on.now { transform: scale(1.18); filter: brightness(1.25); }
.hk:active { transform: scale(.9); }
.hk.r7 { --nc: #ff4f9a; } .hk.r6 { --nc: #ff7a59; } .hk.r5 { --nc: #ffb020; } .hk.r4 { --nc: #d9f14b; }
.hk.r3 { --nc: #2ee59d; } .hk.r2 { --nc: #22d3ee; } .hk.r1 { --nc: #5b8cff; } .hk.r0 { --nc: #8b5cff; }
.hk-beats { display: grid; grid-template-columns: repeat(4, 1fr); margin: -2px -6px 0; padding: 0 4px; font-size: 10px; color: var(--st-muted); }
.hk-beats span { padding-left: 3px; }
.st-meter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 13px; }
.st-meter > span:first-child { color: var(--st-muted); font-weight: 600; }
.st-meter-bar { height: 12px; border-radius: 999px; background: var(--st-ink); overflow: hidden; }
.st-meter-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--st-amber), var(--st-pink), var(--st-violet)); transition: width .25s ease; }
.st-meter b { min-width: 110px; text-align: right; }

/* ---------- stage, choreo ---------- */
.st-stage { border-radius: var(--st-r); overflow: hidden; background: var(--st-ink); min-height: 120px; }
.st-stage > * { max-width: 100%; }
.st-stage .stage.beat { animation: st-beat .18s ease-out; }
@keyframes st-beat { 0% { filter: brightness(1.25); } 100% { filter: none; } }
.st-stars { display: flex; gap: 4px; }
.st-star { border: 0; background: transparent; width: 44px; height: 44px; font-size: 30px; color: var(--st-card2); line-height: 1; transition: transform .1s; }
.st-star.on { color: #ffd23f; text-shadow: 0 0 10px rgba(255, 210, 63, .5); }
.st-star:active { transform: scale(.85); }
.st-moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.st-move { position: relative; border: 0; border-radius: 12px; background: var(--st-card2); min-height: 56px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.st-move b { font-size: 12px; line-height: 1.15; text-align: center; }
.st-move small { font-size: 10px; letter-spacing: -1px; }
.st-move.on { background: var(--st-grad); color: #fff; }
.st-move-n { position: absolute; top: -5px; left: -3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--st-violet); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ---------- look panel ---------- */
.lk-concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .lk-concepts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lk-concept { position: relative; border: 0; border-radius: 14px; background: var(--st-card2); padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 96px; min-width: 0; }
.lk-concept.on { box-shadow: inset 0 0 0 2px var(--st-pink), 0 4px 14px rgba(255, 79, 154, .3); }
.lk-emoji { font-size: 24px; line-height: 1; }
.lk-concept b { font-size: 13px; }
.lk-concept small { font-size: 9.5px; color: var(--st-muted); text-align: center; line-height: 1.2; }
.lk-pal { display: flex; gap: 2px; }
.lk-pal i { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.lk-tags { position: absolute; top: -6px; right: -2px; display: flex; gap: 2px; }
.lk-colors { display: flex; flex-direction: column; gap: 8px; }
.lk-crow { display: flex; flex-direction: column; gap: 4px; }
.lk-clabel { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--st-muted); }
.lk-clabel i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.lk-sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; }
.lk-sw { border: 0; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.lk-sw.on { box-shadow: 0 0 0 3px var(--st-card), 0 0 0 5px #fff; }
.lk-custom { position: relative; height: 34px; border-radius: 10px; overflow: hidden; background: conic-gradient(#ff4f9a, #ffb020, #d9f14b, #2ee59d, #22d3ee, #8b5cff, #ff4f9a); display: grid; place-items: center; cursor: pointer; }
.lk-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.lk-custom span { font-size: 16px; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.lk-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.lk-thumb { position: relative; border: 0; border-radius: 12px; background: var(--st-card2); padding: 4px 2px; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.lk-thumb.on { box-shadow: inset 0 0 0 2px var(--st-pink); background: linear-gradient(170deg, rgba(255, 79, 154, .2), var(--st-card2)); }
.lk-svg { display: block; width: 100%; max-width: 64px; height: 96px; }
.lk-svg svg { width: 100%; height: 100%; display: block; }
/* ~22 outfits and ~15 accessories: a two-row strip that scrolls sideways inside the panel (never the page). */
.lk-thumbs.lk-scroll {
  grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 78px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; scroll-padding: 0 4px; padding: 2px 2px 8px; max-width: 100%;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.lk-scroll .lk-thumb { scroll-snap-align: start; padding: 6px 3px 4px; }
.lk-scroll .lk-svg { max-width: none; height: 112px; }
.lk-scroll .lk-svg.lk-bust { height: 86px; } /* 72 px wide × 60:72 bust */
.lk-scroll::-webkit-scrollbar { height: 6px; }
.lk-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 6px; }
.lk-thumb small { font-size: 10px; line-height: 1.1; text-align: center; color: var(--st-muted); min-height: 2.2em; }
.lk-thumb.on small { color: var(--st-text); }

/* ---------- wizard ---------- */
.wz-dots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.wz-dots li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--st-muted); }
.wz-dots span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--st-card2); font-weight: 800; font-size: 13px; }
.wz-dots li.on { color: var(--st-text); font-weight: 700; }
.wz-dots li.on span { background: var(--st-grad); color: #fff; box-shadow: 0 0 12px rgba(255, 79, 154, .5); }
.wz-dots li.done span { background: var(--st-green); color: var(--st-ink); }
.wz-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wz-type { border: 0; border-radius: var(--st-r); background: var(--st-card2); padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-height: 150px; }
.wz-type-emoji { font-size: 38px; line-height: 1.1; }
.wz-type b { font-family: var(--font-display, "Baloo 2", "Fredoka", system-ui, sans-serif); font-size: 17px; }
.wz-type small { font-size: 11.5px; color: var(--st-muted); line-height: 1.3; }
.wz-type em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--st-green); margin-top: auto; }
.wz-type.locked { opacity: .5; filter: grayscale(.8); }
.wz-type.locked em { color: var(--st-amber); }
.wz-type.on { box-shadow: inset 0 0 0 2px var(--st-pink); }
.wz-ready { background: var(--st-ink); border-radius: 12px; padding: 8px 10px; }
.wz-idols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .wz-idols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wz-idol { position: relative; border: 0; border-radius: 14px; background: var(--st-card2); padding: 6px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.wz-idol.on { box-shadow: inset 0 0 0 2px var(--st-pink), 0 4px 14px rgba(255, 79, 154, .3); background: linear-gradient(170deg, rgba(255, 79, 154, .22), var(--st-card2)); }
.wz-av { width: 72px; height: 78px; display: grid; place-items: center; overflow: hidden; }
.wz-av svg { width: 100%; height: 100%; display: block; }
.wz-idol b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-idol small { font-size: 11px; color: var(--st-muted); }
.wz-bars { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 2px 6px 0; }
.wz-bars i { display: block; height: 4px; border-radius: 4px; min-width: 2px; }
.wz-pick { position: absolute; top: -5px; left: -3px; width: 24px; height: 24px; border-radius: 50%; background: var(--st-pink); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; z-index: 1; }
.bar-vocal { background: var(--st-vocal, #ff5fa8); } .bar-dance { background: var(--st-dance, #22d3ee); } .bar-rap { background: var(--st-rap, #ffb020); }
.bar-visual { background: var(--st-visual, #a47bff); } .bar-charm { background: var(--st-charm, #34e39a); }
.wz-badge-preview { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px; border-radius: var(--st-r); background: linear-gradient(135deg, var(--c1), var(--c2)); }
.wz-badge-preview span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: rgba(255, 255, 255, .85); flex: none; }
.wz-badge-preview b { font-family: var(--font-display, "Baloo 2", "Fredoka", system-ui, sans-serif); font-size: 24px; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- review ---------- */
.rv-hero { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--st-r); background: var(--st-card2); background: radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--g, #fff) 28%, transparent), transparent 60%), var(--st-card2); }
.rv-grade { flex: none; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font-family: var(--font-display, "Baloo 2", "Fredoka", system-ui, sans-serif); font-size: 56px; font-weight: 800; line-height: 1; color: var(--st-ink); background: var(--g, #fff); box-shadow: 0 6px 20px color-mix(in srgb, var(--g, #fff) 45%, transparent); animation: st-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes st-pop { from { transform: scale(.6) rotate(-8deg); } }
.rv-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rv-copy b { font-size: 17px; overflow-wrap: anywhere; }
.rv-copy span { font-size: 14px; color: var(--st-muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rv-copy strong { color: var(--st-text); font-size: 18px; }
.rv-copy em { font-style: normal; font-size: 13px; line-height: 1.35; }
.rv-viral { font-size: 12px; background: rgba(255, 90, 54, .2); color: #ffb199; padding: 1px 8px; border-radius: 999px; }
.rv-bars { display: flex; flex-direction: column; gap: 6px; }
.rv-bar { display: grid; grid-template-columns: 88px minmax(0, 1fr) 28px; gap: 8px; align-items: center; font-size: 13px; }
.rv-bar b { text-align: right; }
.rv-track { height: 12px; border-radius: 999px; background: var(--st-ink); overflow: hidden; }
.rv-track i { display: block; height: 100%; border-radius: 999px; background: var(--st-grad); transition: width .3s ease; }
.rv-track i.p-music { background: var(--st-pink); } .rv-track i.p-choreo { background: var(--st-cyan); }
.rv-track i.p-visual { background: var(--st-violet); } .rv-track i.p-charm { background: var(--st-green); } .rv-track i.p-catchy { background: var(--st-amber); }
.rv-fits { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-fit { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--st-card2); }
.rv-fit.good { background: rgba(46, 229, 157, .18); color: var(--st-green); }
.rv-fit.ok { color: var(--st-muted); }
.rv-fit.bad { background: rgba(255, 93, 115, .15); color: var(--st-red); }
.rv-warn { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rv-warn li { font-size: 13px; background: rgba(255, 176, 32, .12); border-left: 3px solid var(--st-amber); padding: 6px 10px; border-radius: 0 10px 10px 0; }
.rv-happy { margin: 0; color: var(--st-green); font-weight: 600; }
.rv-cost { width: 100%; border-collapse: collapse; font-size: 14px; }
.rv-cost td { padding: 6px 2px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: top; }
.rv-cost td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.rv-cost td small { display: block; font-size: 11px; color: var(--st-muted); }
.rv-cost tfoot td { border: 0; }
.rv-cost tfoot tr:first-child td { font-weight: 800; font-size: 16px; border-top: 2px solid var(--st-card2); }
.rv-bank td { color: var(--st-muted); }
.rv-after td:last-child { color: var(--st-green); }
.rv-after.neg td:last-child { color: var(--st-red); }

/* ---------- round 4: song source switch ---------- */
.st-src { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--st-ink); border-radius: 16px; padding: 4px; }
.st-src-b { border: 0; border-radius: 12px; background: transparent; min-height: 60px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--st-muted); min-width: 0; }
.st-src-b span { font-size: 22px; line-height: 1.1; }
.st-src-b b { font-size: 14px; line-height: 1.15; text-align: center; }
.st-src-b small { font-size: 11px; opacity: .85; }
.st-src-b.on { background: var(--st-grad); color: #fff; box-shadow: 0 3px 12px rgba(139, 92, 255, .35); }

/* ---------- round 4: the uploaded song (au-) ---------- */
.au-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--st-r); background: var(--st-card2); min-width: 0; }
.au-box .st-h { margin: 0; }
.au-box.busy { align-items: center; justify-content: center; min-height: 96px; }
.au-busy { margin: 0; font-weight: 700; animation: st-throb 1s ease-in-out infinite; }
.au-pick { position: relative; overflow: hidden; cursor: pointer; }
.au-pick.big { width: 100%; min-height: 60px; font-size: 17px; }
.au-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.au-swap { align-self: flex-start; min-height: 40px; font-size: 13px; }
.au-err { margin: 0; color: var(--st-amber); font-weight: 600; font-size: 14px; background: rgba(255, 176, 32, .12); border-left: 3px solid var(--st-amber); padding: 8px 10px; border-radius: 0 10px 10px 0; }
.au-warn { margin: 0; color: var(--st-amber); font-size: 12px; }
.au-file-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.au-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--st-grad); }
.au-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.au-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-name small { color: var(--st-muted); font-size: 12px; }
.au-player { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.au-play { min-width: 96px; }
.au-prog { position: relative; height: 14px; border-radius: 999px; background: var(--st-ink); cursor: pointer; touch-action: manipulation; }
.au-prog::before { content: ""; position: absolute; inset: -15px 0; }  /* a 44 px tall tap target */
.au-prog i { position: relative; display: block; height: 100%; width: 0; max-width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--st-cyan), var(--st-violet), var(--st-pink)); }
.au-time { font-size: 12px; color: var(--st-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.au-tempo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.au-tapwrap { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 150px; }
.au-tapwrap small { font-size: 11px; color: var(--st-muted); text-align: center; line-height: 1.2; }
.au-tap { min-height: 56px; background: var(--st-grad); color: #fff; font-size: 15px; }
.au-tap.tapped { animation: au-tap .18s ease-out; }
@keyframes au-tap { 0% { transform: scale(.9); filter: brightness(1.35); } }
.au-offset { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: end; }
.au-offset input[type=range] { width: 100%; height: 44px; accent-color: var(--st-cyan); margin: 0; }
.au-metro { display: flex; gap: 4px; align-items: center; height: 44px; }
.au-metro i { width: 12px; height: 12px; border-radius: 50%; background: var(--st-card2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); transition: background .06s, transform .06s; }
.au-metro i.on { background: var(--st-cyan); transform: scale(1.35); box-shadow: 0 0 10px var(--st-cyan); }
@media (max-width: 380px) {
  .au-tempo { grid-template-columns: 1fr; }
  .au-tapwrap { max-width: none; }
  .au-tap { width: 100%; }
  .au-player { grid-template-columns: auto minmax(0, 1fr); }
  .au-time { grid-column: 1 / -1; justify-self: end; }
}

/* ---------- round 4: your own dance ---------- */
.st-dance { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.st-craft { display: flex; flex-direction: column; gap: 4px; }
.st-craft .st-meter b { min-width: 0; }
.st-craft .st-meter span b { color: var(--st-text); }
/* isolation: the dance editor's own layers stay inside it, so the dance meter always sits on top while she scrolls */
.st-choreo-host { min-width: 0; max-width: 100%; isolation: isolate; }
.st-choreo-host:empty { display: none; }

/* ---------- round 4: member poses & style ---------- */
.st-members { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: var(--st-r); background: var(--st-card2); min-width: 0; }
.st-members .st-h { margin: 0; }
.st-mems { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.st-mems::-webkit-scrollbar { display: none; }
.st-mem { flex: none; position: relative; width: 64px; border: 0; border-radius: 14px; background: var(--st-ink); padding: 4px 2px 3px; display: flex; flex-direction: column; align-items: center; gap: 1px; box-shadow: inset 0 0 0 2px transparent; }
.st-mem.on { box-shadow: inset 0 0 0 2px var(--st-pink), 0 3px 10px rgba(255, 79, 154, .3); }
.st-mem-av { width: 52px; height: 62px; display: block; overflow: hidden; border-radius: 10px; }
.st-mem-av svg { width: 100%; height: 100%; display: block; }
.st-mem-all { display: grid; place-items: center; font-size: 28px; background: var(--st-card2); }
.st-mem small { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-mem-dot { position: absolute; top: 4px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--st-pink); box-shadow: 0 0 0 2px var(--st-ink); }
.st-mem-panel { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-sub { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--st-muted); }
.st-sub small { font-weight: 400; }
.st-poses { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
.st-poses::-webkit-scrollbar { display: none; }
.st-poses .st-chip { flex: none; white-space: nowrap; }
.st-members .st-chip { min-height: 44px; background: var(--st-ink); }
.st-members .st-chip.on { background: var(--st-grad); }
.st-segs.st-segs2 { grid-template-columns: 1fr 1fr; }
.st-segs2 .st-seg { min-height: 44px; background: var(--st-ink); justify-content: center; }
.st-segs2 .st-seg.on { background: var(--st-grad); }
.st-accs .st-chip { min-height: 40px; font-size: 13px; }
.st-mem-reset { align-self: flex-start; min-height: 40px; font-size: 13px; }

/* ---------- round 4: review extras ---------- */
.rv-own { font-size: 14px; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: rgba(34, 211, 238, .12); color: var(--st-cyan); }
.rv-track i.p-dance { background: linear-gradient(90deg, var(--st-cyan), var(--st-pink)); }

/* ---------- round 5: the Look tab's 👗 Wardrobe and 🧍 Member poses ---------- */
.st-wd { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: var(--st-r); background: var(--st-card2); min-width: 0; }
.st-wd .st-h { margin: 0; }
.st-sy { min-width: 0; max-width: 100%; }
.st-wd .st-mem, .st-members .st-mem { min-height: 44px; }
/* inside the studio the builder panels sit on the section's card: one step darker */
.studio .sy-panel { --sy-card: var(--st-ink); --sy-card2: var(--st-card); }
.studio .sy-top { background: linear-gradient(180deg, var(--st-card2) 82%, transparent); }
/* the sticky builder header sits below the studio's sticky tab bar */
.studio .sy-top { top: 56px; }
.studio.wizard .sy-top, .studio.looked .sy-top { top: 0; }

/* ---------- round 5: the Song tab — ✨ Quick hook | 🎛 Full studio ---------- */
.st-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.st-mode-b { border: 0; border-radius: 14px; min-height: 56px; padding: 6px 4px; background: var(--st-card2); color: var(--st-muted);
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; min-width: 0; }
.st-mode-b span { grid-row: 1 / 3; font-size: 24px; line-height: 1; padding-left: 6px; }
.st-mode-b b { font-size: 14px; line-height: 1.1; }
.st-mode-b small { font-size: 11px; line-height: 1.15; opacity: .9; }
.st-mode-b.on { color: #fff; background: linear-gradient(135deg, rgba(255, 79, 154, .55), rgba(139, 92, 255, .55)); box-shadow: inset 0 0 0 2px var(--st-pink); }
.st-newcard { position: relative; width: 100%; border: 0; border-radius: var(--st-r); padding: 12px 14px 12px 66px; min-height: 64px; text-align: left;
  display: flex; flex-direction: column; justify-content: center; gap: 2px; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, #ff4f9a, #8b5cff 55%, #22d3ee); box-shadow: 0 6px 18px rgba(139, 92, 255, .35); }
.st-newcard::before { content: "🎛"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 34px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.st-newcard b { font-size: 16px; line-height: 1.15; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); padding-right: 44px; }
.st-newcard small { font-size: 12.5px; line-height: 1.3; opacity: .95; }
.st-new { position: absolute; right: 10px; top: 8px; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: #fff; color: #8b5cff; animation: st-throb 1.4s ease-in-out infinite; }
.st-newcard:active { transform: scale(.98); }
.st-tk { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; }
.st-tracks-host { min-width: 0; max-width: 100%; }
.st-tracks-host:empty { display: none; }
.st-scraft .st-meter b { min-width: 0; }
.st-scraft .st-meter span b { color: var(--st-text); }
.st-scraft .st-meter-bar i { background: linear-gradient(90deg, var(--st-cyan), var(--st-violet), var(--st-pink)); }
.rv-track i.p-scraft { background: linear-gradient(90deg, var(--st-cyan), var(--st-violet)); }
.rv-track i.p-vox { background: linear-gradient(90deg, var(--st-pink), var(--st-amber)); }
.rv-vox.on b { color: var(--st-green); }

/* ================================================================ round 5: styler.js (sy-)
   The shared builder panels: the style studio (inside .style-ed), the studio's Look tab (inside .studio) and
   the face-claim editor (inside .so-fced). Self-contained: every token has a fallback. Phone first: every chip
   and swatch is ≥ 44 px and every strip scrolls sideways inside the panel, never the page. */
.sy-panel {
  --sy-card: var(--ink-3, #2a2242); --sy-card2: var(--ink-4, #362c55); --sy-text: var(--text, #f7f2ff); --sy-muted: var(--muted, #b8aed3);
  --sy-pink: var(--pink, #ff4f9a); --sy-violet: var(--violet, #8b5cff); --sy-cyan: var(--cyan, #22d3ee); --sy-green: var(--green, #2ee6a0);
  --sy-grad: linear-gradient(120deg, var(--sy-pink), var(--sy-violet) 55%, var(--sy-cyan));
  display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; color: var(--sy-text);
}
.sy-panel *, .sy-panel *::before, .sy-panel *::after { box-sizing: border-box; }
.sy-panel button { font: inherit; color: inherit; border: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sy-panel button:focus-visible, .sy-panel input:focus-visible { outline: 2px solid var(--sy-cyan); outline-offset: 2px; }
.sy-panel button:disabled { opacity: .35; cursor: not-allowed; }

/* the header: the live preview (when the panel has its own) beside the title and the big 🎲 */
.sy-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-end; gap: 12px; min-width: 0;
  padding: 6px 0 8px; background: linear-gradient(180deg, var(--ink-2, #1e1830) 82%, rgba(30, 24, 48, 0)); }
.sy-top-t { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; flex: 1; }
.sy-top-t b { font: 800 17px/1.15 var(--font-display, "Baloo 2", system-ui, sans-serif); }
.sy-top-t small { font-size: 12px; color: var(--sy-muted); line-height: 1.3; }
.sy-prev { flex: none; width: 78px; height: 180px; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 70%); }
.sy-prev svg { width: 100%; height: 100%; display: block; }
.sy-prev2 { width: auto; display: flex; align-items: flex-end; gap: 6px; background: none; overflow: visible; }
.sy-prev2 > span { display: block; height: 180px; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 70%); }
.sy-prev2 .sy-pfull { width: 78px; }
.sy-prev2 .sy-pbust { width: 110px; height: 132px; background: radial-gradient(circle at 50% 40%, rgba(255, 143, 199, .22), rgba(139, 92, 255, .08) 70%); }
.sy-prev2 svg { width: 100%; height: 100%; display: block; }
@media (max-width: 359px) { .sy-prev2 .sy-pbust { display: none; } }
.sy-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--sy-card); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sy-big-dice { margin-top: 6px; background: var(--sy-grad); color: #fff; box-shadow: 0 4px 14px rgba(255, 79, 154, .35); }
.sy-btn:active, .sy-chip:active, .sy-th:active, .sy-sw:active { transform: scale(.95); }
.sy-dice { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--sy-card); font-size: 22px; line-height: 1; }

/* 🤝 Whole group matches (and the other on/off switches) */
.sy-switch { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: 16px; background: var(--sy-card); text-align: left; }
.sy-knob { flex: none; position: relative; width: 48px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .18); transition: background .15s; }
.sy-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .15s; }
.sy-switch.on .sy-knob { background: var(--sy-green); }
.sy-switch.on .sy-knob::after { transform: translateX(20px); }
.sy-switch-t { display: flex; flex-direction: column; min-width: 0; }
.sy-switch-t b { font-size: 14px; line-height: 1.2; }
.sy-switch-t small { font-size: 12px; color: var(--sy-muted); line-height: 1.25; }

/* the tabs: every one visible (they wrap), never hidden off the side */
.sy-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--ink, #14101f); }
.sy-tab { min-height: 48px; border-radius: 10px; background: transparent; color: var(--sy-muted); font-size: 11.5px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; padding: 4px 2px; }
.sy-tab span { font-size: 19px; line-height: 1.1; }
.sy-tab.on { background: var(--sy-grad); color: #fff; box-shadow: 0 3px 10px rgba(139, 92, 255, .35); }
.sy-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.sy-lab { margin: 6px 2px 0; font-size: 13px; font-weight: 800; color: var(--sy-muted); }
.sy-lab small { font-weight: 400; }
.sy-sub { margin: 6px 2px 0; font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sy-hint { margin: 0; font-size: 12.5px; color: var(--sy-muted); line-height: 1.35; }
.sy-link { background: none; min-height: 44px; padding: 0 4px; font-size: 12.5px; font-weight: 700; color: var(--sy-cyan); text-decoration: underline; }
.sy-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sy-fits { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--ink, #14101f); }
.sy-fit { min-height: 44px; min-width: 56px; padding: 0 12px; border-radius: 999px; background: transparent; color: var(--sy-muted); font-size: 13px; font-weight: 700; }
.sy-fit.on { background: var(--sy-card2); color: var(--sy-text); }

/* the picture strips: two rows of thumbnails that scroll sideways inside the panel */
.sy-strip { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 80px; gap: 6px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  padding: 2px 2px 8px; max-width: 100%; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.sy-strip::-webkit-scrollbar { height: 6px; }
.sy-strip::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 6px; }
.sy-strip-tall { grid-template-rows: auto; grid-auto-columns: 86px; }
.sy-th { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; min-height: 44px; padding: 4px 2px 5px;
  border-radius: 12px; background: var(--sy-card); color: var(--sy-muted); scroll-snap-align: start; }
.sy-th.on { color: var(--sy-text); box-shadow: inset 0 0 0 2px var(--sy-pink); background: linear-gradient(170deg, rgba(255, 79, 154, .22), var(--sy-card)); }
.sy-th small { font-size: 10.5px; line-height: 1.12; text-align: center; min-height: 2.25em; overflow-wrap: anywhere; }
.sy-img { display: block; width: 100%; height: 84px; border-radius: 8px; }
.sy-img[data-lz] { background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .1), transparent 70%); animation: sy-wait 1s ease-in-out infinite alternate; }
@keyframes sy-wait { to { opacity: .45; } }
.sy-img svg { width: 100%; height: 100%; display: block; }
.sy-strip-tall .sy-img { height: 128px; }
.sy-noimg { display: grid; place-items: center; font-size: 26px; }

/* chips */
.sy-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sy-scroll1 { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
.sy-scroll1::-webkit-scrollbar, .sy-scroll2::-webkit-scrollbar { display: none; }
.sy-scroll2 { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max-content; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
.sy-chip { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--sy-card); font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sy-chip.on { background: var(--sy-grad); color: #fff; }
.sy-mine { box-shadow: inset 0 0 0 2px rgba(255, 209, 102, .55); }
.sy-make { background: transparent; box-shadow: inset 0 0 0 2px var(--sy-violet); color: var(--sy-text); }
.sy-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
.sy-dot.none { background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255, 255, 255, .45) 3px 4px); }
.sy-ico { font-style: normal; font-size: 13px; line-height: 1; }

/* big colour swatches + any colour */
.sy-sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.sy-sw { height: 44px; border-radius: 12px; padding: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.sy-sw.on { box-shadow: 0 0 0 3px var(--ink-2, #1e1830), 0 0 0 5px #fff; }
.sy-pick { position: relative; height: 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; cursor: pointer;
  background: conic-gradient(#ff4f9a, #ffb020, #d9f14b, #2ee59d, #22d3ee, #8b5cff, #ff4f9a); }
.sy-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; font-size: 16px; }
.sy-pick span { pointer-events: none; font-size: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.sy-edit { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; border-radius: 14px; background: var(--sy-card); min-width: 0; }
.sy-edit .sy-sub { margin-top: 0; }
.sy-edit .sy-sw.on { box-shadow: 0 0 0 3px var(--sy-card), 0 0 0 5px #fff; }

/* patterns: each chip is a little drawn swatch */
.sy-pats { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px 2px 4px; }
.sy-pats::-webkit-scrollbar { display: none; }
.sy-pat { flex: none; width: 62px; min-height: 64px; padding: 4px; border-radius: 12px; background: var(--sy-card2); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sy-pat svg { width: 44px; height: 44px; border-radius: 10px; display: block; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.sy-pat small { font-size: 10px; line-height: 1.1; text-align: center; color: var(--sy-muted); }
.sy-pat.on { box-shadow: inset 0 0 0 2px var(--sy-pink); }
.sy-pat.on small { color: var(--sy-text); }

/* beauty marks: tap spots on a little face map */
.sy-facemap { position: relative; width: 240px; height: 240px; margin: 2px auto 14px; }
.sy-facemap svg { width: 100%; height: 100%; display: block; }
.sy-spot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); display: grid; place-items: center; }
.sy-spot i { width: 8px; height: 8px; border-radius: 50%; background: rgba(58, 34, 40, .35); transition: transform .12s; }
.sy-spot.on { box-shadow: inset 0 0 0 2px var(--sy-pink); background: rgba(255, 79, 154, .18); }
.sy-spot.on i { background: #3a2228; transform: scale(1.3); }
.sy-hwrow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  .studio *, .studio *::before, .studio *::after { animation: none !important; transition: none !important; }
  .sy-panel *, .sy-panel *::before, .sy-panel *::after { animation: none !important; transition: none !important; }
}

/* ---------- round 6: the album on the Song tab, the MV maker on the MV tab, the new Review bars ---------- */
.st-seg small + small { font-size: 10.5px; opacity: .9; }
.st-ab-host:empty { display: none; }
.st-ab-host { margin-top: 4px; min-width: 0; }
.st-mvmake { margin-top: 6px; }
.st-mvmake::before { content: "🎬"; }
.st-mvx { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.st-mvx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.st-mvx-head .st-title-lg { margin: 0; }
.st-mvx-head .st-btn { min-height: 40px; font-size: 13px; }
.st-mx-host { min-width: 0; }
.rv-track i.p-album { background: linear-gradient(90deg, var(--st-amber), var(--st-green)); }
.rv-track i.p-mv { background: linear-gradient(90deg, var(--st-cyan), var(--st-violet), var(--st-pink)); }
.rv-track i.p-chem { background: linear-gradient(90deg, #ff8fc7, var(--st-pink)); }

/* ---------- round 7: 💿 how many songs (1–20) — a − / ＋ stepper with a row of discs, then the type presets ---------- */
.st-rel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; border-radius: var(--st-r); background: var(--st-card2); min-width: 0; }
.st-rel-step { display: flex; align-items: center; gap: 6px; }
.st-rel-b { border: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--st-ink); color: var(--st-text); font-size: 26px; font-weight: 800; line-height: 1; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); transition: transform .1s; }
.st-rel-b:not(:disabled):active { transform: scale(.9); }
.st-rel-b:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--st-pink); }
.st-rel-b:disabled { opacity: .35; cursor: default; }
.st-rel-n { min-width: 48px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.st-rel-n b { font-family: var(--font-display, "Baloo 2", "Fredoka", system-ui, sans-serif); font-size: 30px; font-variant-numeric: tabular-nums; }
.st-rel-n small { font-size: 11px; color: var(--st-muted); }
.st-rel-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-rel-info b { font-size: 15px; line-height: 1.15; }
.st-rel-info small { font-size: 12px; color: var(--st-amber); font-weight: 700; }
.st-rel-discs { display: flex; flex-wrap: wrap; gap: 3px; padding-top: 2px; }
.st-rel-discs i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, var(--st-ink) 0 22%, var(--st-pink) 24% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); animation: st-disc .25s ease-out; }
.st-rel-discs i.ttl { background: radial-gradient(circle, var(--st-ink) 0 22%, #ffd166 24% 100%); }
@keyframes st-disc { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.st-rel + .st-hint { margin-top: -2px; }
.st-segs .st-seg small { white-space: nowrap; }
.st-mvrel { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.st-mvrel .st-h { margin-top: 6px; }

/* ---------- round 7: the 💃 dance meter — its own dance look, and it stays in view above the timeline ---------- */
.st-dmeter {
  --dm: var(--st-dance, #22d3ee);
  position: sticky; top: 56px; z-index: 2;   /* just under the studio's sticky tab bar */
  display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border-radius: 14px;
  background: rgba(20, 16, 31, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 2px rgba(34, 211, 238, .45), 0 6px 16px rgba(0, 0, 0, .35);
}
.st-dm-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.st-dm-lab { font-size: 13px; font-weight: 700; color: var(--dm); white-space: nowrap; }
.st-dm-lab b { font-family: var(--font-display, "Baloo 2", "Fredoka", system-ui, sans-serif); font-size: 20px; color: var(--st-text); margin-left: 2px; font-variant-numeric: tabular-nums; }
.st-dm-word { font-size: 13px; text-align: right; color: var(--st-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 16 beat steps that climb like a staircase; every 4th is a downbeat */
.st-dm-steps { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); align-items: end; gap: 3px; height: 26px; }
.st-dm-steps i { display: block; height: var(--h, 50%); border-radius: 4px 4px 2px 2px; background: rgba(34, 211, 238, .14); transition: background .2s, box-shadow .2s; }
.st-dm-steps i.bt { box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .12); }
.st-dm-steps i.on { background: linear-gradient(180deg, #8ff3ff, var(--dm)); box-shadow: 0 0 8px rgba(34, 211, 238, .55); }
.st-dm-steps i.on.bt { background: linear-gradient(180deg, #ffffff, var(--dm)); }
.st-dm-steps i.new { animation: st-hop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes st-hop { 0% { transform: translateY(6px) scaleY(.6); } 60% { transform: translateY(-4px); } 100% { transform: none; } }
.st-dmeter.up .st-dm-word { animation: st-pop .35s ease-out; }
@keyframes st-pop { 0% { transform: scale(.85); } 70% { transform: scale(1.08); } 100% { transform: none; } }
.st-dm-note { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.studio.wizard .st-dmeter, .studio.looked .st-dmeter { top: 0; }
