/* ==========================================================================
   Memory Maker · «Álbum contemporáneo»
   Editorial, monochrome-first layer loaded after styles.css. Every colour
   comes from the active interface palette (--mm-*), so the optional dark
   themes keep working. Layout:
     desktop  [ canción + fotos ] [ VÍDEO ] [ letra + exportar ]
              [            opciones adicionales (ancho completo)    ]
     móvil    vídeo → acciones rápidas → canción/fotos → letra → exportar
   ========================================================================== */
:root{
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
  --sans:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --radius:10px;
}
html,body{background:var(--mm-bg)!important;color:var(--mm-text)}
body{font-family:var(--sans);-webkit-font-smoothing:antialiased}
.shell{max-width:1600px;padding:16px 28px 22px}
.shell :focus-visible{outline:2px solid var(--mm-text);outline-offset:2px}
.shell [hidden]{display:none!important}

/* ---------- header ---------- */
.shell .header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--mm-line);padding:0 0 12px}
.shell .logo{width:38px;height:38px;border-radius:50%;font-size:17px;background:var(--mm-text);color:var(--mm-bg);border:0;box-shadow:none}
.shell .brand{gap:12px}
.shell .brand h1{font-family:var(--serif);font-size:26px;font-weight:500;letter-spacing:-.02em;margin:0;color:var(--mm-text)}
.shell .overline{color:var(--mm-muted);letter-spacing:.22em;font-size:10px;font-weight:600;margin:0 0 2px}
.shell .header-tools{display:flex;align-items:center;gap:14px;flex-wrap:nowrap}
.language-picker{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--mm-muted)}
.shell select,.shell input[type=text],.shell input:not([type]),.shell textarea{font:inherit;color:var(--mm-text);background:var(--mm-panel);border:1px solid var(--mm-line);border-radius:7px}
.shell select{padding:7px 10px;font-size:13px;min-height:36px}
.quick-help{position:relative}
.quick-help>summary{list-style:none;cursor:pointer;font-size:13px;color:var(--mm-text);border:1px solid var(--mm-line);border-radius:999px;padding:7px 13px;background:var(--mm-panel)}
.quick-help>summary::-webkit-details-marker{display:none}
.quick-help[open]>summary{background:var(--mm-text);color:var(--mm-bg)}
.quick-help-body{position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:min(340px,86vw);background:var(--mm-panel);border:1px solid var(--mm-line);border-radius:var(--radius);padding:14px 16px;box-shadow:0 14px 40px rgba(0,0,0,.14);font-size:13px;line-height:1.55;color:var(--mm-text)}
.quick-help-body ol{margin:0 0 8px;padding-left:18px}
.quick-help-body li{margin:3px 0}
.quick-help-body p{margin:6px 0;color:var(--mm-muted)}
.quick-help-body .help-link{color:var(--mm-text);font-weight:600}

/* ---------- toolbar ---------- */
.shell .album-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:10px 0 12px}
.album-toolbar label{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--mm-muted)}
.shell .album-toolbar input{display:block;background:transparent;border:0;border-bottom:1px solid transparent;border-radius:0;padding:2px 0;font:500 1.6rem/1.2 var(--serif);letter-spacing:-.02em;color:var(--mm-text);width:min(52vw,520px)}
.shell .album-toolbar input:hover,.shell .album-toolbar input:focus{border-bottom-color:var(--mm-line);outline:none}
.shell .privacy{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--mm-muted);margin:0}
.shell .green-dot{background:#3f9a6e;box-shadow:none}

/* ---------- workspace grid ---------- */
.shell .workspace{display:grid;max-width:none;gap:20px;align-items:start;
  grid-template-columns:minmax(250px,300px) minmax(0,1fr) minmax(310px,370px);
  grid-template-areas:"library stage inspector"}
.workspace>.preview-panel{grid-area:stage;min-width:0}
.workspace>.album-library{grid-area:library;min-width:0;display:grid;gap:14px}
.workspace>.album-inspector{grid-area:inspector;min-width:0;display:grid;gap:14px;align-content:start}
/* Panels stack in normal flow and never shrink below their content; the letter panel must not clip
 * (overflow:hidden) what it holds, or a stale height hides the buttons under the next panel. */
.album-inspector>*{min-height:min-content;flex-shrink:0}
.album-inspector>details.lyrics-optional{overflow:visible}
.album-inspector .advanced-actions{position:relative;z-index:2}
.album-inspector .advanced-actions>button{flex:0 1 auto}
.album-inspector #downloadLrc{flex-basis:100%;min-height:44px}
.more-options{margin-top:20px;min-width:0}

/* ---------- surfaces ---------- */
.shell .panel,.album-inspector>details,.more-options>details{background:var(--mm-panel);border:1px solid var(--mm-line);border-radius:var(--radius);box-shadow:none;padding:16px}
.shell .panel-head{display:flex;align-items:baseline;gap:10px;margin:0 0 12px}
.shell .panel-head h3,.album-inspector>details>summary,.more-options>details>summary{font:500 1.28rem/1.2 var(--serif);letter-spacing:-.01em;color:var(--mm-text);margin:0}
.shell .step,.shell .chip{display:none}
.shell .count,.shell .source-ready{margin-left:auto;font-size:12px;color:var(--mm-muted);font-family:var(--sans)}
.shell details>summary{cursor:pointer}
.album-inspector>details>summary,.more-options>details>summary{list-style:none;display:flex;align-items:baseline;gap:10px;padding:0!important;background:none!important}
.album-inspector>details>summary::-webkit-details-marker,.more-options>details>summary::-webkit-details-marker{display:none}
.album-inspector>details>summary::after,.more-options>details>summary::after{content:'+';margin-left:auto;font:300 1.3rem var(--sans);color:var(--mm-muted)}
.album-inspector>details[open]>summary::after,.more-options>details[open]>summary::after{content:'–'}
.summary-note{font:400 12px var(--sans);color:var(--mm-muted);letter-spacing:0}
.option-body{margin-top:12px}
.shell .hint{color:var(--mm-muted);font-size:12px;line-height:1.55;margin:8px 0}
.shell .field-label,.lyric-presentation>label{display:block;font-size:12px;font-weight:600;color:var(--mm-text);margin:10px 0 6px}
.group-title{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--mm-muted);margin:0 0 8px;font-weight:600}
.sync-tools,.lyric-presentation{border-top:1px solid var(--mm-line);margin-top:14px;padding-top:14px}

/* ---------- buttons ---------- */
.shell .primary,.shell .play{background:var(--mm-text);color:var(--mm-bg);border:1px solid var(--mm-text);border-radius:8px;font-weight:600;box-shadow:none;font-size:13px}
.shell .primary:hover:enabled{filter:none;opacity:.88}
.shell .secondary,.shell .ghost-button,.shell .lyric-file-label,.files-input-label,.video-input-label{background:var(--mm-panel);color:var(--mm-text);border:1px solid var(--mm-line);border-radius:8px;font-weight:500;font-size:13px;padding:10px 12px;cursor:pointer;text-align:center}
.shell .secondary:hover:enabled,.shell .ghost-button:hover,.shell .lyric-file-label:hover{background:var(--mm-panelDeep)}
.shell .textbtn{color:var(--mm-text);text-decoration:underline;text-underline-offset:3px;font-size:12px}
.shell .mini{border:1px solid var(--mm-line);background:var(--mm-panel);color:var(--mm-text);border-radius:6px;min-width:30px;height:30px}
.shell .full{width:100%;margin-top:8px}
.shell button:disabled{opacity:.42;cursor:default}
.lyric-source-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.lyric-source-actions>*{margin:0!important;display:flex;align-items:center;justify-content:center}

/* ---------- uploads & photos ---------- */
.shell .upload{min-height:74px;border:1px dashed var(--mm-line);border-radius:8px;background:var(--mm-bg);gap:3px;padding:10px}
.shell .upload:hover{border-color:var(--mm-text);background:var(--mm-panelDeep)}
.shell .upload-icon{font-size:19px;color:var(--mm-text)}
.shell .upload strong{font-size:13px;font-weight:600;color:var(--mm-text)}
.shell .upload small{font-size:11px;color:var(--mm-muted)}
.shell .file-info{font-size:12px;color:var(--mm-text);margin-top:10px}
.shell .audio{margin-top:8px;height:34px}
.album-library .source-flow{display:grid;gap:14px;grid-template-columns:1fr}
.shell .photos{max-height:min(46vh,430px);margin-top:10px;gap:6px}
.shell .photo-row{background:var(--mm-bg);border:1px solid var(--mm-line);border-radius:8px;padding:5px;gap:6px;flex-wrap:nowrap}
.shell .photo-row img{width:42px;height:42px;border-radius:5px}
.shell .photo-row .name{font-size:11px;color:var(--mm-text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shell .photo-row .mini{min-width:26px;height:26px;font-size:12px}
.photo-additional{margin-top:10px;border-top:1px solid var(--mm-line);padding-top:10px}
.photo-additional>summary{font-size:13px;font-weight:600;color:var(--mm-text)}
.photo-additional-grid{display:grid;gap:10px;margin-top:10px}
.files-input-label,.video-input-label{display:block}
.shell .cloud-import,.shell .video-import{background:var(--mm-bg);border:1px solid var(--mm-line);border-radius:8px;padding:12px;margin:0}
.shell .cloud-heading>span{background:var(--mm-panel);color:var(--mm-text)}
.shell .cloud-action{color:var(--mm-text);text-decoration:underline}
.shell .new-label{color:var(--mm-muted)}
.photo-privacy-actions .hint{font-size:11px}

/* ---------- preview ---------- */
.shell .preview-panel{padding:14px;position:sticky;top:10px}
.stage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.shell .orientations{margin:0;background:var(--mm-bg);border:1px solid var(--mm-line);border-radius:999px;padding:3px}
.shell .orientations button{border-radius:999px;color:var(--mm-muted);font-size:12px;padding:7px 13px}
.shell .orientations button.active{background:var(--mm-text);color:var(--mm-bg);box-shadow:none}
.shell .ghost-button{border-radius:999px;padding:7px 13px;font-size:12px}
.shell .stage-wrap{display:flex;align-items:center;justify-content:center;background:var(--mm-panelDeep);border:0;border-radius:8px;padding:16px;min-height:0}
.shell .stage{border:0;border-radius:4px;box-shadow:0 12px 34px rgba(0,0,0,.20);background:#000;overflow:hidden}
/* Width-driven sizing keeps the exact 9:16 / 16:9 ratio (never distorts). */
.shell .stage.portrait{width:min(100%,calc((100dvh - 360px) * 9 / 16),470px);min-width:min(100%,210px);height:auto;aspect-ratio:9/16;max-width:none}
.shell .stage.landscape{width:min(100%,calc((100dvh - 360px) * 16 / 9));min-width:min(100%,320px);height:auto;aspect-ratio:16/9;max-width:none}
.shell .stage canvas{width:100%;height:100%;display:block}
.shell .stage .empty{background:#111;color:#f4f4f2}
.shell .stage .empty .sun{color:#d9d9d4;font-size:44px}
.shell .stage .empty strong{font:400 21px var(--serif);color:#f4f4f2}
.shell .stage .empty small{color:#bdbdb8}
.shell .playback{display:flex;align-items:center;gap:10px;margin-top:12px}
.shell .play{width:42px;height:42px;border-radius:50%;flex:none;font-size:14px;padding:0}
.shell .time{color:var(--mm-muted);font-size:12px}
.shell .scrub,.shell progress,.shell input[type=range]{accent-color:var(--mm-text)}
.shell .timeline-title{display:none}
.shell .timeline{height:26px;margin-top:10px;background:var(--mm-bg);border:1px solid var(--mm-line);border-radius:6px}
.shell .timeline-seg{background:var(--mm-panelDeep);color:var(--mm-muted);border-right:1px solid var(--mm-bg);font-size:10px}
.shell .timeline-seg:nth-child(even){background:var(--mm-line)}
.shell .timeline-card{background:var(--mm-text)!important;color:var(--mm-bg)!important}
.shell .playhead{background:var(--mm-text);box-shadow:none}
#montageSummary{margin-bottom:0}
.mobile-add{display:none}

/* ---------- lyrics ---------- */
.shell textarea{min-height:120px;font-size:13px;line-height:1.55;padding:10px 12px;background:var(--mm-bg)}
.shell textarea:focus{border-color:var(--mm-text)}
.shell #lyricsImportStatus{border-left:2px solid var(--mm-text);background:var(--mm-bg);color:var(--mm-text);border-radius:0 6px 6px 0;padding:8px 10px;margin-top:0}
.vocal-start-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px}
.vocal-start-actions strong{flex-basis:100%;font-size:13px}
.tap-mode{border:0;padding:0;margin:8px 0 0;display:grid;gap:4px;font-size:12px;color:var(--mm-text)}
.tap-mode legend{font-size:12px;color:var(--mm-muted);padding:0;margin-bottom:2px}
.tap-mode label{display:flex;gap:7px;align-items:center}
.shell .tap-sync-panel{background:var(--mm-bg);border:1px solid var(--mm-text);border-radius:var(--radius);padding:14px;margin-top:10px}
.shell .tap-sync-progress{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mm-muted)}
.shell .tap-sync-phrase{font:500 clamp(1.25rem,2.1vw,1.7rem)/1.25 var(--serif);color:var(--mm-text);margin:8px 0 4px;min-height:2.5em}
.shell .tap-sync-next{font-size:13px;color:var(--mm-muted);margin:0 0 8px}
.shell .tap-sync-mark{min-height:54px;font-size:15px}
.shell .tap-sync-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
.tap-keys{font-size:11px!important}
.check-line{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--mm-text);margin:4px 0 8px}
.shell .layout-picker{justify-content:flex-start;margin:0 0 8px;gap:6px}
.shell .layout-picker button{border:1px solid var(--mm-line);background:var(--mm-panel);color:var(--mm-text);border-radius:999px;padding:7px 11px;font-size:12px}
.shell .layout-picker button.active{background:var(--mm-text);color:var(--mm-bg);border-color:var(--mm-text)}
.lyric-presentation select{width:100%}
.lyric-presentation #lyricOffset{width:100%}
.shell .advanced{border-top:1px solid var(--mm-line);margin-top:14px;padding-top:12px}
.shell .advanced>summary{font-size:13px;font-weight:600;color:var(--mm-text)}
.advanced-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.shell .lyric-list{max-height:300px}
.shell .lyric-row{display:flex;flex-wrap:wrap;align-items:center;gap:5px;color:var(--mm-text);border-bottom:1px solid var(--mm-line);border-radius:0;padding:6px 2px}
.shell .lyric-row span{flex:1 1 100%;order:-1;white-space:normal;font-size:12px}
.shell .lyric-row.active{background:var(--mm-panelDeep);color:var(--mm-text)}
.shell .lyric-row input{width:4.6em;background:var(--mm-bg);color:var(--mm-text);border:1px solid var(--mm-line)}
.shell .lyric-time-field{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--mm-muted)}
.shell .lyric-origin{font-size:10px;color:var(--mm-muted)}

/* ---------- export ---------- */
.export-panel .export-name{display:grid;gap:5px;font-size:12px;font-weight:600;color:var(--mm-text)}
.export-panel .export-name input{padding:9px 10px;font-size:14px;font-weight:500}
.shell .quality-field{display:grid;gap:5px;margin:10px 0;font-size:12px;color:var(--mm-muted)}
.shell .save-path,.shell .rights{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:var(--mm-text);margin:8px 0}
.shell #exportBtn{min-height:48px;font-size:14px}
.shell .status{color:var(--mm-text);font-size:13px}
.shell #download{display:grid;gap:8px}
.shell #download a{background:var(--mm-text);color:var(--mm-bg);border-radius:8px;padding:12px;font-size:13px}
.shell .export-done{border:1px solid var(--mm-text);border-radius:8px;padding:10px 12px;font-size:13px;line-height:1.5}

/* ---------- additional options ---------- */
.more-options>details{padding:16px 18px}
.more-options>details>summary{flex-wrap:wrap}
.extra-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px;margin-top:14px;align-items:start}
.extra-grid>details{background:var(--mm-bg);border:1px solid var(--mm-line);border-radius:8px;padding:12px 14px;margin:0}
.extra-grid>details>summary{font-size:14px;font-weight:600;color:var(--mm-text);padding:0}
.extra-grid>details[open]{grid-column:1/-1}
.shell .gift-card-editor{margin:0}
.shell .gift-fields{border-color:var(--mm-line)}
.shell .lyric-design{background:transparent;border:0;padding:0;margin:0}
.shell .whisper-lab{background:transparent;border:0;padding:0;margin:0}
.shell .whisper-lab .hint{color:var(--mm-muted)}
.montage-settings .options{display:grid;gap:8px;justify-content:start;margin:0}
.montage-settings .options label{font-size:13px;color:var(--mm-text)}
.theme-picker{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--mm-text)}
.shell .video-colors{margin-top:12px}
.shell .video-colors>summary{font-size:13px;font-weight:600}

footer{border-top:1px solid var(--mm-line)!important;color:var(--mm-muted)!important;font-size:11px;margin-top:24px!important}

/* ---------- medium screens: stage + one side column ---------- */
@media (max-width:1180px) and (min-width:901px){
  .shell .workspace{grid-template-columns:minmax(0,1fr) minmax(300px,360px);
    grid-template-areas:"stage inspector" "library inspector"}
  .shell .preview-panel{position:static}
  .album-library .source-flow{grid-template-columns:1fr 1fr}
}

/* ---------- phones and small tablets ---------- */
@media (max-width:900px){
  .shell{padding:10px 12px 16px}
  .shell .header{gap:8px}
  .shell .brand h1{font-size:21px}
  .shell .overline,.language-picker>span,.shell .privacy{display:none}
  .shell .album-toolbar{padding:10px 0}
  .shell .album-toolbar input{font-size:1.35rem;width:100%}
  .shell .album-toolbar label{flex:1}
  .shell .workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"stage" "library" "inspector";gap:12px}
  .more-options{margin-top:12px}
  .shell .preview-panel{position:static;padding:10px}
  .shell .stage-wrap{padding:10px}
  .shell .stage.portrait{width:min(100%,calc(60dvh * 9 / 16),340px)}
  .shell .stage.landscape{width:100%}
  .mobile-add{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
  .mobile-add>*{display:flex;align-items:center;justify-content:center;min-height:44px;font:inherit;font-size:13px;font-weight:500;border:1px solid var(--mm-line);background:var(--mm-panel);color:var(--mm-text);border-radius:8px;cursor:pointer}
  .shell .play,.shell .mini,.shell .secondary,.shell .primary,.shell .layout-picker button,.shell .orientations button{min-height:44px}
  .shell .photo-row .mini{min-width:36px;height:36px;min-height:36px}
  .extra-grid{grid-template-columns:minmax(0,1fr)}
  .quick-help-body{position:fixed;left:12px;right:12px;top:58px;width:auto}
}
@media (max-width:420px){
  .lyric-source-actions,.shell .tap-sync-actions{grid-template-columns:1fr}
  .stage-toolbar{flex-wrap:wrap}
}

/* ---------- enlarged preview (same canvas, no re-render) ---------- */
.preview-close{display:none}
.preview-expanded{overflow:hidden}
.preview-expanded .shell .stage-wrap{position:fixed!important;inset:0;z-index:1100;background:rgba(6,6,7,.97)!important;display:flex;align-items:center;justify-content:center;padding:56px 14px 86px!important;border-radius:0!important}
.preview-expanded .shell .stage.portrait{width:min(94vw,calc((100dvh - 150px) * 9 / 16))!important;min-width:0}
.preview-expanded .shell .stage.landscape{width:min(94vw,calc((100dvh - 150px) * 16 / 9))!important;min-width:0}
.preview-expanded .preview-close{display:block;position:absolute;top:12px;right:14px;z-index:2;color:#fff;background:#262626;border:1px solid #777;border-radius:999px;padding:9px 15px;cursor:pointer}
.preview-expanded .shell .preview-panel .playback{position:fixed;z-index:1102;bottom:12px;left:50%;transform:translateX(-50%);width:min(92vw,640px);display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:999px;background:rgba(24,24,26,.94);color:#fff;margin:0}
.preview-expanded .shell .playback .play{background:#fff;color:#111;border-color:#fff}
.preview-expanded .shell .playback .time{color:#ddd}
.preview-expanded .shell .playback .scrub{flex:1;min-width:50px;accent-color:#fff}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* ---------- flujo por pasos (decisión 25/11) ---------- */
.flow-nav{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin:0 0 14px;padding:10px 0;border-bottom:1px solid var(--mm-line)}
.flow-heading{display:grid;text-align:center}
.flow-counter{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--mm-muted)}
.flow-heading strong{font:500 1.35rem/1.2 var(--serif);color:var(--mm-text)}
.flow-nav .secondary,.flow-nav .primary{min-height:44px;padding:10px 16px}
.flow-nav #flowBack.hidden{display:block!important;visibility:hidden}
.flow-sync{margin:0 0 12px;padding:9px 12px;border:1px solid var(--mm-line);border-radius:8px;background:var(--mm-panel);font-size:13px;color:var(--mm-text)}
.engine-box{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0 0 10px;padding:6px 10px;border:1px solid var(--mm-line);border-radius:8px;background:var(--mm-panel);font-size:12px}
.engine-box strong{display:none}.engine-box .hint{margin:0;font-size:12px;flex:1 1 220px}
.engine-box progress{flex:0 1 140px;height:6px}.engine-box button{min-height:32px;padding:4px 12px}
.lyrics-completeness:empty{display:none}
body:not([data-flow-step="studio"]) .shell .workspace{grid-template-columns:minmax(0,640px);grid-template-areas:none;justify-content:center}
body:not([data-flow-step="studio"]) .shell .workspace>*{grid-area:auto!important;grid-column:1!important;width:100%}
body:not([data-flow-step="studio"]) .workspace>*,body:not([data-flow-step="studio"]) .more-options,body:not([data-flow-step="studio"]) .album-toolbar .privacy{display:none}
body[data-flow-step="song"] .workspace>.album-library,body[data-flow-step="photos"] .workspace>.album-library{display:grid}
body[data-flow-step="song"] .source-card-photos,body[data-flow-step="photos"] .source-card-audio{display:none}
body[data-flow-step="lyrics"] .workspace>.album-inspector{display:grid}
body[data-flow-step="lyrics"] .export-panel,body[data-flow-step="lyrics"] .sync-card,body[data-flow-step="lyrics"] .settings-panel,body[data-flow-step="lyrics"] .sync-tools,body[data-flow-step="lyrics"] .lyric-presentation,body[data-flow-step="lyrics"] .advanced{display:none}
body[data-flow-step="lyrics"] .album-inspector>details>summary{pointer-events:none}
body[data-flow-step="lyrics"] .album-inspector>details>summary::after{content:''}
body[data-flow-step="lyrics"] #lyrics{min-height:280px}
body:not([data-flow-step="studio"]) .album-library .source-flow{grid-template-columns:1fr}
body:not([data-flow-step="studio"]) .shell .upload{min-height:150px}
@media (max-width:900px){.flow-heading strong{font-size:1.1rem}.flow-nav{gap:8px}.flow-nav .secondary,.flow-nav .primary{padding:10px 12px;font-size:13px}}

/* Decisión 25/11: aviso previo a subir la canción */
.suno-hint{margin:0 0 10px;padding:9px 12px;border-left:2px solid var(--mm-text);background:var(--mm-bg);font-size:13px;color:var(--mm-text)}
body:not([data-flow-step="song"]) .suno-hint{display:none}

.flow-sync{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.flow-sync progress{flex:1 1 160px;max-width:260px;height:8px}

/* Enlarged preview: nothing from the page (logo, language picker, floating help) shows through or overlaps. */
.preview-expanded .shell>header,.preview-expanded .quick-help,.preview-expanded .quick-help-body,.preview-expanded .mobile-add{visibility:hidden!important}
.preview-expanded .shell .preview-close{z-index:1103;top:max(10px,env(safe-area-inset-top))}

/* ---- Photo grid (Task 2/6) ---- */
.shell .photos.photo-grid{display:grid;grid-template-columns:repeat(var(--photo-cols,3),minmax(0,1fr));gap:8px;max-height:none;overflow:visible;margin-top:10px}
body[data-flow-step="photos"] .shell .photos.photo-grid{--photo-cols:5}
.photo-management .photos.photo-grid:empty{display:grid}
.photo-tile{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;background:var(--mm-bg);border:1px solid var(--mm-line);touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.photo-tile-main{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:grab;color:inherit;font:inherit}
.photo-tile-main img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.photo-tile .number{position:absolute;left:4px;top:4px;min-width:22px;height:22px;padding:0 5px;border-radius:11px;background:rgba(0,0,0,.72);color:#fff;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;pointer-events:none}
.photo-tile .mini{position:absolute;min-width:28px;height:28px;min-height:28px;padding:0;border-radius:14px;background:rgba(0,0,0,.72);color:#fff;border:1px solid rgba(255,255,255,.25);font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center}
.photo-tile .mini:disabled{opacity:.35}
.photo-tile-remove{right:4px;top:4px}.photo-tile-crop{right:4px;top:36px}
.photo-tile-prev{left:4px;bottom:4px}.photo-tile-next{right:4px;bottom:4px}
.photo-tile.dragging{opacity:.9;box-shadow:0 8px 24px rgba(0,0,0,.35);pointer-events:none;transition:none}
.photo-tile.drop-target{outline:3px solid var(--mm-text);outline-offset:-3px}
.photo-grid.is-dragging{cursor:grabbing}
.card-tile{border-style:dashed}
.card-tile.empty-card .photo-tile-main{display:flex;align-items:center;justify-content:center;text-align:center;padding:6px;font-size:13px;font-weight:600;color:var(--mm-text);cursor:pointer;background:var(--mm-panel)}
.card-tile.has-card{border-style:solid}
.card-tile.has-card .photo-tile-main{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px;cursor:pointer;font-family:Georgia,serif}
.card-tile-symbol{font-size:22px}.card-tile-text{font-size:12px;line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;max-width:100%}
.card-prompt{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:10px 0 0;padding:9px 12px;border:1px solid var(--mm-line);border-radius:8px;background:var(--mm-panel);font-size:13px}
.card-prompt .secondary,.card-prompt .textbtn{min-height:34px;padding:4px 14px}
.card-prompt-actions{display:flex;gap:8px;margin-left:auto}
@media (max-width:700px){.shell .photos.photo-grid,body[data-flow-step="photos"] .shell .photos.photo-grid{--photo-cols:3}.photo-tile .mini{min-width:30px;height:30px;min-height:30px}}
/* Enlarged photo viewer + card editor */
body.viewer-open{overflow:hidden}
.photo-viewer,.card-editor{position:fixed;inset:0;z-index:1200;background:rgba(6,6,7,.95);display:flex;flex-direction:column;align-items:center;gap:10px;padding:56px 12px 12px;overflow:auto;color:#f4f4f2}
.photo-viewer.hidden,.card-editor.hidden{display:none}
.pv-close{position:absolute;top:10px;right:10px;z-index:2}
.pv-stage{flex:1 1 auto;min-height:0;width:100%;max-width:980px;display:flex;align-items:center;justify-content:center;gap:8px}
.pv-stage img{max-width:100%;max-height:62vh;object-fit:contain;border-radius:6px;min-width:0}
.pv-arrow{flex:0 0 auto;width:44px;height:64px;border-radius:10px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.1);color:#fff;font-size:30px;cursor:pointer}
.pv-arrow:disabled{opacity:.3;cursor:default}
.pv-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 14px;font-size:14px}
.pv-bar .check-line{color:#f4f4f2}
.pv-focus{width:min(520px,100%);display:grid;gap:8px;padding:10px 12px;border:1px solid rgba(255,255,255,.25);border-radius:8px;font-size:13px}
.pv-focus.hidden{display:none}.pv-focus label{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:8px}
.card-editor{justify-content:center;padding:16px}
.ce-box{background:var(--mm-panel,#fff);color:var(--mm-text,#111);border-radius:12px;padding:16px;max-width:560px;width:100%;max-height:94vh;overflow:auto}
.ce-box h3{margin:0 0 10px}
.ce-body{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start}
.ce-body canvas{border-radius:8px;border:1px solid var(--mm-line,#ccc);max-width:100%;height:auto}
.ce-fields{flex:1 1 220px;min-width:0;display:grid;gap:8px}
.ce-fields input[type=text]{width:100%}
.ce-actions{display:flex;gap:12px;align-items:center;margin-top:12px}

/* ---- Studio: create first, sync status, settings folded (Task 3) ---- */
.sync-card{display:grid;gap:8px;padding:12px 14px}
.sync-card.hidden{display:none}
.sync-card-text{margin:0;font-weight:600;font-size:14px}
.sync-card[data-state="ready"] .sync-card-text{color:var(--mm-text)}
.sync-card[data-state="doubts"]{border-color:var(--mm-text)}
.sync-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.sync-card-actions .secondary{min-height:36px;padding:4px 14px}
.sync-card[data-state="ready"] #syncAdjust{font-size:12px;color:var(--mm-muted,#666)}
.doubt-list{display:grid;gap:6px;max-height:340px;overflow:auto}
.doubt-list.hidden{display:none}
.lyric-row-compact{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:6px}
.lyric-row-compact span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.lyric-row-compact .lyric-time-field{display:grid;gap:2px;font-size:10px}
.lyric-row-compact .lyric-time-field input{width:64px}
.lyric-row-compact .doubt-ok{min-height:34px;padding:2px 10px;font-size:12px;white-space:nowrap}
.settings-panel{padding:0}
.settings-panel>summary{padding:12px 14px;cursor:pointer;font-weight:600;font-size:14px;list-style:none}
.settings-panel>summary::-webkit-details-marker{display:none}
.settings-panel>summary::after{content:'+';float:right;font-weight:400}
.settings-panel[open]>summary::after{content:'−'}
.settings-body{display:grid;gap:12px;padding:0 14px 14px}
.settings-body .more-options{margin:0;padding:0;border:0}
body[data-flow-step="studio"] .album-inspector .export-panel .primary.full{min-height:52px;font-size:16px}
@media (max-width:900px){body[data-flow-step="studio"] .shell .workspace{grid-template-areas:"stage" "inspector" "library"}}
@media (max-width:900px){body[data-flow-step="studio"] .mobile-add{display:none}}

.wm-offer{margin-top:6px}.wm-offer .hint{margin:8px 0 4px}.wm-btn{display:block;text-align:center;text-decoration:none;font-size:12px;margin-top:8px}
.coffee,.coffee-link{color:var(--mm-muted);font-size:11px;text-decoration:underline;margin-right:12px;display:inline-block}
.coffee-link{display:block;text-align:center;margin:12px 0 0;padding:4px}

/* ===== UX audit pass (27/11): compact header, slim sync pill, fit-to-height preview, compact loaded cards ===== */
.shell{max-width:1840px;padding:10px 24px 20px}
.shell .header{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:0 0 8px}
.shell .overline{display:none}
.shell .logo{width:32px;height:32px;font-size:15px}
.shell .brand h1{font-size:21px;line-height:1.1}
.shell .header-project{display:flex;align-items:center;gap:10px;padding:0;flex:1 1 220px;min-width:0}
.shell .header-project label{display:flex;align-items:baseline;gap:8px;font-size:10px;min-width:0;flex:0 1 420px}
.shell .header-project input{font:500 1.05rem/1.3 var(--serif);min-width:0;width:100%;border-bottom:1px dashed var(--mm-line)}
.shell .header-project .privacy{margin:0;white-space:nowrap}
.shell .header-project .privacy-text{display:none}
.shell .header .flow-sync{margin:0;padding:3px 10px;font-size:12px;border-radius:999px;max-width:min(46vw,560px);flex:0 1 auto;flex-wrap:nowrap;gap:8px}
.shell .header .flow-sync #flowSyncText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.shell .header .flow-sync progress{flex:0 0 70px;height:5px;max-width:70px}
.shell .header-tools{margin-left:auto}
.flow-nav{margin:0 0 10px;padding:4px 0 8px;gap:10px}
.flow-nav .secondary,.flow-nav .primary{min-height:36px;padding:6px 14px}
.flow-heading strong{font-size:1.15rem}
.flow-counter{font-size:10px}
/* preview always fits the window height */
.shell .preview-panel{top:8px;padding:10px}
.shell .stage.portrait{width:min(100%,calc((100dvh - 250px) * 9 / 16),470px)}
.shell .stage.landscape{width:min(100%,calc((100dvh - 250px) * 16 / 9))}
.shell .stage-wrap{padding:10px}
.shell .playback{margin-top:8px}
/* loaded cards collapse to a slim row */
body[data-flow-step="studio"] .source-card-audio:has(#audio[src]) .upload,
body[data-flow-step="studio"] .source-card-photos:has(.photo-tile) .upload{min-height:38px;flex-direction:row;gap:8px;padding:6px 10px}
body[data-flow-step="studio"] .source-card-audio:has(#audio[src]) .upload small,
body[data-flow-step="studio"] .source-card-audio:has(#audio[src]) .upload-icon,
body[data-flow-step="studio"] .source-card-photos:has(.photo-tile) .upload small,
body[data-flow-step="studio"] .source-card-photos:has(.photo-tile) .upload-icon{display:none}
body[data-flow-step="studio"] .source-card-audio:has(#audio[src]) .suno-hint{display:none}
body[data-flow-step="studio"] .source-card .panel-head{margin-bottom:8px}
body[data-flow-step="studio"] .shell .photos.photo-grid{--photo-cols:5;max-height:200px;overflow:auto;gap:6px}
/* photos step uses the width */
body[data-flow-step="photos"] .shell .workspace{grid-template-columns:minmax(0,1280px)}
body[data-flow-step="photos"] .shell .photos.photo-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}
body[data-flow-step="photos"] .source-card-photos:has(.photo-tile) .upload{min-height:44px;flex-direction:row;gap:10px;padding:6px 12px}
body[data-flow-step="photos"] .source-card-photos:has(.photo-tile) .upload small,
body[data-flow-step="photos"] .source-card-photos:has(.photo-tile) .upload-icon{display:none}
body[data-flow-step="photos"] .shell .upload{min-height:110px}
/* export panel: short copy, details on demand, sticky on desktop */
.wm-line{margin:8px 0 2px;font-size:12px;color:var(--mm-muted)}
.wm-more{margin-top:6px;font-size:12px;color:var(--mm-muted)}.wm-more>summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.wm-offer .wm-btn{margin-top:6px;padding:9px 12px}
@media (min-width:901px){body[data-flow-step="studio"] .album-inspector>.export-panel{position:sticky;top:8px;z-index:5}}
/* tablets / phones */
@media (max-width:700px){
  .shell{padding:8px 10px 76px}
  .shell .brand h1{font-size:18px}
  .shell .header{gap:4px 8px}
  .shell .header-project{order:3;flex:1 1 100%}
  .shell .header-tools{order:2}
  .shell .header .flow-sync{order:4;max-width:100%;flex:1 1 100%}
  .flow-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;margin:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--mm-bg);border-top:1px solid var(--mm-line);border-bottom:0}
  .flow-nav .secondary,.flow-nav .primary{min-height:44px}
  .flow-heading strong{font-size:.95rem}
  .shell .stage.portrait{width:min(100%,calc((100dvh - 330px) * 9 / 16),340px)}
}
/* small tiles in the studio column: lighter controls, readable card labels */
body[data-flow-step="studio"] .photo-tile .mini{min-width:22px;height:22px;min-height:22px;font-size:11px;padding:0}
body[data-flow-step="studio"] .photo-tile .tile-num,body[data-flow-step="studio"] .photo-tile .order{transform:scale(.8);transform-origin:top left}
body[data-flow-step="studio"] .card-tile .photo-tile-main{font-size:10px;padding:2px;line-height:1.15;word-break:break-word}
@media (max-width:700px){
  .shell .header{flex-wrap:wrap}
  .shell .brand{flex:1 1 auto;min-width:0}
  .shell .header-tools{flex:0 0 auto;gap:6px;margin-left:auto;order:2}
  .shell .header-tools .quick-help>summary{padding:6px 9px;font-size:12px;white-space:nowrap}
  .shell .header-tools select{max-width:96px;min-height:34px;padding:4px 6px;font-size:12px}
  .shell .brand h1{font-size:17px}
  .shell .logo{width:28px;height:28px}
}
@media (max-width:700px){.shell .header-tools{width:auto!important}.shell .brand{width:auto!important;flex:1 1 0}}

/* Visible automatic-sync question (Tarea 12) */
.sync-ask{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0 0 12px;padding:14px 16px;border:2px solid var(--mm-text);border-radius:10px;background:var(--mm-panel)}
.sync-ask-body{flex:1 1 320px;min-width:0}
.sync-ask-q{margin:0;font:500 1.12rem/1.35 var(--serif);color:var(--mm-text)}
.sync-ask-detail{margin:6px 0 0}.sync-ask-detail:empty{display:none}
.sync-ask-actions{display:flex;gap:8px;flex:0 0 auto}
.sync-ask.answered .sync-ask-actions{display:none}
.sync-ask .primary,.sync-ask .secondary{min-height:44px;padding:8px 16px}
@media (max-width:700px){.sync-ask{padding:12px}.sync-ask-actions{width:100%}.sync-ask-actions button{flex:1}}

.empty-purpose{display:block;margin-top:8px;max-width:30ch}
.suno-hint strong{display:block;margin-bottom:3px}
.suno-hint span{display:block;font-size:12px;opacity:.85}
.scan-hint{margin:0 0 6px 26px}

.page-intro{padding:10px 18px 4px;max-width:1280px;margin:0 auto}
.page-title{margin:0;font-size:clamp(18px,2.4vw,26px);line-height:1.2;font-weight:700}
.page-sub{margin:4px 0 0;font-size:13.5px;line-height:1.4;opacity:.8}
body:not([data-flow-step="song"]) .suno-link{display:none}
.suno-link{margin:8px 0 0;font-size:12.5px;opacity:.85}
.suno-link a{color:inherit;text-decoration:underline}
footer .affiliation{display:block;width:100%;margin-top:6px;font-size:11.5px;opacity:.75}
@media (max-width:760px){.page-intro{padding:8px 14px 2px}.page-sub{font-size:12.5px}}

.unlock-code{margin:8px 0 0;font-size:13px}
.unlock-code summary{cursor:pointer;opacity:.85}
.unlock-row{display:flex;gap:8px;margin-top:6px}
.unlock-row input{flex:1;min-width:0;padding:8px 10px;border:1px solid var(--mm-line,#ccc);border-radius:8px;font:inherit}
.wm-offer.unlocked .wm-line,.wm-offer.unlocked .wm-btn,.wm-offer.unlocked .wm-more{display:none}

/* Warm paper-cut look (style B) */
.page-intro{position:relative;overflow:hidden;max-width:none;margin:0;padding:14px max(18px,calc((100% - 1244px)/2)) 22px;background:linear-gradient(180deg,#fbf1e4 0%,#f6e2cd 100%);color:#3b2f2a;border-bottom:1px solid #ecd5bb}
.page-intro .intro-art{position:absolute;inset:0;pointer-events:none}
.page-intro .intro-art svg{width:100%;height:100%;display:block}
.page-intro .intro-text{position:relative;max-width:640px}
.page-title{font-family:Georgia,"Times New Roman",serif}
.page-sub{opacity:.85}
@media (max-width:760px){.page-intro .intro-art{opacity:.55}.page-intro{padding:10px 14px 16px}}
.examples{margin:12px 0 0;font-size:13px}
.examples summary{cursor:pointer;opacity:.85}
.example-row{display:flex;gap:14px;justify-content:center;margin-top:10px}
.phone{margin:0;width:112px}
.phone svg{width:100%;height:auto;display:block;filter:drop-shadow(0 3px 6px rgba(59,47,42,.25))}
body:not([data-flow-step="song"]) .examples{display:none}
.page-intro{min-height:128px;display:flex;align-items:center}@media (max-width:760px){.page-intro{min-height:0}}

/* Banner: compact, art fully visible on the right, text over a soft cream area */
.page-intro{min-height:0;padding-top:12px;padding-bottom:14px}
.page-intro .intro-art{left:auto;right:0;width:56%}
.page-intro .intro-art svg{width:100%;height:100%;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 38%);mask-image:linear-gradient(90deg,transparent 0,#000 38%)}
.page-intro .intro-art svg{preserveAspectRatio:xMaxYMax meet}
.page-intro .intro-text{max-width:min(640px,60%)}
.page-title{font-size:clamp(20px,2.4vw,28px);line-height:1.15;margin:0 0 4px;color:#3b2f2a}
.page-sub{font-size:14px;margin:0;color:#4a3d36;opacity:1}
@media (max-width:760px){.page-intro .intro-art{width:100%;opacity:.4}.page-intro .intro-text{max-width:100%}}
/* Sync / song status: its own prominent strip under the banner */
.shell .sync-strip{margin:12px auto 0;max-width:640px;padding:12px 16px;border:1px solid #e3cdb4;border-left:5px solid #8fae84;border-radius:12px;background:#fff;font-size:15px;font-weight:600;color:#3b2f2a;box-shadow:0 2px 8px rgba(59,47,42,.08);flex-wrap:wrap;gap:8px 14px;max-width:min(640px,calc(100% - 28px))}
.shell .sync-strip #flowSyncText{white-space:normal;overflow:visible}
.shell .sync-strip progress{flex:1 1 200px;max-width:none;height:10px}
.page-kicker{margin:0 0 4px;font:700 11px Inter,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#a0623a}

/* Option 2: record player banner, one-line title */
.page-intro{min-height:128px;background:linear-gradient(90deg,#fdf0e0,#f7d9c0);border-bottom-color:#efcfb2}
.page-intro .intro-art{width:46%}
.page-intro .intro-art svg{-webkit-mask-image:none;mask-image:none}
.page-intro .intro-text{max-width:none}
.page-intro .page-title{white-space:nowrap;font-size:clamp(20px,2.3vw,30px)}
.page-kicker{color:#a84f35}
@media (max-width:900px){.page-intro .page-title{white-space:normal}.page-intro .intro-art{width:60%;opacity:.5}}
@media (max-width:760px){.page-intro{min-height:0}.page-intro .intro-art{width:100%}}
@media (max-width:760px){.page-intro .intro-art{display:none}}

/* "More photos": three equal cards side by side, no empty column */
.photo-additional-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;align-items:stretch}
.photo-additional-grid>.files-input-label{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;min-height:120px;padding:14px;margin:0;cursor:pointer;background:#fff;border:1px dashed #c9b9a4;border-radius:10px;font-weight:600;line-height:1.3}
.photo-additional-grid>.files-input-label:hover{background:#fbf4ea}
.photo-additional-grid>.cloud-import,.photo-additional-grid>.video-import{background:#fff;border-radius:10px;height:100%;box-sizing:border-box}
.photo-additional-grid>.video-import{align-self:stretch}
.photo-additional-grid .cloud-action{width:100%}
/* Footer: one tidy centered block */
footer{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 22px;text-align:center;padding:18px 16px 24px}
footer>span{display:inline-flex;flex-wrap:wrap;gap:4px 14px;align-items:center;justify-content:center}
footer .affiliation{flex:1 1 100%;margin-top:2px}
.photo-additional-grid>.video-import:not([open]){display:flex;align-items:center}.photo-additional-grid>.video-import:not([open])>summary{width:100%;text-align:center}
.iphone-soon{margin:10px 0 0;padding:9px 12px;border-radius:10px;background:#fdf0e0;border:1px solid #efcfb2;font-size:13px;color:#3b2f2a}

/* Background music control */
.bgm{display:flex;align-items:center;gap:6px;padding:4px 6px 4px 8px;border:1px solid #e3cdb4;border-radius:999px;background:#fffaf1;font-size:12.5px;color:#3b2f2a;position:relative;max-width:260px}
.bgm-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px;font-weight:600}
.bgm-btn{width:28px;height:28px;border-radius:50%;border:1px solid #e3cdb4;background:#fff;cursor:pointer;font-size:13px;line-height:1;padding:0;display:grid;place-items:center}
.bgm-btn:hover{background:#fdf0e0}
.bgm.bgm-blocked #bgmPlay{background:#c9694a;color:#fff;border-color:#c9694a;animation:bgmPulse 1.8s ease-in-out infinite}
@keyframes bgmPulse{0%,100%{box-shadow:0 0 0 0 rgba(201,105,74,.45)}50%{box-shadow:0 0 0 6px rgba(201,105,74,0)}}
@media (prefers-reduced-motion:reduce){.bgm.bgm-blocked #bgmPlay{animation:none}}
.bgm-hint{position:absolute;top:calc(100% + 6px);right:0;white-space:nowrap;background:#3b2f2a;color:#fff;padding:5px 9px;border-radius:8px;font-size:12px;z-index:5}

dialog.welcome{border:1px solid #e3cdb4;border-radius:16px;background:#fffaf1;color:#3b2f2a;max-width:min(440px,calc(100vw - 32px));padding:22px 24px;box-shadow:0 18px 48px rgba(59,47,42,.35)}
dialog.welcome::backdrop{background:rgba(59,47,42,.45)}
dialog.welcome h2{font:700 22px/1.2 Georgia,serif;margin:0 0 10px}
dialog.welcome p{margin:0 0 8px;font-size:15px;line-height:1.45}
dialog.welcome .welcome-note{font-size:13px;opacity:.75}
.welcome-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.welcome-actions button{padding:10px 16px;border-radius:10px;font-weight:600;cursor:pointer;border:1px solid #c9694a;background:#c9694a;color:#fff}
.welcome-actions button.secondary{background:#fff;color:#3b2f2a;border-color:#e3cdb4}
.bgm-btn{text-decoration:none;color:inherit}.bgm-offer{margin:8px 0 0;font-size:13px;color:#3b2f2a}.bgm-offer a{color:#a84f35;font-weight:600}
dialog.demo-dialog{max-width:min(720px,calc(100vw - 24px));width:100%}dialog.demo-dialog video{display:block;width:100%;max-height:70vh;border-radius:10px;background:#000}.demo-open{margin:10px 0 0}.demo-open button{padding:8px 14px;border-radius:10px;border:1px solid #e3cdb4;background:#fff;color:#3b2f2a;font-weight:600;cursor:pointer}

@media (max-width:760px){.bgm{position:fixed;left:10px;bottom:78px;z-index:60;box-shadow:0 6px 18px rgba(59,47,42,.28);max-width:none;padding:4px 6px}.bgm-title{display:none}.bgm-hint{top:auto;bottom:calc(100% + 6px);left:0;right:auto;white-space:normal;max-width:min(260px,calc(100vw - 24px))}}
/* ---- Song added: the drop zone becomes the song, the next step sits right there ---- */
.song-done{display:grid;gap:10px;padding:14px 16px;border:1px solid var(--mm-text,#111);border-radius:10px;background:var(--mm-surface,#fff)}
.song-done.hidden{display:none}
.song-done-head{display:flex;align-items:center;gap:12px}
.song-done-check{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--mm-text,#111);color:#fff;font-weight:700;flex:none;animation:song-done-pop .35s ease-out}
.song-done-text{display:grid;gap:2px;min-width:0}
.song-done-text span{font-size:13px;color:var(--mm-muted,#666);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.song-done-lyrics{margin:0;font-size:14px}
.song-done[data-lyrics="found"] .song-done-lyrics,.song-done[data-lyrics="prepared"] .song-done-lyrics{font-weight:600}
.song-done-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.song-done-actions .primary{min-height:44px;padding:8px 18px}
.song-change{font-size:13px;text-decoration:underline;cursor:pointer;color:var(--mm-muted,#666)}
body[data-song-ready] .source-card-audio>.upload,
body[data-song-ready] .source-card-audio>.suno-hint,
body[data-song-ready] .source-card-audio>details.examples,
body[data-song-ready] .source-card-audio>.demo-open,
body[data-song-ready] .source-card-audio>.bgm-offer,
body[data-song-ready] .source-card-audio>.suno-link,
body[data-song-ready] .source-card-audio>#audioInfo{display:none}
#flowNext.nudge{animation:next-nudge 1.2s ease-in-out 2}
@keyframes next-nudge{0%,100%{box-shadow:0 0 0 0 rgba(0,0,0,0)}50%{box-shadow:0 0 0 6px rgba(0,0,0,.18);transform:scale(1.04)}}
@keyframes song-done-pop{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){#flowNext.nudge,.song-done-check{animation:none}}
/* ---- Turntable: the arm rests off the record; a song drops it on and the record spins ---- */
.tt-arm,.tt-disc{transform-box:view-box}
.tt-arm{transition:transform .8s cubic-bezier(.3,.7,.3,1)}
.page-intro .tt-arm{transform-origin:330px 50px;transform:rotate(30deg)}
.tt-mini .tt-arm{transform-origin:104px 16px;transform:rotate(50deg)}
body[data-turntable] .tt-arm{transform:rotate(0deg)}
.page-intro .tt-disc{transform-origin:236px 76px}
.tt-mini .tt-disc{transform-origin:48px 50px}
body[data-turntable="loading"] .tt-disc{animation:tt-spin 1.6s linear .55s infinite}
body[data-turntable="playing"] .tt-disc{animation:tt-spin 1.8s linear infinite}
@keyframes tt-spin{to{transform:rotate(360deg)}}
.song-loading{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid #e3cdb4;border-radius:12px;background:#fffaf1;cursor:pointer;color:#3b2f2a}
.song-loading.hidden{display:none}
.tt-mini{width:96px;height:auto;flex:none;display:block}
.song-loading-text{display:grid;gap:3px;min-width:0}
.song-loading-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.song-loading-text span{font-size:14px;font-weight:600}
.song-loading-text small{font-size:12px;color:var(--mm-muted,#7a6a60)}
body[data-turntable="loading"] .source-card-audio>.upload,body[data-turntable="loading"] #songDone,body[data-turntable="loading"] #syncAsk{display:none}
@media (prefers-reduced-motion:reduce){.tt-arm{transition:none}body[data-turntable] .tt-disc{animation:none}}

.iphone-why{margin:2px 0 0;font-size:.9rem}
.why-list{text-align:left;margin:0 0 12px;padding-left:1.2em;line-height:1.45}
.why-list li{margin:0 0 6px}
