/* Advanced stem mastering: opt-in separate mode; no global mastering overrides. */
.stem-studio{--stem-v:#614aa5;--stem-i:#447c94;--stem-surface:rgba(255,255,255,.68);margin:14px 0 18px;padding:22px 24px;border-radius:17px;border:1px solid rgba(108,101,130,.22);background:linear-gradient(125deg,rgba(255,255,255,.85),rgba(239,238,243,.86));box-shadow:0 8px 32px rgba(41,22,32,.06);color:var(--text-color,#2a2830)}
.stem-studio[hidden],.stem-studio [hidden]{display:none!important}
.stem-studio button,.stem-studio select,.stem-studio input{font:inherit}
.stem-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.stem-heading h3{font-size:calc(24px * var(--font-scale, 1));margin:4px 0 7px;font-weight:800;letter-spacing:-.5px;color:inherit}.stem-heading p{margin:0;font-size:calc(12.5px * var(--font-scale, 1));color:#777077;line-height:1.6}.stem-eyebrow{font-size:calc(10px * var(--font-scale, 1));font-weight:800;letter-spacing:2px;color:#63509b}.stem-mark{display:inline-flex;vertical-align:middle;margin-left:7px;padding:4px 8px;font-size:calc(10px * var(--font-scale, 1));color:#6049a4;background:#f3f2f5;border:1px solid #c8bee7;border-radius:20px;letter-spacing:.6px}.stem-private{text-align:right;flex-shrink:0;border:1px solid #dbeae5;border-radius:12px;background:#f0f9f6;padding:12px 15px;min-width:180px}.stem-private-dot,.stem-live-dot::before{display:inline-block;width:7px;height:7px;border-radius:50%;background:#20ba81;margin-right:7px}.stem-private strong{font-size:calc(12px * var(--font-scale, 1));color:#237452}.stem-private small{display:block;font-size:calc(10px * var(--font-scale, 1));color:#638979;margin:4px 0 0}.stem-stages{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:18px 0;padding:9px;border:1px solid #e0dee6;border-radius:11px;background:rgba(255,255,255,.7)}.stem-stages span{text-align:center;font-size:calc(11px * var(--font-scale, 1));color:#7f7b8b;padding:4px 2px;font-weight:650}.stem-stages span+span{border-left:1px solid #e4e2e9}.stem-ready{border:1px solid #dcd8e8;background:var(--stem-surface);border-radius:12px;padding:16px}.stem-config{display:flex;align-items:end;gap:13px}.stem-model-label{display:flex;flex-direction:column;gap:7px;flex:1}.stem-model-label b{font-size:calc(12px * var(--font-scale, 1))}.stem-model-label select{height:41px;background:#ffffff;border:1px solid #d4d1dc;border-radius:8px;padding:0 12px;color:#3a383f;font-size:calc(12.5px * var(--font-scale, 1));width:100%}.stem-primary{background:#433471;color:#ffffff!important;border:1px solid #433471!important;border-radius:9px;min-height:41px;padding:0 20px;font-size:calc(12.5px * var(--font-scale, 1));font-weight:800;white-space:nowrap;cursor:pointer;transition:filter .16s}.stem-primary:not(:disabled):hover{filter:brightness(1.12)}.stem-primary:disabled{opacity:.43;cursor:not-allowed}.stem-message{font-size:calc(11.5px * var(--font-scale, 1));line-height:1.6;color:#777078;margin-top:11px}.stem-message[data-type=error],.stem-log[data-type=error]{color:#5939ba}.stem-message[data-type=success],.stem-log[data-type=success]{color:#237b59}.stem-progress{margin-top:13px;background:#f4f3f6;padding:12px;border-radius:9px}.stem-progress-top{display:flex;align-items:center;justify-content:space-between;font-size:calc(11px * var(--font-scale, 1));margin-bottom:9px}.stem-progress-track{background:#e7d9df;border-radius:9px;height:7px;overflow:hidden}.stem-progress-track i{display:block;width:0%;height:100%;background:linear-gradient(90deg,#57448f,#8f7dc4);transition:width .16s}.stem-mix{margin-top:19px}.stem-subhead{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}.stem-subhead h4{margin:5px 0 0;font-size:calc(17px * var(--font-scale, 1));letter-spacing:-.3px}.stem-live-dot{border:1px solid #cae7dd;background:#f0fcf8;border-radius:25px;padding:6px 10px;color:#39866a;font-size:calc(10px * var(--font-scale, 1));font-weight:800;letter-spacing:1px}.stem-preset-wrap{border:1px solid #e2e0e8;background:rgba(255,255,255,.5);padding:15px;border-radius:12px;display:flex;flex-wrap:wrap;gap:9px;align-items:center}.stem-preset-wrap>div:first-child{display:flex;flex-direction:column;min-width:150px;gap:4px}.stem-preset-wrap b{font-size:calc(12px * var(--font-scale, 1))}.stem-preset-wrap small{font-size:calc(10px * var(--font-scale, 1));color:#767381;line-height:1.5}.stem-presets{flex:1;display:flex;flex-wrap:wrap;gap:6px}.stem-presets button{background:rgba(255,255,255,.9);border:1px solid #dddae6;color:#5e596d;border-radius:7px;padding:9px 11px;font-size:calc(11px * var(--font-scale, 1));font-weight:700;cursor:pointer}.stem-presets button.active{background:#4d3b81;color:white;border-color:#4d3b81}.stem-custom{font-size:calc(10px * var(--font-scale, 1));padding:5px 8px;border-radius:7px;background:#f3edf0;color:#57458d;font-weight:800}.stem-channel-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}.stem-channel{border:1px solid #dddbe5;background:var(--stem-surface);border-radius:12px;padding:16px;min-width:0}.stem-channel.vocal{border-top:3px solid var(--stem-v)}.stem-channel.inst{border-top:3px solid var(--stem-i)}.stem-channel-title{display:flex;align-items:center;gap:9px;margin-bottom:15px}.stem-channel-icon{font-size:calc(24px * var(--font-scale, 1));color:var(--stem-v)}.stem-channel.inst .stem-channel-icon{color:var(--stem-i)}.stem-channel-title b{font-size:calc(12px * var(--font-scale, 1));letter-spacing:1.1px}.stem-channel-title small{display:block;font-size:calc(10px * var(--font-scale, 1));color:#83808c;margin-top:4px}.stem-active-mark{margin-left:auto;font-size:calc(16px * var(--font-scale, 1));opacity:.2;font-weight:850}.stem-control{display:block;margin-bottom:17px}.stem-control:last-child{margin-bottom:1px}.stem-control-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}.stem-control-top b{font-size:calc(11.5px * var(--font-scale, 1));font-weight:800}.stem-control-top small{display:block;font-size:calc(10px * var(--font-scale, 1));color:#888591;margin-top:3px}.stem-control output{font-weight:800;font-size:calc(12px * var(--font-scale, 1));color:#5a4793;font-variant-numeric:tabular-nums;white-space:nowrap}.stem-channel.inst .stem-control output{color:#39778c}.stem-control input{display:block;width:100%;height:14px;cursor:pointer;accent-color:var(--stem-v);margin:0}.stem-channel.inst .stem-control input{accent-color:var(--stem-i)}.stem-control-meter{display:block;margin:1px 2px;height:4px;background:#e8e6ed;overflow:hidden;border-radius:9px}.stem-control-meter span{display:block;background:#6d5aa6;height:100%;transition:width .08s;width:50%}.stem-channel.inst .stem-control-meter span{background:#548ea5}.stem-monitor{padding:17px;background:rgba(46,36,44,.04);border:1px solid #e5dce0;border-radius:12px}.stem-monitor-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:13px}.stem-monitor-head strong{font-size:calc(11.5px * var(--font-scale, 1));letter-spacing:1.1px}.stem-monitor-head small{font-size:calc(10.5px * var(--font-scale, 1));color:#7e7b87}.stem-transport{display:flex;align-items:center;gap:12px}.stem-play{min-width:85px;border:1px solid #544582;background:#544582;color:white;border-radius:8px;padding:10px 13px;font-size:calc(12px * var(--font-scale, 1));font-weight:800;cursor:pointer}.stem-seek-box{flex:1;min-width:70px}.stem-seek-box input{width:100%;accent-color:#65529f}.stem-time{display:flex;justify-content:space-between;color:#7b7788;font-size:calc(10px * var(--font-scale, 1));font-variant-numeric:tabular-nums}.stem-ab{display:flex;gap:5px}.stem-ab button{border:1px solid #dbd7e5;border-radius:8px;padding:9px 11px;background:#ffffff;color:#806772;font-size:calc(11px * var(--font-scale, 1));cursor:pointer}.stem-ab button.active{background:#734359;color:#ffffff;border-color:#734359}.stem-export{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding:16px;border:1px solid #e5dce0;border-radius:12px;background:rgba(255,255,255,.65)}.stem-export b{font-size:calc(13px * var(--font-scale, 1));letter-spacing:.4px}.stem-export small{display:block;margin-top:5px;font-size:calc(10.5px * var(--font-scale, 1));color:#80747b}.stem-log{margin-top:9px;min-height:20px;font-size:calc(11px * var(--font-scale, 1));color:#82737c;line-height:1.6}.stem-disclaimer{margin-top:13px;font-size:calc(10.5px * var(--font-scale, 1));line-height:1.65;color:#8b8894}
body:not(.light-theme) .stem-studio{color:#ebdfe4;background:linear-gradient(145deg,#302c32,#29282d);border-color:#51404a;--stem-surface:rgba(27,25,30,.55)}body:not(.light-theme) .stem-heading p,body:not(.light-theme) .stem-disclaimer{color:#b0a4aa}body:not(.light-theme) .stem-stages,body:not(.light-theme) .stem-ready,body:not(.light-theme) .stem-channel,body:not(.light-theme) .stem-monitor,body:not(.light-theme) .stem-export,body:not(.light-theme) .stem-preset-wrap{border-color:#564450;background:#332e35}body:not(.light-theme) .stem-model-label select,body:not(.light-theme) .stem-presets button,body:not(.light-theme) .stem-ab button{background:#29272d;border-color:#4e4761;color:#e8e6ed}body:not(.light-theme) .stem-presets button.active,body:not(.light-theme) .stem-ab button.active{background:#584985;color:white}body:not(.light-theme) .stem-private{background:#253b34;border-color:#2e5c4a}body:not(.light-theme) .stem-control-meter{background:#443942}body:not(.light-theme) .stem-stages span+span{border-left-color:#55444e}body:not(.light-theme) .stem-control-top small,body:not(.light-theme) .stem-preset-wrap small,body:not(.light-theme) .stem-message,body:not(.light-theme) .stem-export small{color:#c2b4be}
@media(max-width:900px){.stem-channel-grid{grid-template-columns:1fr}.stem-heading{align-items:start}.stem-private{min-width:120px}.stem-config,.stem-transport{flex-wrap:wrap}.stem-ab{margin-left:auto}}@media(max-width:580px){.stem-studio{padding:14px}.stem-heading{flex-direction:column}.stem-private{width:100%;text-align:left}.stem-stages{grid-template-columns:repeat(2,1fr)}.stem-stages span+span{border:0}.stem-model-label{width:100%}.stem-config{flex-direction:column;align-items:stretch}.stem-transport{display:grid;grid-template-columns:1fr}.stem-monitor-head{flex-direction:column;align-items:start}.stem-export{flex-direction:column;align-items:stretch}.stem-ab{margin:0}}

/* Two independent mastering pages: hide every unrelated workspace in the Stem page. */
.stem-mastering-workspace{display:none;min-height:0;height:100%;overflow:auto;background:var(--editorial-bg,#f0eff3);color:var(--editorial-text,#302f34);}
body.settings-mode-stem-mastering .workspace,
body.settings-mode-stem-mastering .bgm-workspace,
body.settings-mode-stem-mastering .cutscene-workspace,
body.settings-mode-stem-mastering .video-workspace,
body.settings-mode-stem-mastering .youtube-workspace,
body.settings-mode-stem-mastering .mastering-workspace,
body.settings-mode-stem-mastering .community-board-workspace,
body.settings-mode-stem-mastering #playlistAlbumWorkspace{display:none!important}
body.settings-mode-stem-mastering .stem-mastering-workspace{display:block!important}
body.settings-mode-stem-mastering .stem-studio{width:min(1300px,calc(100% - 40px));margin:22px auto 44px;padding:25px 27px;}
.stem-upload{margin:15px 0 17px;border:1px solid #dcdae4;background:var(--stem-surface);border-radius:13px;padding:17px;}
.stem-upload-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:13px;}
.stem-upload-step{display:grid;place-items:center;min-width:30px;height:30px;border-radius:9px;background:#f4e7ed;border:1px solid #e8cfdb;color:#554190;font-size:calc(12px * var(--font-scale, 1));font-weight:800;}
.stem-upload-heading h4{margin:0 0 5px;font-size:calc(15px * var(--font-scale, 1));color:inherit;font-weight:800;}
.stem-upload-heading p{margin:0;color:#867981;font-size:calc(11.5px * var(--font-scale, 1));line-height:1.6;}
.stem-file-picker{display:flex;align-items:center;gap:14px;min-height:76px;padding:13px 15px;border:1px dashed #c1b9d9;border-radius:11px;background:rgba(255,255,255,.7);cursor:pointer;position:relative;}
.stem-file-picker:hover,.stem-file-picker:focus-within{border-color:#6650a8;background:rgba(249,239,244,.94);}
.stem-file-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#f5eaf0;color:#634f9d;font-size:calc(23px * var(--font-scale, 1));}
.stem-file-name{display:grid;gap:5px;min-width:0;flex:1;}
.stem-file-name b{font-size:calc(13px * var(--font-scale, 1));font-weight:800;overflow-wrap:anywhere;}
.stem-file-name small{font-size:calc(11px * var(--font-scale, 1));color:#91818a;line-height:1.4;}
.stem-file-action{padding:10px 13px;border-radius:9px;background:#4e4078;color:#ffffff;font-size:calc(11px * var(--font-scale, 1));font-weight:800;white-space:nowrap;}
.stem-file-picker input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}
body:not(.light-theme) .stem-mastering-workspace{background:#211f25;color:#e3e1e9;}
body:not(.light-theme) .stem-upload{background:#332e35;border-color:#564450;}
body:not(.light-theme) .stem-upload-heading p,body:not(.light-theme) .stem-file-name small{color:#bcaeb5;}
body:not(.light-theme) .stem-file-picker{background:#2b2830;border-color:#674b5c;}
body:not(.light-theme) .stem-file-picker:hover{background:#38303b;}
body:not(.light-theme) .stem-upload-step,body:not(.light-theme) .stem-file-icon{background:#493241;color:#c7baec;}
body.settings-mode-stem-mastering #mmpSideNav .stem-mastering-mode-btn.active{background:#342368!important;color:#f7f6f8!important;}
.mmp-landing-card[data-mode="stem-mastering"]{--card-accent:#7b67b8}
@media(max-width:740px){body.settings-mode-stem-mastering .stem-studio{width:calc(100% - 22px);margin:12px auto 28px;padding:15px}.stem-file-picker{flex-wrap:wrap}.stem-file-action{margin-left:auto}}

/* Match the app's real dark theme (body without .light-theme). Light theme unchanged. */
body:not(.light-theme) .stem-studio{background:linear-gradient(135deg,#24222d,#1b1b24);border-color:#4c435c;box-shadow:0 12px 32px rgba(0,0,0,.20);color:#f0edf6;--stem-surface:#292633;}
body:not(.light-theme) .stem-mastering-workspace{background:#111218;color:#f0edf6;}
body:not(.light-theme) .stem-stages,
body:not(.light-theme) .stem-ready,
body:not(.light-theme) .stem-channel,
body:not(.light-theme) .stem-monitor,
body:not(.light-theme) .stem-export,
body:not(.light-theme) .stem-preset-wrap,
body:not(.light-theme) .stem-upload{background:#2b2836;border-color:#51485e;}
body:not(.light-theme) .stem-file-picker{background:#211f2b;border-color:#706184;}
body:not(.light-theme) .stem-file-picker:hover,
body:not(.light-theme) .stem-file-picker:focus-within{background:#302a40;border-color:#a995eb;}
body:not(.light-theme) .stem-heading p,
body:not(.light-theme) .stem-stages span,
body:not(.light-theme) .stem-upload-heading p,
body:not(.light-theme) .stem-file-name small,
body:not(.light-theme) .stem-message,
body:not(.light-theme) .stem-disclaimer,
body:not(.light-theme) .stem-control-top small,
body:not(.light-theme) .stem-channel-title small,
body:not(.light-theme) .stem-preset-wrap small,
body:not(.light-theme) .stem-monitor-head small,
body:not(.light-theme) .stem-time,
body:not(.light-theme) .stem-export small,
body:not(.light-theme) .stem-log{color:#c8bfda;}
body:not(.light-theme) .stem-eyebrow,
body:not(.light-theme) .stem-control output,
body:not(.light-theme) .stem-custom{color:#c0acff;}
body:not(.light-theme) .stem-channel.inst .stem-control output{color:#8dd4e7;}
body:not(.light-theme) .stem-mark{color:#d6c5ff;background:#39324b;border-color:#695b87;}
body:not(.light-theme) .stem-private{background:#17372e;border-color:#376f5b;}
body:not(.light-theme) .stem-private strong{color:#99f3c4;}
body:not(.light-theme) .stem-private small{color:#b0dec8;}
body:not(.light-theme) .stem-model-label select,
body:not(.light-theme) .stem-presets button,
body:not(.light-theme) .stem-ab button{background:#201e2a;border-color:#615474;color:#f0edf7;}
body:not(.light-theme) .stem-presets button.active,
body:not(.light-theme) .stem-ab button.active{background:#5d4b99;border-color:#8870ce;color:#fff;}
body:not(.light-theme) .stem-primary{background:#6650a5;border-color:#6650a5!important;}
body:not(.light-theme) .stem-progress{background:#23202e;}
body:not(.light-theme) .stem-progress-track{background:#4b425a;}
body:not(.light-theme) .stem-live-dot{background:#193c33;border-color:#377764;color:#9df3ce;}
body:not(.light-theme) .stem-custom{background:#403352;}
body:not(.light-theme) .stem-message[data-type=error],
body:not(.light-theme) .stem-log[data-type=error]{color:#f3aac1;}
body:not(.light-theme) .stem-message[data-type=success],
body:not(.light-theme) .stem-log[data-type=success]{color:#9df3c5;}

/* 2026-10-24 Stem Phase 1: diagnostics and genre-aware, user-triggered auto settings. */
.stem-auto-section{margin:17px 0;border:1px solid rgba(112,89,165,.3);border-radius:14px;background:var(--stem-surface);padding:18px;color:inherit}
.stem-auto-heading{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:15px}
.stem-auto-heading>div{display:grid;gap:5px}
.stem-auto-heading strong{font-size:calc(16px * var(--font-scale,1));color:inherit}
.stem-auto-heading small{font-size:calc(11.5px * var(--font-scale,1));color:inherit;opacity:.76;line-height:1.65}
.stem-auto-pill{flex:0 0 auto;color:#6551a0;border:1px solid rgba(123,95,181,.32);background:rgba(123,95,181,.09);border-radius:999px;padding:7px 11px;font-size:calc(10px * var(--font-scale,1));font-weight:850}
.stem-auto-actions{display:grid;grid-template-columns:minmax(140px,1fr) minmax(135px,.7fr) auto;gap:10px;align-items:end}
.stem-auto-actions label{display:grid;gap:7px;font-size:calc(12px * var(--font-scale,1));font-weight:800;min-width:0}
.stem-auto-actions select{height:43px;width:100%;min-width:0;border:1px solid rgba(132,115,170,.4);border-radius:9px;padding:0 10px;background:var(--stem-surface);color:inherit}
.stem-auto-actions .stem-primary{min-height:43px;white-space:normal;padding:8px 14px}
.stem-analysis-report{margin-top:15px;background:var(--stem-surface);border:1px solid rgba(132,115,170,.22);border-radius:12px;padding:14px;color:inherit;font-size:calc(12px * var(--font-scale,1))}
.stem-analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.stem-analysis-grid>div{padding:11px;border:1px solid rgba(132,115,170,.2);border-radius:9px;display:grid;gap:4px;min-width:0}
.stem-analysis-grid b{font-size:calc(10px * var(--font-scale,1));letter-spacing:1.1px;color:#8f7cc1}
.stem-analysis-grid strong{font-size:calc(15px * var(--font-scale,1))}
.stem-analysis-grid small{opacity:.77}
.stem-analysis-report p{margin:11px 0 0;line-height:1.6}
.stem-auto-disclaimer{font-size:calc(11px * var(--font-scale,1));opacity:.76;line-height:1.6;margin:10px 0 0}
body:not(.light-theme) .stem-auto-section,body:not(.light-theme) .stem-analysis-report{background:#2b2836;border-color:#51485e}
body:not(.light-theme) .stem-auto-actions select,body:not(.light-theme) .stem-analysis-grid>div{background:#211f2b;border-color:#615474;color:#f0edf7}
body:not(.light-theme) .stem-auto-pill{color:#d2bcff;border-color:#615474;background:#382d4c}
@media(max-width:760px){.stem-auto-actions{grid-template-columns:1fr 1fr}.stem-auto-actions .stem-primary{grid-column:1/-1}.stem-analysis-grid{grid-template-columns:1fr}.stem-auto-heading{flex-wrap:wrap}}

.stem-stages{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:580px){.stem-stages{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 2026-10-24 Phase 2: lightweight explanation for opt-in dynamic processing. */
.stem-precision-caption{font-size:calc(11px * var(--font-scale,1));line-height:1.65;margin:12px 0 0;padding:10px 12px;border-radius:9px;border:1px solid rgba(123,95,181,.25);background:rgba(123,95,181,.055);color:inherit}
body:not(.light-theme) .stem-precision-caption{background:#322b40;border-color:#5a4c6f}

/* Phase 3 — gated LUFS / 4x oversampled True Peak output QA. */
.stem-quality-section{margin-top:16px;padding:17px;border-radius:13px;border:1px solid rgba(123,95,181,.3);background:var(--stem-surface);color:inherit}
.stem-quality-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.stem-quality-head>div{display:grid;gap:5px}
.stem-quality-head strong{font-size:calc(15px * var(--font-scale,1))}
.stem-quality-head small{opacity:.76;font-size:calc(11px * var(--font-scale,1));line-height:1.5}
.stem-quality-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:13px}
.stem-quality-controls label{display:grid;gap:6px;flex:1;min-width:190px;font-size:calc(12px * var(--font-scale,1))}
.stem-quality-controls select{min-height:42px;width:100%;border:1px solid rgba(132,115,170,.4);border-radius:9px;padding:8px;background:var(--stem-surface);color:inherit}
.stem-quality-controls button{min-height:42px;padding:8px 14px}
.stem-quality-hint{margin:12px 0;font-size:calc(11px * var(--font-scale,1));line-height:1.65;opacity:.78}
.stem-quality-report{padding:14px;border:1px solid rgba(132,115,170,.25);border-radius:9px;line-height:1.6;font-size:calc(11px * var(--font-scale,1))}
.stem-quality-report>p{margin:10px 0 5px;line-height:1.6}
.stem-quality-report>small{opacity:.76}
.stem-quality-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.stem-quality-grid>div{display:grid;gap:4px;padding:9px;border-radius:8px;background:rgba(128,116,164,.09);min-width:0}
.stem-quality-grid b{font-size:calc(10px * var(--font-scale,1));opacity:.78}
.stem-quality-grid strong{font-size:calc(13px * var(--font-scale,1));overflow-wrap:anywhere}
.stem-final-preview{display:grid;gap:9px;margin-top:12px;border-top:1px solid rgba(132,115,170,.25);padding-top:13px}
.stem-final-preview[hidden]{display:none!important}
.stem-final-preview strong{font-size:calc(12px * var(--font-scale,1))}
.stem-final-preview audio{width:100%;max-width:650px}
.stem-final-preview small{opacity:.72;font-size:calc(10px * var(--font-scale,1))}
body:not(.light-theme) .stem-quality-section{background:#2b2836;border-color:#51485e}
body:not(.light-theme) .stem-quality-report{border-color:#51485e}
body:not(.light-theme) .stem-quality-controls select{background:#211f2b;border-color:#615474;color:#f0edf7}
@media(max-width:760px){.stem-quality-head{flex-direction:column}.stem-quality-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stem-quality-controls button{width:100%}}
