/* ==========================================================================
   Transcribe + Video Analysis — mobile-first studio UI
   Dark theme, brand violet, 16px gutters, >=44px tap targets, no horizontal
   overflow at 360px. Two columns only on wide screens.
   ========================================================================== */

.studio-wrap { max-width: 960px; margin: 0 auto; }
.studio-wrap--wide { max-width: 1060px; }

/* ---------- Page heading ---------- */
.studio-head { margin-bottom: var(--sp-5); }
.studio-head h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}
.studio-head__desc {
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: var(--sp-2);
}
.studio-head p { color: var(--text-secondary); max-width: 72ch; }
.studio-head__row { display: flex; align-items: flex-start; gap: var(--sp-2); flex-wrap: wrap; }

/* Small info affordance + tooltip (replaces walls of browser-binding text). */
.info-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.info-tip:hover, .info-tip:focus-visible { color: var(--text-primary); border-color: var(--violet); }
.info-tip__bubble {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  width: min(280px, 78vw);
  padding: var(--sp-3);
  z-index: 20;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.info-tip:hover .info-tip__bubble,
.info-tip:focus-visible .info-tip__bubble,
.info-tip[aria-expanded="true"] .info-tip__bubble { display: block; }

/* ---------- Cards / form ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 900px) {
  .studio-grid--2 { grid-template-columns: 1.05fr .95fr; align-items: start; }
}
.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
}
@media (min-width: 560px) { .studio-card { padding: var(--sp-5); } }
.studio-card h2 { font-family: var(--font-display); font-size: 18px; line-height: 1.3; margin-bottom: var(--sp-3); }
.studio-card h3 { font-family: var(--font-display); font-size: 15px; margin: var(--sp-4) 0 var(--sp-2); }
.studio-field { margin-bottom: var(--sp-4); }
.studio-field:last-child { margin-bottom: 0; }
.studio-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 560px) { .studio-row { grid-template-columns: 1fr 1fr; } }
.studio-hint { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin-top: var(--sp-2); }
.studio-hint--upload { margin: 10px 0 0; font-size: 13px; }
.studio-notice {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: var(--sp-4);
}
.studio-error {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid rgba(239, 68, 68, .35);
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, .1);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  margin: var(--sp-3) 0;
}
.studio-empty { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--text-secondary); }

/* Upload drop zone */
.studio-drop {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  display: block;
  cursor: pointer;
  background: var(--bg-surface);
  min-height: 132px;
}
.studio-drop.is-dragover { border-color: var(--violet); background: var(--violet-dim); }
.studio-drop input { display: none; }
.studio-drop strong { display: block; font-family: var(--font-display); font-size: 16px; margin-bottom: 4px; }
.studio-drop span { color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.studio-drop:focus-within { border-color: var(--violet); box-shadow: var(--violet-glow); }

.studio-progress { margin-top: var(--sp-4); }
.studio-progress__track {
  height: 8px; border-radius: 999px; background: var(--bg-surface);
  overflow: hidden; border: 1px solid var(--border-subtle);
}
.studio-progress__bar { height: 100%; width: 0; background: var(--violet); transition: width .2s ease; }
.studio-progress__meta {
  display: flex; justify-content: space-between; gap: var(--sp-2);
  font-size: 13px; color: var(--text-secondary); margin-top: var(--sp-2);
}

/* Platform toggle chips */
.platform-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.platform-chip input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.platform-chip__dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid currentColor; flex-shrink: 0;
}
.platform-chip:has(input:checked) {
  background: var(--violet-dim);
  border-color: var(--border-focus);
  color: var(--text-primary);
}
.platform-chip:has(input:checked) .platform-chip__dot {
  background: var(--violet-alt); border-color: var(--violet-alt);
  box-shadow: 0 0 0 3px rgba(139, 124, 246, .18);
}
.platform-chip:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }

/* Advanced options accordion */
.advanced {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  margin: var(--sp-4) 0;
}
.advanced__toggle {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-4);
  cursor: pointer; font-family: var(--font-display); font-weight: 600;
  color: var(--text-secondary); list-style: none;
}
.advanced__toggle::-webkit-details-marker { display: none; }
.advanced[open] .advanced__toggle { color: var(--text-primary); }
.advanced__chevron { transition: transform .2s ease; }
.advanced[open] .advanced__chevron { transform: rotate(180deg); }
.advanced__panel { padding: 0 var(--sp-4) var(--sp-4); }

/* ---------- Results shell / header ---------- */
.result-shell { max-width: 1060px; margin: 0 auto; }
.result-head {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.result-head__title { min-width: 0; flex: 1 1 260px; }
.result-head h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.6vw, 32px);
  line-height: 1.15; letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.result-head__sub { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.result-head__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.countdown-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 var(--sp-3);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  color: var(--violet-alt);
  background: rgba(108, 92, 231, .12);
  border: 1px solid rgba(108, 92, 231, .25);
  white-space: nowrap;
}
.countdown-chip.is-warning { color: var(--warning); background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .4); }
.countdown-chip.is-danger { color: var(--error); background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .4); animation: expiry-pulse 1s ease-in-out infinite; }
.countdown-chip.is-expired { color: var(--error); animation: none; }
@keyframes expiry-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* Legacy countdown class used elsewhere; keep chip-like. */
.studio-countdown {
  margin-bottom: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--violet-alt);
  background: rgba(108, 92, 231, .12);
  border: 1px solid rgba(108, 92, 231, .25);
}
.studio-countdown.is-warning { color: #f59e0b; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.4); }
.studio-countdown.is-danger { color: #ef4444; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); animation: expiry-pulse 1s ease-in-out infinite; }
.studio-countdown.is-expired { color: var(--error); background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); animation: none; }

.studio-expired {
  padding: var(--sp-5);
  border: 1px solid rgba(239,68,68,.35);
  border-radius: var(--radius-md);
  background: rgba(239,68,68,.08);
  margin-bottom: var(--sp-4);
}
.studio-expired p { margin-bottom: var(--sp-3); }

/* ---------- Tabs ---------- */
.result-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  margin: 0 0 var(--sp-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  scrollbar-width: none;
}
.result-tabs::-webkit-scrollbar { display: none; }
.result-tab {
  flex: 1 0 auto;
  min-height: 44px;
  padding: 0 var(--sp-4);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.result-tab[aria-selected="true"] {
  background: var(--violet);
  color: #fff;
}
.result-tab:focus-visible { outline: 2px solid var(--violet-alt); outline-offset: 2px; }
.tab-panel[hidden] { display: none !important; }

/* ---------- Transcript editor ---------- */
.transcript-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.transcript-counts { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }
.studio-textarea, .transcript-editor {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-primary);
}
.segment-times { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.segment-time {
  display: flex; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 13.5px; line-height: 1.5;
}
.segment-time b { flex-shrink: 0; font-family: var(--font-mono); color: var(--text-violet); font-weight: 500; }
.studio-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.studio-actions .btn { min-height: 44px; padding: 0 var(--sp-3); font-size: 14px; }

/* ---------- Social posts ---------- */
.platform-filter { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: 4px; margin-bottom: var(--sp-3); }
.filter-chip {
  flex: 0 0 auto; min-height: 40px; padding: 0 var(--sp-3);
  border: 1px solid var(--border-subtle); border-radius: 999px;
  background: var(--bg-surface); color: var(--text-secondary);
  font-size: 13px; font-weight: 600;
}
.filter-chip.is-active { background: var(--violet-dim); border-color: var(--border-focus); color: var(--text-primary); }
.social-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 900px) { .social-grid { grid-template-columns: 1fr 1fr; } }
.social-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  background: var(--bg-surface);
  min-width: 0;
}
.social-card__head {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2);
}
.social-card__platform { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-violet); }
.social-card__count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.social-card__count.is-over { color: var(--error); font-weight: 600; }
.social-card__post { white-space: pre-wrap; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.social-card__tags { margin-top: var(--sp-2); color: var(--text-violet); font-size: 13px; word-break: break-word; }
.social-card .textarea { margin-top: var(--sp-2); min-height: 150px; }
.social-card .studio-actions { margin-top: var(--sp-3); }

/* ---------- Exports ---------- */
.export-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 700px) { .export-grid { grid-template-columns: repeat(3, 1fr); } }
.export-card {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-4); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); background: var(--bg-surface);
}
.export-card strong { font-family: var(--font-display); font-size: 16px; }
.export-card p { color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; flex: 1; }

/* ---------- Analysis hero / score ---------- */
.analysis-hero {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-3);
}
@media (min-width: 700px) {
  .analysis-hero { grid-template-columns: 168px 1fr; align-items: center; }
}
.score-ring { position: relative; width: 144px; height: 144px; margin: 0 auto; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring__track { fill: none; stroke: var(--bg-surface); stroke-width: 10; }
.score-ring__value { fill: none; stroke: var(--violet-alt); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.score-ring__center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
}
.score-ring__num { font-family: var(--font-display); font-size: 42px; font-weight: 800; line-height: 1; }
.score-ring__label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.analysis-hero__copy p { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.analysis-hero__copy .studio-hint { margin-top: var(--sp-2); }

/* Sticky primary action bar. Bottom on mobile (above the tab bar), top on desktop. */
.studio-actionbar {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  padding: var(--sp-2);
  margin: 0 0 var(--sp-4);
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.studio-actionbar .btn { flex: 1 1 150px; min-height: 44px; }
.studio-actionbar .spinner { width: 14px; height: 14px; }

@media (max-width: 768px) {
  .studio-actionbar {
    position: fixed;
    left: 8px; right: 8px;
    bottom: calc(66px + env(safe-area-inset-bottom));
    z-index: 110;
    margin: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
  }
  .studio-wrap--with-actionbar { padding-bottom: 150px; }
  .has-mobile-actionbar .site-footer {
    padding-bottom: calc(140px + env(safe-area-inset-bottom));
  }
}
@media (min-width: 769px) {
  .studio-actionbar { position: sticky; top: 68px; z-index: 30; }
  .studio-actionbar--mobile { display: none !important; }
}

/* In-page jump chips (mobile) */
.report-jump { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: 4px; margin-bottom: var(--sp-3); }
.report-jump a {
  flex: 0 0 auto; min-height: 36px; padding: 0 var(--sp-3);
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-subtle); border-radius: 999px;
  background: var(--bg-surface); color: var(--text-secondary);
  font-size: 12.5px; font-weight: 600;
}

/* Collapsible report sections */
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-3);
  overflow: clip;
  scroll-margin-top: 140px;
}
.report-card > summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2);
  min-height: 52px;
  padding: 0 var(--sp-4);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}
.report-card > summary::-webkit-details-marker { display: none; }
.report-card > summary::after {
  content: '▾';
  color: var(--text-muted);
  font-size: 13px;
  transition: transform .2s ease;
}
.report-card[open] > summary::after { transform: rotate(180deg); }
.report-card__body { padding: 0 var(--sp-4) var(--sp-4); }
.report-card__body > p:first-child { margin-top: 0; }
.report-card:focus-within { border-color: var(--border-focus); }

.studio-list { display: grid; gap: var(--sp-2); }
.studio-list__item {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  min-width: 0;
}
.studio-list__item strong { display: block; font-family: var(--font-display); font-size: 14px; margin-bottom: 4px; }
.studio-list__item p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; overflow-wrap: anywhere; }
.studio-ts { font-family: var(--font-mono); font-size: 12px; color: var(--text-violet); }
.ts-chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 34px; padding: 0 10px; margin-left: 6px;
  border-radius: 999px;
  border: 1px solid rgba(139, 124, 246, .35);
  background: var(--violet-dim);
  color: var(--text-violet);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}
.ts-chip:hover { background: rgba(108, 92, 231, .22); color: var(--text-primary); }

/* Score breakdown */
.score-components { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
@media (max-width: 420px) { .score-components { grid-template-columns: 1fr; } }
.score-component {
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 13px;
  min-width: 0;
}
.score-component b { display: block; font-family: var(--font-display); font-size: 13.5px; text-transform: capitalize; }
.score-component span { color: var(--text-muted); line-height: 1.45; }
.score-big { display: flex; align-items: baseline; gap: var(--sp-2); }
.score-big strong { font-family: var(--font-display); font-size: 44px; line-height: 1; }

/* Signals */
.signals { display: grid; gap: var(--sp-2); }
.signal { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.signal__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; background: var(--success); }
.signal__dot--off { background: var(--text-muted); }

/* Original player */
.player-card { padding: var(--sp-3); }
.player-card summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.player-card summary::-webkit-details-marker { display: none; }
.player-card summary strong { font-family: var(--font-display); font-size: 16px; }
.player-card video { width: 100%; border-radius: var(--radius-md); background: #000; margin-top: var(--sp-2); }

/* ---------- Script rewrite ---------- */
.rewrite-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-4); margin-bottom: var(--sp-3); }
.rewrite-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 700px) { .rewrite-grid { grid-template-columns: 1fr 1fr; } }
.rewrite-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.rewrite-actions .btn { min-height: 44px; }
.version-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2);
  margin: var(--sp-2) 0 var(--sp-3);
}
.version-nav__label { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-secondary); }
.version-nav .btn { min-height: 38px; padding: 0 var(--sp-3); font-size: 13px; }
.beat-list { display: grid; gap: var(--sp-2); }
.beat-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: var(--sp-3);
  min-width: 0;
}
.beat-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.beat-label { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--text-violet); }
.beat-duration { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.beat-text {
  font-size: 15px; line-height: 1.65; color: var(--text-primary);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.beat-text[contenteditable="true"] { outline: 1px dashed var(--border-focus); border-radius: var(--radius-sm); padding: 4px; }
.beat-screen { margin-top: var(--sp-2); font-size: 13px; color: var(--text-secondary); }
.beat-screen b { color: var(--text-violet); font-weight: 600; }
.rewrite-changes { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.rewrite-changes li { padding-left: var(--sp-4); position: relative; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.rewrite-changes li::before { content: '✓'; position: absolute; left: 0; color: var(--success); }
.rewrite-disclaimer {
  margin-top: var(--sp-3); padding: var(--sp-3);
  border-left: 3px solid var(--violet);
  background: var(--bg-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-size: 13px; line-height: 1.55;
}

/* ---------- Loading / skeleton ---------- */
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-surface), var(--bg-hover), var(--bg-surface));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
  min-height: 16px;
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.loading-row { display: flex; align-items: center; gap: var(--sp-2); color: var(--text-secondary); font-size: 14px; }

/* Legacy step pills retained for any remaining page. */
.studio-steps { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.studio-step { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-subtle); color: var(--text-muted); }
.studio-step.is-active { color: #fff; background: var(--violet); border-color: var(--violet); }
.studio-step.is-done { color: var(--success); border-color: rgba(34,197,94,.4); }

@media (prefers-reduced-motion: reduce) {
  .skeleton, .countdown-chip.is-danger { animation: none; }
}
