.stem-studio{padding:24px;margin:0 0 28px;border:1px solid #68503a;border-radius:14px;background:linear-gradient(120deg,#272119,var(--panel) 70%)}
.stem-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.stem-heading h2{font-size:25px;margin:0 0 10px}.stem-heading p{max-width:740px}.stem-heading .eyebrow{margin-bottom:9px}.stem-badge{flex-shrink:0;font-size:12px;border:1px solid #67533d;border-radius:30px;padding:7px 11px;color:var(--accent);white-space:nowrap}
.stem-intro{color:var(--muted);font-size:14px;line-height:1.65;margin:0 0 16px}.stem-actions,.stem-presets{display:flex;gap:9px;flex-wrap:wrap}.stem-actions button{margin:0}.stem-studio progress{width:100%;height:8px;margin:20px 0 0;accent-color:var(--accent)}.stem-status{font-size:14px;line-height:1.65;color:var(--accent);margin:14px 0 0;overflow-wrap:anywhere}
.stem-mixer{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.stem-presets button[aria-pressed=true],.stem-track-actions button[aria-pressed=true]{color:#17130f;background:var(--accent);border-color:var(--accent)}.stem-mix-title{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:15px}.stem-mix-title h3{font-size:16px;margin:0}.stem-mix-title output{font-size:13px;color:var(--accent)}
.stem-tracks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.stem-track{padding:16px;background:#111315;border:1px solid var(--line);border-radius:10px;min-width:0}.stem-track-heading{display:flex;justify-content:space-between;gap:8px;align-items:center}.stem-track label{font-weight:650;font-size:14px;margin:0}.stem-track output{font-size:13px;color:var(--accent);font-variant-numeric:tabular-nums}.stem-track input[type=range]{margin:10px 0 7px}.stem-track-actions{display:flex;gap:5px;flex-wrap:wrap}.stem-track-actions button{font-size:12px;padding:6px 9px;min-height:36px}.stem-track-actions .stem-download{margin-left:auto;color:var(--muted)}.stem-silent{border-style:dashed}.stem-silent input{opacity:.45}.stem-caption{font-size:13px;line-height:1.6;color:var(--muted);margin:14px 0 0}.stem-reader-mode{color:var(--accent)!important;font-size:12px!important;border:1px solid var(--line);padding:5px 8px;border-radius:6px}
.stage-mode .stem-studio{display:none}.stage-mode .stem-reader-mode{display:inline-block}.stem-source-help{font-size:14px;line-height:1.6;margin:12px 0;color:var(--muted)}
@media(max-width:900px){.stem-tracks{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.stem-studio{padding:18px 15px}.stem-heading{display:block}.stem-heading h2{font-size:22px}.stem-badge{display:inline-block;margin-bottom:15px}.stem-tracks{grid-template-columns:1fr}.stem-presets button{flex:1 1 42%;padding:10px 8px}.stem-reader-mode{display:none}}
.stage-backing-reader{display:none}
.stage-mode .stage-backing-reader:not([hidden]){display:flex;align-items:center;flex-shrink:0;gap:12px;padding:4px 16px;border-bottom:1px solid var(--line)}
.stage-backing-reader label{margin:0;font-size:14px}
.stage-backing-reader input[type=range]{flex:1;min-width:48px;max-width:22rem;width:auto;margin:0;min-height:36px}
.stage-backing-reader output{min-width:4ch;text-align:right;color:var(--accent);font-variant-numeric:tabular-nums}
.suno-dialog{width:min(36rem,94vw);max-height:85dvh;overflow:auto}
.suno-dialog h2{margin-top:0}.suno-dialog input[type=file]{max-width:100%}
#sunoRows label{display:grid;grid-template-columns:minmax(0,1fr) minmax(9rem,46%);align-items:center;gap:12px;margin:10px 0}
#sunoRows span{overflow-wrap:anywhere}#sunoRows select{min-width:0;width:100%;margin:0}
#stemSunoInfo:empty{display:none}
