/* Smart music recommendations: isolated replacement UI for preset mode only. */
body.settings-mode-preset .app > .workspace:has(> #smartPresetStudio[data-ready="true"]){grid-template-columns:minmax(0,1fr)!important;max-width:none!important;gap:0!important}
body.settings-mode-preset .app > .workspace:has(> #smartPresetStudio[data-ready="true"]) > .center-panel{display:none!important}
body.settings-mode-preset .app > .workspace:has(> #smartPresetStudio[data-ready="true"]) > #settingsPanel{display:none!important}
/* Existing preset content stays visible until the new panel is initialized. */
#smartPresetStudio{display:none}
body.settings-mode-preset .app > .workspace > #smartPresetStudio[data-ready="true"]{display:block!important;grid-column:1/-1;box-sizing:border-box;min-width:0;width:100%;max-width:1160px;margin:0 auto;padding:30px clamp(16px,4vw,46px) 70px;color:var(--text,#222);font-family:inherit}
.smart-preset-studio *{box-sizing:border-box}
.smart-preset-hero{padding:23px 27px;margin-bottom:18px;border:1px solid rgba(128,103,201,.22);border-radius:18px;background:linear-gradient(125deg,rgba(128,103,201,.13),rgba(128,103,201,.025))}
.smart-preset-eyebrow{font-size:11px;font-weight:850;letter-spacing:1.6px;color:#a695ff}
.smart-preset-hero h2{margin:7px 0 9px;font-size:clamp(22px,2.4vw,29px);font-weight:900;color:var(--text)}
.smart-preset-hero p,.smart-preset-recommend-head p{margin:0;color:var(--muted);line-height:1.65;font-size:13px}
.smart-preset-config{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;background:rgba(128,103,201,.035);border:1px solid rgba(128,103,201,.20);border-radius:18px;padding:24px}
.smart-preset-field{display:flex;flex-direction:column;gap:9px;min-width:0}
.smart-preset-field>label,.smart-preset-language-head label{color:var(--text)!important;font-weight:850;font-size:14px}
.smart-preset-field>select{width:100%;min-height:46px;padding:9px 12px;background:var(--panel2,#fff);border:1px solid var(--line-strong, #999);border-radius:10px;color:var(--text);font-size:14px;cursor:pointer}
.smart-preset-topic{grid-column:1/-1}
.smart-preset-field>textarea{width:100%;min-height:76px;resize:vertical;padding:12px;background:var(--panel2,#fff);border:1px solid var(--line-strong,#999);border-radius:10px;color:var(--text);font:inherit;font-size:14px;line-height:1.6}
.smart-preset-field>textarea:focus-visible{outline:2px solid #8363cc;outline-offset:1px}
.smart-preset-field>textarea::placeholder{color:var(--muted);opacity:1}
.smart-preset-empty{margin:0;padding:22px;border:1px dashed rgba(128,103,201,.45);border-radius:12px;color:var(--muted);text-align:center}
.smart-preset-field small{font-size:11px;color:var(--muted)}
.smart-preset-language{grid-column:1/-1;margin-top:4px;background:rgba(128,103,201,.05);border-radius:12px;padding:14px 16px}
.smart-preset-language-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.smart-preset-language output{font-size:14px;font-weight:850;color:var(--text)}
.smart-preset-language input[type=range]{display:block;width:100%;margin:6px 0;accent-color:#8163dd;cursor:pointer;height:10px;min-height:10px}
.smart-preset-range-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}
.smart-preset-recommend-head{margin:30px 0 15px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.smart-preset-recommend-head h3{font-size:19px;letter-spacing:-.5px;margin:0 0 6px;color:var(--text)}
#smartPresetCount{font-size:12px;border-radius:20px;background:rgba(128,103,201,.15);padding:3px 8px;color:var(--text)}
.smart-preset-refresh,.smart-preset-more{border-radius:10px;background:rgba(128,103,201,.12);color:var(--text)!important;border:1px solid rgba(128,103,201,.25);padding:10px 17px;font-weight:850;cursor:pointer}
.smart-preset-list{display:grid;grid-template-columns:1fr;gap:11px}
.smart-preset-item{display:flex;align-items:center;gap:15px;padding:16px 19px;background:var(--panel2,#fff);border:1px solid rgba(128,103,201,.20);border-radius:13px;width:100%;min-width:0;color:var(--text)!important;text-align:left;box-shadow:0 2px 8px rgba(0,0,0,.03);transition:border-color .18s,transform .18s,background .18s}
.smart-preset-item:hover,.smart-preset-item:focus-visible{border-color:#9073e6;box-shadow:0 5px 18px rgba(128,103,201,.13);background:rgba(128,103,201,.08);outline:none}
.smart-preset-item:focus-visible{outline:2px solid #8363cc;outline-offset:2px}
.smart-preset-item.is-copied{border-color:#2e9b72}
.smart-preset-num{background:rgba(128,103,201,.14);border-radius:10px;display:grid;place-items:center;font-size:14px;flex:0 0 42px;height:42px;font-weight:900;color:var(--text)}
.smart-preset-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px;line-height:1.4}
.smart-preset-info>strong{font-size:15px;color:var(--text)}
.smart-preset-info>small{font-size:12px;color:var(--muted);line-height:1.55}
.smart-preset-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}
.smart-preset-tags em{font-style:normal;padding:4px 7px;font-size:10px;font-weight:750;background:rgba(128,103,201,.11);border-radius:6px;color:var(--text)}
.smart-preset-copy-icon{font-size:21px;font-weight:850;flex:0 0 28px;text-align:center;color:var(--text)}
.smart-preset-item:nth-child(n+6){display:none}
.smart-preset-expanded .smart-preset-item:nth-child(n+6){display:flex}
.smart-preset-more{display:block;width:100%;margin-top:15px}
.smart-preset-more[hidden],.smart-preset-copy-notice[hidden]{display:none!important}
.smart-preset-copy-notice{position:sticky;bottom:20px;margin:16px auto 0;text-align:center;width:fit-content;max-width:100%;font-weight:900;border:1px solid #4bae87;border-radius:10px;padding:12px 18px;color:var(--text);background:var(--panel2);box-shadow:0 8px 22px #0002}
.smart-preset-note{margin-top:17px;color:var(--muted);font-size:12px;line-height:1.7}
@media(max-width:700px){.smart-preset-config{grid-template-columns:1fr;padding:15px}.smart-preset-language{grid-column:1}.smart-preset-item{padding:13px 10px;gap:9px}.smart-preset-num{flex-basis:32px;height:32px}.smart-preset-hero{padding:18px 16px}}

/* Smart recommendation: genre search and vocal gender selection. */
.smart-preset-genre-controls{display:flex;gap:10px;align-items:stretch;min-width:0}
.smart-preset-genre-controls>select{flex:1 1 52%;min-width:0;min-height:46px;padding:9px 12px;background:var(--panel2,#fff);border:1px solid var(--line-strong,#999);border-radius:10px;color:var(--text);font-size:14px}
.smart-preset-genre-controls>input{flex:1 1 40%;min-width:0;min-height:46px;padding:9px 12px;background:var(--panel2,#fff);border:1px solid var(--line-strong,#999);border-radius:10px;color:var(--text);font-size:14px}
.smart-preset-genre-controls>input:focus-visible{outline:2px solid #8363cc;outline-offset:1px}
@media(max-width:520px){.smart-preset-genre-controls{flex-direction:column}}

/* Smart creation hero subtitle: clearly readable across themes. */
.smart-preset-hero p{font-size:15px;line-height:1.7;color:var(--text,#222);font-weight:600}
