/* The composition browser is the primary workflow; classic projects remain editable. */
.mv-directed-studio { margin-bottom: 22px; }
.mv-studio-heading { padding: 8px 3px 16px; }
.mv-studio-eyebrow { color: var(--text-secondary); font-size: 10px; letter-spacing: .14em; font-weight: 600; }
.mv-studio-heading h3 { margin: 7px 0 0; font-size: 19px; line-height: 1.5; font-weight: 650; letter-spacing: -.04em; text-wrap: balance; }
.mv-studio-filters { display: flex; gap: 5px; margin: 0 0 12px; }
.mv-studio-filters button { border: 0; background: transparent; color: var(--text-secondary); padding: 7px 14px; border-radius: 5px; cursor: pointer; font: inherit; font-size: 12px; }
.mv-studio-filters button.is-active { background: var(--text); color: var(--surface); }
.mv-direction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.mv-direction-card { min-width: 0; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text); text-align: left; cursor: pointer; overflow: hidden; transition: border-color .18s, background .18s; }
.mv-direction-card[hidden] { display: none; }
.mv-direction-card:hover { border-color: var(--text-dim); }
.mv-direction-card.is-active { border-color: var(--text); background: var(--surface); }
.mv-direction-card canvas { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 5px; }
.mv-direction-name { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 9px 6px; }
.mv-direction-name strong { font-size: 11px; font-weight: 600; }
.mv-direction-name small { font-size: 9px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.mv-direction-description { min-height: 3em; color: var(--text-secondary); font-size: 12px; line-height: 1.7; margin: 14px 3px 18px; }
.mv-direction-controls { padding: 16px 0 0; margin: 0; border: 0; border-top: 1px solid var(--surface-muted); }
.mv-direction-controls legend { padding: 0 9px 0 0; font-size: 12px; font-weight: 600; }
.mv-direct-control { display: flex; flex-direction: column; gap: 8px; margin: 0 3px 16px; font-size: 12px; color: var(--text-secondary); }
.mv-direct-control > span { display: flex; justify-content: space-between; }
.mv-direct-control output { color: var(--text); font-variant-numeric: tabular-nums; }
.mv-direct-control select { padding: 9px 10px; width: 100%; color: var(--text); background: var(--surface); border: 1px solid var(--surface-muted); border-radius: 6px; font: inherit; }
.mv-direct-control input[type=color] { width: 100%; height: 32px; padding: 3px; border: 1px solid var(--surface-muted); background: var(--surface); border-radius: 6px; cursor: pointer; }
.mv-direct-control input[type=checkbox] { align-self: flex-start; width: 18px; height: 18px; accent-color: var(--text); }
.mv-direct-undo { width: 100%; border: 1px solid var(--surface-muted); border-radius: 6px; color: var(--text); background: var(--surface); padding: 10px; cursor: pointer; font: inherit; font-size: 12px; }
.mv-direct-undo:disabled { opacity: .4; cursor: default; }
.mv-spatial-status { background: var(--surface); border-left: 2px solid #bb904e; padding: 10px; font-size: 12px; line-height: 1.6; }
.mv-legacy { border-top: 1px solid var(--surface-muted); padding-top: 16px; }
.mv-legacy > summary { color: var(--text-secondary); cursor: pointer; font-size: 12px; padding: 5px 0 17px; }
.mv-directed-active .mv-legacy .mv-rtabs, .mv-directed-active .mv-legacy .mv-rtab-panel, .mv-directed-active .mv-component-mixer { display: none; }
.mv-directed-active #mv-artwork-toolbar, .mv-directed-active #mv-lyrics-toolbar, .mv-directed-active #mv-title-toolbar { display: none !important; }
.mv-directed-active #mv-canvas { cursor: default; }
.mv-directed-studio button:focus-visible, .mv-directed-studio input:focus-visible, .mv-directed-studio select:focus-visible, .mv-demo-button:focus-visible, .mv-legacy summary:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.mv-studio-showcase { width: min(100%, 650px); margin: 0 auto 28px; text-align: left; }
.mv-studio-showcase canvas { display: block; width: 100%; height: auto; border-radius: 8px; }
.mv-showcase-caption { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 0; font-size: 10px; color: var(--text-secondary); letter-spacing: .03em; }
.mv-demo-button { display: inline-block; border: 0; border-bottom: 1px solid var(--text); padding: 9px 0 5px; margin-top: 14px; color: var(--text); background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 650; }
.mv-demo-hint { font-size: 11px; color: var(--text-secondary); margin: 8px 0 0; }
.mv-start-mode .mv-canvas-area { padding-top: 32px; padding-bottom: 40px; }
.mv-start-mode .mv-stage-empty { padding-top: 0; padding-bottom: 0; }
@media (min-width: 1500px) { .mv-col-right { width: 372px; } }
@media (max-width: 760px) {
  .mv-studio-showcase { margin-bottom: 22px; }
  .mv-showcase-caption { font-size: 9px; }
  .mv-showcase-caption span:last-child { max-width: 55%; text-align: right; }
  .mv-direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-direction-name strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .mv-direction-card { transition: none; } }
.mv-app.mv-start-mode { height: auto; min-height: calc(100dvh - var(--nav-h)); }
.mv-app.mv-start-mode .mv-workspace { overflow: visible; }
.mv-app.mv-start-mode .mv-stage { padding-block: 48px; }
.mv-app.mv-start-mode #mv-stage-empty { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px 36px; padding: 36px; text-align: left; border-radius: 12px; }
.mv-start-mode #mv-stage-empty > * { grid-column: 2; }
.mv-start-mode #mv-stage-empty > .mv-studio-showcase { grid-column: 1; grid-row: 1 / span 9; align-self: center; margin: 0; }
.mv-start-mode .mv-start-methods { flex-direction: column; margin: 4px 0; }
.mv-start-mode .mv-start-divider { display: none; }
.mv-start-mode .mv-start-note { font-size: 10px; }
.mv-start-mode .mv-stage-empty-title { font-weight: 650; font-size: 28px; line-height: 1.35; }
.mv-start-mode .mv-stage-empty-sub { font-weight: 400; margin: 0; }
.mv-start-mode .mv-demo-button { justify-self: start; margin: 0; }
.mv-start-mode .mv-demo-hint { margin: 0; font-weight: 400; }
@media (max-width: 860px) {
  .mv-app.mv-start-mode #mv-stage-empty { display: flex !important; padding: 22px; }
  .mv-start-mode #mv-stage-empty > .mv-studio-showcase { margin-bottom: 10px; }
  .mv-app.mv-start-mode .mv-stage { padding-block: 20px; }
  .mv-app:not(.mv-start-mode) .mv-col-center { order: -1; min-height: auto; }
  .mv-app:not(.mv-start-mode) .mv-stage { min-height: 300px; }
  .mv-app:not(.mv-start-mode) .mv-col-body { max-height: none; }
}
@media (max-width: 600px) {
  .mv-draft-restore { flex-direction: column; align-items: stretch; }
  .mv-draft-actions { justify-content: flex-start; flex-wrap: wrap; }
  .mv-start-mode .mv-stage-empty-title { font-size: 25px; }
  .mv-start-mode .mv-stage-empty-sub { font-size: 13px; }
}
.mv-song-cover img:not([src]) { display: none; }
.mv-song-cover:has(img:not([src])) { display: grid; place-items: center; background: var(--surface-muted); }
.mv-song-cover:has(img:not([src]))::before { content: '♪'; font-size: 28px; color: var(--text-dim); }
@media (max-width: 600px) {
  .mv-canvas-toolbar { flex-wrap: wrap; gap: 6px; padding: 8px; height: auto; }
  .mv-canvas-toolbar > .mv-tool-group:nth-child(2) { display: none; }
  .mv-canvas-toolbar .mv-timecode { display: none; }
  .mv-transport { padding: 10px 8px; gap: 8px; }
  .mv-transport .mv-icon-btn { width: 26px; min-width: 26px; }
  .mv-transport .mv-play { width: 40px; height: 40px; flex: 0 0 40px; }
  .mv-transport .mv-seek { min-width: 28px; width: auto; flex: 1; }
  .mv-transport .mv-time { font-size: 10px; min-width: 25px; }
}

.mv-direct-control[hidden] { display: none; }
.mv-theme-caption { display: block; padding: 0 6px 10px; font-size: 10px; color: var(--text-secondary); line-height: 1.45; }
.mv-lyric-theme .mv-direction-name { padding-bottom: 4px; }
.mv-other-directions { margin: 0 0 16px; }
.mv-other-directions > summary { padding: 6px 0 12px; font-size: 12px; cursor: pointer; }

.mv-score-panel { margin: 0 0 24px; padding: 16px 0; border: 0; border-top: 1px solid var(--surface-muted); min-width: 0; }
.mv-score-panel[hidden], .mv-rehearsal[hidden] { display: none; }
.mv-score-panel legend { padding-right: 8px; font-size: 13px; font-weight: 600; }
.mv-score-panel p { font-size: 12px; color: var(--text-secondary); line-height: 1.65; }
.mv-score-panel textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 100px; background: var(--surface); color: var(--text); border: 1px solid var(--surface-muted); border-radius: 5px; padding: 10px; font: inherit; line-height: 1.8; }
.mv-score-panel button + button { margin-top: 8px; }
.mv-rehearsal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--surface-muted); font-size: 12px; }
.mv-rehearsal span { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.mv-rehearsal button { border: 1px solid var(--surface-muted); padding: 8px 12px; color: var(--text); background: transparent; border-radius: 4px; cursor: pointer; font: inherit; }
.mv-rehearsal button:focus-visible, .mv-score-panel textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Keep the curated themes primary and reveal additional templates on request. */
.mv2-wrap { margin: 0 0 20px; padding: 16px 0; border-top: 1px solid var(--surface-soft); }
.mv2-wrap > summary { cursor: pointer; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.mv2-wrap[open] > summary { margin-bottom: 16px; }
.mv2-toggle-row { margin-bottom: 14px; }
.mv2-toggle { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text-secondary); }
.mv2-toggle input { width: 18px; height: 18px; accent-color: var(--primary-border); }
.mv2-wrap > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.mv2-wrap .mv2-panel { background: var(--surface); border-color: var(--surface-soft); color: var(--text); }
.mv2-wrap .mv2-card { background: var(--bg); border-color: var(--surface-soft); color: var(--text); }
.mv2-wrap .mv2-card-active { border-color: var(--primary-border); background: var(--safe-bg); }
.mv2-wrap .mv2-card:hover, .mv2-wrap .mv2-card:focus-visible { border-color: var(--primary-border); }
.mv2-wrap .mv2-row select { color: var(--text); background: var(--bg); border: 1px solid var(--surface-soft); padding: 8px; border-radius: 8px; }
.mv2-wrap .mv2-row input[type=range] { accent-color: var(--primary-border); }
.mv-app :is(.dl-btn-primary,.mv-play,.mv-mini-btn.mv-primary,.mv-aspect-btn.active,.mv-tab.active,.mv-rtab.active,.mv-bg-source-btn.active,.mv-artwork-source-btn.active) { color: #17320d; }
.mv-direction-card { text-align: start; }

.mv-direct-control input[type=range], .mv-direct-control input[type=checkbox] { accent-color: var(--primary-border); }
html[dir=rtl] .mv-start-mode #mv-stage-empty { text-align: start; }

#mv-stage-input, #mv-input { direction: ltr; text-align: start; }
@media(max-width:600px) {
 .mv-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; height: auto; min-height: 64px; padding: 10px 12px; gap: 10px; }
 .mv-topbar-left { min-width: 0; }
 .mv-brand { display: block; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
 .mv-brand-icon { display: inline-block; vertical-align: middle; margin-inline-end: 5px; }
 .mv-topbar-right { margin: 0; }
 .mv-topbar .mv-export-btn { max-width: 46vw; min-width: 104px; min-height: 44px; font-size: 13px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
}

@media(max-width:600px) {
 .mv-brand { font-size: 13px; }
 .mv-brand-icon { width: 16px; height: 16px; margin-inline-end: 4px; }
}

/* Export settings live outside the editor shell. */
.mv-modal .dl-btn-primary { color: #17320d; }
