  #mvStudio { position: fixed; inset: 0; z-index: 60; background: var(--bg, #05070d); overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 110px); }
  #mvStudio.hidden { display: none; }
  .mv-wrap { max-width: 1100px; margin: 0 auto; }
  .mv-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; position: sticky; top: 0; z-index: 2; padding: 8px 0;
    background: rgba(4,7,14,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin: 0 -16px 14px; padding: 8px 16px; }
  .mv-top h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; flex: 1; display: flex; align-items: center; gap: 10px; }
  .mv-top h2 .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #a855f7, #22d3ee); color: #fff; }
  .mv-top h2 svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .mv-x { min-width: 44px; min-height: 44px; border-radius: 22px; }
  .mv-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 16px; align-items: start; }
  @media (max-width: 860px) { .mv-grid { grid-template-columns: 1fr; } }
  .mv-card { background: var(--card, rgba(255,255,255,.04)); border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 18px; padding: 16px; }
  .mv-card + .mv-card { margin-top: 14px; }
  .mv-h { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #8b93a7); margin: 0 0 10px; }
  .mv-suno { display: flex; align-items: center; gap: 10px; font-size: 14px; }
  .mv-suno .dot { width: 9px; height: 9px; border-radius: 50%; background: #64748b; flex: none; }
  .mv-suno .dot.on { background: #34d399; box-shadow: 0 0 8px #34d399; }
  .mv-suno span { flex: 1; }
  .mv-songs { max-height: 300px; overflow-y: auto; margin-top: 8px; display: grid; gap: 6px; }
  .mv-song { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 8px; min-height: 52px; border-radius: 12px;
    background: transparent; border: 1px solid transparent; color: inherit; font: inherit; cursor: pointer; }
  .mv-song:hover { background: rgba(255,255,255,.04); }
  .mv-song.on { border-color: var(--accent, #3b82f6); background: color-mix(in srgb, var(--accent, #3b82f6) 14%, transparent); }
  .mv-song img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: #111; }
  .mv-song b { display: block; font-weight: 600; font-size: 15px; }
  .mv-song small { color: var(--muted, #8b93a7); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
  .mv-proj { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px; border-radius: 14px; background: transparent;
    border: 1px solid var(--line, rgba(255,255,255,.08)); color: inherit; font: inherit; cursor: pointer; min-height: 64px; }
  .mv-proj + .mv-proj { margin-top: 8px; }
  .mv-proj.on { border-color: var(--accent, #3b82f6); }
  .mv-proj img, .mv-proj .ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: linear-gradient(135deg, #312e81, #0e7490); }
  .mv-proj .t { font-weight: 600; font-size: 15px; }
  .mv-proj .s { font-size: 12.5px; color: var(--muted, #8b93a7); margin-top: 2px; }
  .mv-proj .s.err { color: #f87171; }
  .mv-pill { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.08); white-space: nowrap; }
  .mv-pill.review { background: #f59e0b22; color: #fbbf24; } .mv-pill.done { background: #10b98122; color: #34d399; }
  .mv-pill.rendering, .mv-pill.working { background: #3b82f622; color: #60a5fa; } .mv-pill.error { background: #ef444422; color: #f87171; }
  .mv-empty { text-align: center; padding: 48px 16px; color: var(--muted, #8b93a7); }
  .mv-empty h3 { color: var(--text, #e5e7eb); margin: 10px 0 6px; font-size: 20px; }
  .mv-steps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 14px; font-size: 12.5px; }
  .mv-steps span { padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.05); }
  .mv-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
  .mv-hero img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
  .mv-hero h3 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
  .mv-hero p { margin: 4px 0 0; color: var(--muted, #8b93a7); font-size: 14px; }
  .mv-field { margin-top: 12px; }
  .mv-field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted, #8b93a7); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
  .mv-field textarea, .mv-field input { width: 100%; box-sizing: border-box; }
  .mv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 600px) { .mv-two { grid-template-columns: 1fr; } }
  .mv-arc { display: grid; gap: 8px; }
  .mv-arc div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border-left: 3px solid var(--accent, #3b82f6); font-size: 14px; line-height: 1.45; }
  .mv-arc b { font-weight: 600; } .mv-arc small { color: var(--muted, #8b93a7); }
  .mv-shots { display: grid; gap: 10px; }
  .mv-shot { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line, rgba(255,255,255,.06)); }
  .mv-shot .tc { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; }
  .mv-shot .tc small { display: block; font-weight: 400; color: var(--muted, #8b93a7); }
  .mv-shot .ly { font-style: italic; color: #c4b5fd; font-size: 14px; margin-bottom: 4px; }
  .mv-shot .meta { font-size: 12.5px; color: var(--muted, #8b93a7); margin-bottom: 6px; }
  .mv-shot textarea { width: 100%; box-sizing: border-box; font-size: 13.5px; min-height: 70px; }
  .mv-shot .why { font-size: 12.5px; color: var(--muted, #8b93a7); margin-top: 4px; }
  .mv-shot.sec { border-top: 3px solid #a855f7; }
  .mv-rtool { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
  .mv-rtool button { min-height: 42px; }
  .mv-segq { display: inline-flex; gap: 6px; }
  .mv-segq button.on { background: color-mix(in srgb, var(--accent, #3b82f6) 24%, transparent); border-color: var(--accent, #3b82f6); }
  .mv-sbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
  .mv-sel { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted, #8b93a7); min-height: 38px; }
  .mv-sel input { width: 20px; height: 20px; }
  .mv-chip { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.08); }
  .mv-chip.ok { background: #10b98122; color: #34d399; } .mv-chip.work { background: #3b82f622; color: #60a5fa; }
  .mv-chip.wait { background: #f59e0b22; color: #fbbf24; } .mv-chip.bad { background: #ef444422; color: #f87171; }
  .mv-gen { margin-left: auto; min-height: 38px; padding: 0 14px; font-size: 14px; }
  .mv-clip, .mv-rough video { display: block; width: 100%; max-height: 46vh; border-radius: 12px; margin-top: 8px; background: #000; }
  .mv-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
  .mv-acts button { min-height: 44px; }
  .mv-sticky { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 8px); z-index: 2; margin-top: 14px; padding: 12px; border-radius: 16px;
    background: color-mix(in srgb, var(--bg, #05070d) 85%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line, rgba(255,255,255,.08)); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .mv-sticky .grow { flex: 1; font-size: 13px; color: var(--muted, #8b93a7); min-width: 160px; }
  .mv-player video { width: 100%; border-radius: 14px; background: #000; }
  .mv-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 10px; }
  .mv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #a855f7, #22d3ee); transition: width 1s; }
  .mvb { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 7px; }
  .mvb i { display: block; height: 100%; background: linear-gradient(90deg, #a855f7, #22d3ee); transition: width .8s; }
  .mv-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: #a855f7; animation: mvspin 1s linear infinite; margin: 0 auto 12px; }
  @keyframes mvspin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .mv-spin { animation: none; } }
  html[data-theme="light"] #mvStudio { background: #f5f5f7; }
  html[data-theme="light"] .mv-top { background: rgba(245,245,247,.94); }
  .mv-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
  .mv-tools button { min-height: 40px; font-size: 14px; padding: 0 14px; }
  @media (max-width: 600px) {
    .mv-shot { grid-template-columns: 1fr; gap: 6px; }
    .mv-shot .tc { display: flex; gap: 8px; align-items: baseline; }
    .mv-shot .tc small { display: inline; }
    .mv-sticky { padding: 8px 10px; gap: 8px; }
    .mv-sticky .grow { min-width: 0; font-size: 12px; }
    .mv-sticky #mvMake { flex: none; }
  }
  html[data-theme="light"] .mv-card { background: #fff; border-color: rgba(0,0,0,.08); }
  html[data-theme="light"] .mv-shot, html[data-theme="light"] .mv-arc div { background: rgba(0,0,0,.025); }
  html[data-theme="light"] .mv-shot .ly { color: #7c3aed; }
  html[data-theme="light"] .mv-sticky { background: rgba(255,255,255,.85); border-color: rgba(0,0,0,.08); }
  body.mv-open { overflow: hidden; }
  .mv-song { padding: 0; overflow: hidden; }
  .mv-song .pick { width: auto !important; flex: 1 1 auto; min-width: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 12px; justify-content: flex-start; }
  .mv-song .pick > span { min-width: 0; overflow: hidden; }
  .mv-song small { max-width: 100% !important; }
  .mv-play { box-shadow: none !important; }
  .mv-song .pick { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; padding: 8px; min-height: 52px;
    background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
  .mv-play { width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 22px; display: grid; place-items: center; flex: none;
    background: rgba(255,255,255,.07); border: 1px solid var(--line, rgba(255,255,255,.1)); color: inherit; cursor: pointer; margin-right: 6px; }
  .mv-play svg { width: 18px; height: 18px; fill: currentColor; }
  .mv-play.on { background: linear-gradient(135deg, #a855f7, #22d3ee); color: #fff; border-color: transparent; }
  .mv-play.busy { opacity: .6; pointer-events: none; }
  .mv-hero .mv-play { margin: 0 0 0 auto; width: 52px; height: 52px; border-radius: 26px; }
  .mv-time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted, #8b93a7); min-width: 76px; text-align: right; }
  .mv-shot .tc { cursor: pointer; border-radius: 8px; }
  .mv-shot .tc:hover { color: #c084fc; }
  .mv-shot.playing { border-color: #a855f7; box-shadow: 0 0 0 1px #a855f7, 0 0 18px #a855f733; }
  html[data-theme="light"] .mv-play { background: rgba(0,0,0,.05); }
