/* Sencilla reproduces version28 using local fonts and the real application flow. */
@font-face { font-family:SGSolid; src:url('../fonts/version28/fa-solid-900.woff2') format('woff2'); font-weight:900; font-display:block; }
@font-face { font-family:SGNotes; src:url('../fonts/version28/caveat-variable.woff2') format('woff2'); font-weight:400 700; font-display:swap; }
.v28-theme #app-content:has(#sg-root) { padding:0 0 160px!important; }
html:has(body.v28-theme #sg-root),body.v28-theme:has(#sg-root) { overflow:clip; }
.sg-root { --sg-workbench-height:0px; color:var(--musicaia-text); container-type:inline-size; container-name:sg-page; color-scheme:dark; }
.sg-reference-card { margin-top:0; padding:14px; border:1px solid #ffffff20; border-radius:16px; background:#ffffff04; }
.sg-reference-card>h3 { margin:0 0 8px; color:#c8c9d4; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.sg-reference-card>p { margin:0 0 10px; color:#a9acbc; font-size:11px; line-height:1.65; }
.sg-reference-card #sg-audio-host { margin-top:10px; }
#sg-audio-reference #pc-audio-analysis { margin-top:14px; color:#c9c4df; font-size:11px; line-height:1.6; }
.sg-root select,.sg-root option,.sg-root optgroup { color-scheme:dark; }
.sg-root select option,.sg-root select optgroup { background-color:#252530; color:#f1f1f5; }
.sg-root [hidden] { display:none!important; }
.sg-header { position:sticky; top:0; z-index:31; display:flex; align-items:center; justify-content:flex-start; gap:16px; padding:12px 32px; min-height:80px; background:#1b1b23; border-bottom:1px solid var(--musicaia-border); }
.sg-header h1 { font:700 24px/1.2 var(--v28-display); margin:0; }
.sg-header-copy { min-width:0; flex:1; }
.sg-header-title { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:3px; }
.sg-header-back { display:grid; place-items:center; flex-shrink:0; width:40px; height:40px; border:0; border-radius:12px; background:#ffffff18; color:#d1d5db; font-size:15px; cursor:pointer; }
.sg-header-back:hover { background:#ffffff26; color:white; }
.sg-mode-badge { padding:3px 12px; border:1px solid #ff008066; border-radius:999px; background:#6b123e80; color:#f1b6d3; font-size:12px; font-weight:600; line-height:1.1; }
.sg-header p,.sg-panel-heading p { font-size:13px; line-height:1.6; color:var(--musicaia-muted); margin:0; }
.sg-header p { font-size:14px; line-height:1.4; }
.sg-screen { max-width:1280px; padding:52px 56px 60px; margin-inline:auto; }
.sg-root[data-stage=idea] .sg-screen,.sg-root[data-stage=review] .sg-screen,.sg-root[data-stage=legacy] .sg-screen { max-width:1240px; padding:32px 32px 80px; }
#sg-choices { position:relative; }
.sg-welcome { display:grid; grid-template-columns:minmax(0,1fr) 260px; align-items:center; gap:30px; padding:28px 32px; margin-bottom:28px; border:1px solid #ffffff0e; border-radius:22px; overflow:hidden; background:radial-gradient(ellipse at 100% 50%,#8338ec14,transparent 65%),linear-gradient(115deg,#24202a,#1d1b24); }
.sg-welcome-eyebrow { margin:0 0 14px; font-size:10px; font-weight:700; letter-spacing:.15em; color:#c4a8da; text-transform:uppercase; }
.sg-welcome-eyebrow::before { content:''; display:inline-block; width:20px; height:2px; background:#c4a8da; margin:0 9px 3px 0; }
.sg-welcome h2 { font:700 clamp(32px,3.1cqw,46px)/1.12 var(--v28-display); margin:0 0 16px; letter-spacing:-.035em; }
.sg-welcome h2>span:last-child { background:linear-gradient(100deg,#ff0080,#ed89db 52%,#a35cfe); background-clip:text; -webkit-background-clip:text; color:transparent; }
.sg-welcome-copy>p:last-child { font-size:12px; line-height:1.7; margin:0; color:#bcb6c9; }
.sg-hero-art { position:relative; height:200px; width:260px; }
.sg-hero-art::before { content:''; position:absolute; inset:14px 28px; border:1px solid #b569ed1c; border-radius:50%; transform:rotate(-20deg); }
.sg-hero-track { position:absolute; inset:50px 4px; display:flex; align-items:center; justify-content:space-between; gap:5px; transform:rotate(-9deg); }
.sg-hero-track span { width:4px; height:24%; border-radius:8px; background:linear-gradient(#d05ce0,#ff008052); opacity:.45; }
.sg-hero-track span:nth-child(3n) { height:64%; }
.sg-hero-track span:nth-child(4n) { height:92%; }
.sg-hero-track span:nth-child(5n) { height:44%; }
.sg-hero-icon { position:absolute; display:grid; place-items:center; border:1px solid #ffffff18; border-radius:16px; }
.sg-hero-headphones { width:90px; height:90px; left:85px; top:56px; font-size:38px; border-radius:25px; background:linear-gradient(140deg,#f50079,#8338ec); transform:rotate(-8deg); color:white; }
.sg-hero-notes { width:48px; height:48px; left:18px; top:17px; font-size:21px; color:#ff7ab7; background:#402238; transform:rotate(-12deg); }
.sg-hero-mic { width:54px; height:54px; right:9px; top:6px; font-size:23px; color:#d4b8ff; background:#30233e; transform:rotate(10deg); }
.sg-hero-wave { width:42px; height:42px; left:10px; bottom:9px; font-size:18px; color:#ca9dfb; background:#2e253a; transform:rotate(8deg); }
.sg-hero-mix { width:50px; height:50px; right:11px; bottom:6px; font-size:21px; color:#ff9bba; background:#3a2535; transform:rotate(-8deg); }
.sg-fa { display:inline-block; font-family:SGSolid; font-style:normal; font-weight:900; line-height:1; }
.sg-fa[data-sg-icon=feather]::before { content:'\f56b'; }
.sg-fa[data-sg-icon=heart]::before { content:'\f004'; }
.sg-fa[data-sg-icon=music]::before { content:'\f001'; }
.sg-fa[data-sg-icon=sliders]::before { content:'\f1de'; }
.sg-fa[data-sg-icon=headphones]::before { content:'\f025'; }
.sg-fa[data-sg-icon=microphone]::before { content:'\f3c9'; }
.sg-fa[data-sg-icon=wave]::before { content:'\f83e'; }
.sg-fa[data-sg-icon=arrow]::before { content:'\f061'; }
.sg-section-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:20px; }
.sg-eyebrow,.sg-mode-kicker { text-transform:uppercase; letter-spacing:.13em; font-size:9px; font-weight:700; color:var(--musicaia-muted); }
.sg-section-heading h2 { font:700 29px/1.25 var(--v28-display); margin:8px 0 0; letter-spacing:-.04em; }
.sg-section-heading h2>span:last-child { color:#d888e6; }
.sg-section-heading>p { font-size:11px; line-height:1.7; text-align:right; color:var(--musicaia-muted); margin:0; }
.sg-mode-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.sg-mode { display:grid; grid-template-columns:44px minmax(0,1fr) auto; grid-template-rows:auto auto 1fr auto; column-gap:16px; min-height:166px; padding:20px; border:1px solid color-mix(in srgb,var(--mode) 24%,#38313e); border-radius:18px; background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--mode) 12%,transparent),transparent 72%),#1d1b24; text-align:left; color:#fafafa; transition:border-color .2s; }
.sg-mode:not(:disabled):hover { border-color:var(--mode); }
.sg-root .sg-mode:disabled { opacity:1; cursor:not-allowed; }
.sg-mode:focus-visible,.sg-root .sg-button:focus-visible { outline:2px solid var(--v28-focus); outline-offset:3px; }
.sg-mode-icon { display:grid; place-items:center; grid-column:1; grid-row:1/3; height:44px; border-radius:13px; border:1px solid color-mix(in srgb,var(--mode) 50%,transparent); background:color-mix(in srgb,var(--mode) 17%,transparent); color:color-mix(in srgb,var(--mode) 50%,white); font-size:19px; }
.sg-mode-copy { display:contents; }
.sg-mode-kicker { grid-column:2; grid-row:1; color:color-mix(in srgb,var(--mode) 65%,white); font-weight:500; }
.sg-mode-copy strong { grid-column:2/4; grid-row:2; font:700 21px/1.3 var(--v28-display); margin:3px 0 0; }
.sg-mode-copy>span:not(.sg-mode-kicker,.sg-mode-footer) { grid-column:2/4; grid-row:3; font-size:12px; line-height:1.6; color:#bcb6c9; margin:10px 0 13px; }
.sg-mode-footer { grid-column:2/4; grid-row:4; display:flex; gap:8px; justify-content:space-between; align-items:center; padding-top:10px; border-top:1px solid var(--musicaia-border); font-size:11px; font-weight:650; color:color-mix(in srgb,var(--mode) 60%,white); }
.sg-mode-footer .sg-fa { display:grid; place-items:center; width:24px; height:24px; flex:0 0 24px; border-radius:8px; background:color-mix(in srgb,var(--mode) 12%,transparent); }
.sg-mode-pending { font-size:9px; font-weight:400; color:var(--musicaia-muted); margin-left:auto; }
.sg-mode-count { grid-column:3; grid-row:1; justify-self:end; align-self:start; padding:3px 7px; background:#ffffff06; border:1px solid var(--musicaia-border); border-radius:20px; font-size:9px; line-height:1.2; color:#bcb6c9; }
.sg-side-note { position:absolute; display:none; gap:10px; width:180px; color:#a6a3af; font:23px/1.13 SGNotes,cursive; pointer-events:none; }
.sg-side-note .sg-fa { margin-top:5px; font-size:12px; opacity:.55; }
.sg-side-note-left { left:-206px; top:470px; transform:rotate(-2deg); }
.sg-side-note-right { right:-206px; top:580px; transform:rotate(2deg); }
@container sg-page (min-width:1580px) { .sg-side-note { display:flex; } }
@container sg-page (max-width:1000px) { .sg-screen { padding:32px; } .sg-welcome { grid-template-columns:minmax(0,1fr) 220px; padding:24px; gap:16px; } .sg-hero-art { transform:scale(.85); transform-origin:right; width:220px; } .sg-welcome h2 { font-size:36px; } }
@container sg-page (max-width:760px) { .sg-screen,.sg-root[data-stage=idea] .sg-screen,.sg-root[data-stage=review] .sg-screen,.sg-root[data-stage=legacy] .sg-screen { padding:24px 20px 60px; } .sg-header { padding:17px 20px; flex-wrap:wrap; } .sg-header h1 { font-size:22px; } .sg-mode-grid { grid-template-columns:1fr; } .sg-welcome { grid-template-columns:1fr; gap:12px; } .sg-welcome h2 { font-size:32px; } .sg-hero-art { justify-self:center; transform:scale(.85); transform-origin:center; width:260px; height:180px; } .sg-section-heading>p { display:none; } .sg-mode { padding:18px; } }
.sg-stepper-card { display:flex; align-items:center; gap:20px; min-width:0; padding:10px 20px; margin:0 0 24px; border:1px solid #ffffff1a; border-radius:16px; background:#21212b; }
.sg-step-count { flex-shrink:0; padding:5px 10px; border:1px solid #ffffff1a; border-radius:8px; background:#ffffff0a; color:#d1d5db; font-size:11px; line-height:1.4; font-weight:600; white-space:nowrap; }
.sg-stepper { display:flex; flex:1; align-items:center; justify-content:space-between; gap:8px; min-width:0; list-style:none; padding:3px 0 3px 20px; margin:0; border-left:1px solid #ffffff1a; overflow-x:auto; scrollbar-width:thin; }
.sg-stepper li { flex-shrink:0; }
.sg-step-link { display:flex; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:6px 10px; border:1px solid transparent; border-radius:12px; background:transparent; color:#9ca3af; white-space:nowrap; cursor:pointer; }
.sg-step-link:hover { background:#ffffff0a; color:#e5e7eb; }
.sg-step-number { display:grid; place-items:center; flex-shrink:0; width:23px; height:23px; border:1px solid #ffffff26; border-radius:50%; background:#ffffff08; font-size:11px; font-weight:600; }
.sg-step-label { font-size:12px; line-height:1.4; font-weight:500; }
.sg-step-link[aria-current="step"] { color:white; background:#ff006e1f; }
.sg-step-link[aria-current="step"] .sg-step-number { background:linear-gradient(135deg,#ff0080,#9630e4); border-color:transparent; color:white; }
#sg-idea-title:focus { outline:none; }
.sg-panel { padding:28px; border:1px solid var(--musicaia-border); border-radius:24px; background:var(--v28-panel); box-shadow:var(--v28-shadow); }
.sg-panel-heading { display:flex; align-items:center; gap:13px; margin-bottom:24px; }
.sg-panel-heading>svg,.sg-panel-heading>.sg-fa { flex:0 0 24px; color:#ef75b0; }
.sg-panel-heading h2 { font:700 23px/1.3 var(--v28-display); margin:0 0 4px; }
.sg-panel-heading>.sg-button { margin-left:auto; }
.sg-editor-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(255px,1fr); gap:28px; align-items:start; }
.sg-fields { display:grid; gap:22px; min-width:0; }
.sg-field { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; min-width:0; font-size:13px; font-weight:600; }
.sg-field>small,.sg-root h3 small { color:var(--musicaia-muted); font-weight:400; font-size:11px; }
.sg-root input:not([type="radio"],[type="checkbox"]),.sg-root textarea,.sg-root select { width:100%; min-width:0; border:1px solid var(--musicaia-border); border-radius:12px; padding:12px 14px; color:var(--musicaia-text); background:var(--v28-field); font:400 13px/1.6 Inter,system-ui,sans-serif; }
.sg-root textarea { resize:vertical; }
.sg-field>input,.sg-field>textarea,.sg-field>select { flex:1 0 100%; }
.sg-root .sg-counter { margin-left:auto; }
.sg-quick-ideas { display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-size:10px; color:var(--musicaia-muted); margin-top:-12px; }
.sg-quick-ideas button { padding:5px 8px; border:1px solid var(--musicaia-border); border-radius:8px; background:#ffffff06; }
.sg-inner-panel { border:1px solid var(--musicaia-border); border-radius:16px; padding:18px; background:#ffffff02; }
.sg-root h3 { font-size:13px; margin:0 0 12px; font-weight:650; }
.sg-chips { display:flex; gap:7px; align-items:center; flex-wrap:wrap; margin-top:12px; }
.sg-chip { display:flex; align-items:center; gap:8px; background:#ff006e13; border:1px solid #ff006e35; padding:6px 9px; border-radius:9px; font-size:11px; }
.sg-chip button { display:grid; place-items:center; width:22px; height:22px; border-radius:6px; }
.sg-chip button:hover { background:#ffffff15; }
.sg-hint { color:var(--musicaia-muted); font-size:11px; line-height:1.65; margin:10px 0 0; }
.sg-settings { display:grid; gap:22px; padding:22px; border:1px solid var(--musicaia-border); border-radius:20px; background:#ffffff02; }
.sg-instrumental { display:flex; justify-content:space-between; align-items:center; gap:14px; }
.sg-instrumental strong { font-size:13px; }
.sg-instrumental small { display:block; font-size:10px; color:var(--musicaia-muted); margin-top:4px; }
.sg-instrumental input { appearance:none; position:relative; width:38px; height:22px; flex:0 0 38px; border-radius:20px; border:1px solid var(--musicaia-border); background:var(--musicaia-hover); cursor:pointer; }
.sg-instrumental input::before { content:""; display:block; position:absolute; width:16px; height:16px; top:2px; left:2px; border-radius:50%; background:#fff; transition:transform .15s; }
.sg-instrumental input:checked { background:#f50079; }
.sg-instrumental input:checked::before { transform:translateX(16px); }
#sg-voice-note:empty { display:none; }
.sg-variants { border:0; padding:0; display:flex; gap:8px; }
.sg-variants legend { margin-bottom:12px; font-size:12px; font-weight:600; }
.sg-variants label { flex:1; cursor:pointer; }
.sg-variants input { position:absolute; opacity:0; width:1px; height:1px; }
.sg-variants label>span { display:block; padding:10px 8px; font-size:11px; border:1px solid var(--musicaia-border); border-radius:10px; text-align:center; }
.sg-variants input:checked+span { background:#ff006e20; border-color:#ff006e88; color:var(--musicaia-text); }
.sg-variants input:focus-visible+span { outline:2px solid var(--v28-focus); outline-offset:3px; }
.sg-cost { border-top:1px solid var(--musicaia-border); padding-top:18px; display:grid; gap:10px; font-size:11px; color:var(--musicaia-muted); }
.sg-cost>span { display:flex; gap:12px; justify-content:space-between; }
.sg-cost strong { color:var(--musicaia-text); white-space:nowrap; }
.sg-cost p { font-size:10px; line-height:1.5; margin:0; }
.sg-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 14px; min-height:40px; border-radius:11px; font:600 11px/1.5 Inter,system-ui,sans-serif; border:1px solid var(--musicaia-border); }
.sg-button svg { width:15px; height:15px; flex-shrink:0; }
.sg-primary { background:linear-gradient(105deg,#f50079,#9630d5); color:#fff; border-color:#ff2d852e; }
.sg-secondary { background:#ffffff05; color:var(--musicaia-text); }
.sg-button:not(:disabled):hover { filter:brightness(1.15); }
.sg-root button:disabled { opacity:.6; cursor:not-allowed; }

.sg-error { padding:13px 16px; border:1px solid #f8717160; background:#f8717110; border-radius:12px; color:#ffacac; font-size:13px; margin-bottom:18px; }
.sg-status { padding:13px 16px; border:1px solid #31e1e740; background:#31e1e708; border-radius:12px; color:var(--musicaia-text); font-size:13px; margin-bottom:18px; }
.sg-summary { padding:22px; border:1px solid var(--musicaia-border); background:#ffffff03; border-radius:18px; margin-bottom:26px; }
.sg-summary .sg-chips { margin:0 0 12px; font-size:10px; color:var(--musicaia-muted); }
.sg-ready { background:#34d39914; color:#73dcb7; border:1px solid #34d39944; padding:4px 7px; border-radius:6px; }
.sg-review-title { display:flex; align-items:center; gap:8px; }
.sg-root .sg-review-title input { border-color:transparent; background:transparent; padding:4px 0; font:700 25px/1.3 var(--v28-display); }
.sg-review-title svg { width:16px; height:16px; color:var(--musicaia-muted); }
#sg-review-description { font-size:13px; line-height:1.7; padding:14px; border:1px solid var(--musicaia-border); border-radius:12px; background:var(--v28-field); margin:14px 0; overflow-wrap:anywhere; white-space:pre-wrap; }
.sg-summary-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.sg-summary-grid>div { border:1px solid var(--musicaia-border); border-radius:12px; padding:12px; background:#0000000c; }
.sg-summary-grid>div>span { display:block; color:var(--musicaia-muted); font-size:10px; margin-bottom:5px; }
.sg-summary-grid strong { font-size:12px; overflow-wrap:anywhere; }
.sg-review-toolbar,.sg-lyrics-meta { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:14px; }
.sg-review-toolbar h3 { margin:0; }
.sg-root #sg-lyrics { line-height:1.9; font-size:14px; }
.sg-colored-preview { padding:18px; min-height:320px; border:1px solid var(--musicaia-border); border-radius:12px; background:var(--v28-field); font-size:14px; line-height:1.9; white-space:pre-wrap; overflow-wrap:anywhere; }
.sg-lyric-tag { color:#ef75b0; font-weight:650; margin-top:10px; }
.sg-review-toolbar>.sg-proposal-actions { margin-top:0; }
.sg-lyrics-meta { font-size:10px; color:var(--musicaia-muted); margin-top:8px; }
.sg-proposal { border:1px solid #a378e57a; border-radius:16px; background:#8338ec0a; padding:20px; margin-bottom:22px; }
.sg-proposal p { font-size:12px; line-height:1.6; color:var(--musicaia-muted); margin-bottom:12px; }
.sg-proposal-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.sg-root textarea:read-only { opacity:.55; }
.sg-review-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:26px; padding-top:22px; border-top:1px solid var(--musicaia-border); }
.sg-review-footer>div { text-align:right; }
.sg-review-footer p { font-size:12px; color:var(--musicaia-muted); margin:0 0 10px; }
.sg-review-footer small { display:block; color:var(--musicaia-muted); font-size:10px; margin-top:8px; }
#sg-review [data-sg-action="generate"] { height:48px; min-height:48px; padding:0 36px; gap:12px; border:0; border-radius:12px; font:700 16px/24px Inter,system-ui,sans-serif; background:linear-gradient(135deg,#ff006e,#8338ec); color:#fff; box-shadow:0 20px 25px -5px #ff006e4d,0 8px 10px -6px #ff006e4d; position:relative; overflow:hidden; transition:all .25s; }
#sg-review [data-sg-action="generate"] .sg-fa::before { content:'\e2ca'; }
#sg-review [data-sg-action="generate"]:hover:not(:disabled) { filter:none; transform:translateY(-1px); box-shadow:0 10px 25px -8px #ff006e99; }
@media(max-width:639px) { #sg-review [data-sg-action="generate"] { font-size:14px; } }
#sg-audio-host>div>label:first-child { display:none; }
#sg-audio-host>div { padding-bottom:0; border:0; }
#sg-audio-host p { white-space:pre-line; }
#sg-audio-host .js-audio-upload-preview { margin-top:12px; }
#sg-legacy #tab-simple { display:none; }
.sg-sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:1100px) { .sg-editor-grid { grid-template-columns:minmax(0,1.3fr) minmax(230px,1fr); gap:20px; } }
@media(max-width:760px) { .sg-mode-grid,.sg-editor-grid { grid-template-columns:1fr; } .sg-panel { padding:20px; } .sg-header h1 { font-size:22px; } .sg-section-heading>p { display:none; } .sg-panel-heading { flex-wrap:wrap; } .sg-panel-heading>.sg-button { margin-left:37px; } .sg-summary { padding:16px; } .sg-review-footer { align-items:stretch; flex-direction:column-reverse; } .sg-review-footer>div { text-align:left; } .sg-review-footer .sg-button { width:100%; } .sg-button,.sg-quick-ideas button { min-height:44px; } }
@media(max-width:440px) { .sg-panel { padding:16px; border-radius:20px; } .sg-mode { padding:19px 15px; } .sg-summary-grid { grid-template-columns:1fr; } .sg-review-toolbar { flex-wrap:wrap; } .sg-section-heading h2 { font-size:26px; } .sg-stepper { gap:16px; font-size:11px; } }

/* Sencilla, step 1: the reference composition, scoped to this editor. */
.sg-fa[data-sg-icon=info]::before { content:'\f05a'; }
.sg-fa[data-sg-icon=user]::before { content:'\f4fc'; }
.sg-fa[data-sg-icon=cloud]::before { content:'\f0ee'; }
.sg-fa[data-sg-icon=chevron]::before { content:'\f078'; }
.sg-fa[data-sg-icon=wand]::before { content:'\e2ca'; }
.sg-fa[data-sg-icon=bulb]::before { content:'\f0eb'; }
.sg-fa[data-sg-icon=party]::before { content:'\f79f'; }
.sg-fa[data-sg-icon=water]::before { content:'\f773'; }
.sg-fa[data-sg-icon=bolt]::before { content:'\f0e7'; }
.sg-root[data-stage=idea] .sg-screen { max-width:1280px; padding:28px 56px 80px; }
#sg-idea { position:relative; padding:32px; background:#21212b; border:1px solid #ffffff14; border-radius:24px; box-shadow:0 20px 50px #00000038; }
#sg-idea .sg-idea-heading { margin-bottom:24px; }
#sg-idea .sg-idea-heading h2 { display:flex; align-items:center; gap:10px; margin:0; font:700 24px/1.25 var(--v28-display); letter-spacing:-.02em; color:#fff; }
#sg-idea .sg-idea-heading h2>.sg-fa { font-size:18px; color:#ff0080; }
#sg-idea .sg-idea-heading p { font-size:14px; line-height:1.5; color:#9ca3af; margin:4px 0 0; }
#sg-idea .sg-editor-grid { grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:32px; }
#sg-idea .sg-idea-fields { display:grid; gap:20px; align-content:start; min-width:0; }
#sg-idea .sg-input-block { min-width:0; }
#sg-idea .sg-label-row { position:relative; display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; margin-bottom:8px; font-size:14px; font-weight:600; line-height:20px; color:#f9fafb; }
#sg-idea .sg-label-row label { min-width:0; }
#sg-idea .sg-info { display:inline-grid; place-items:center; flex:0 0 12px; width:12px; height:16px; padding:0; border:0; background:none; color:#9ca3af; font-size:11px; cursor:help; }
#sg-idea .sg-info:focus-visible { outline:2px solid var(--v28-focus); outline-offset:4px; border-radius:4px; }
#sg-idea .sg-tip { display:none; position:absolute; z-index:70; top:calc(100% + 8px); left:0; width:min(320px,100%); padding:11px 13px; border:1px solid #ffffff26; border-radius:11px; background:#17171f; box-shadow:0 8px 24px #0006; font:400 12px/1.6 Inter,system-ui,sans-serif; color:#e5e7eb; text-transform:none; letter-spacing:0; pointer-events:none; }
#sg-idea .sg-info:hover + .sg-tip,#sg-idea .sg-info:focus-visible + .sg-tip,#sg-idea .sg-info[aria-expanded=true] + .sg-tip { display:block; }
#sg-idea .sg-clear-field { position:relative; }
#sg-idea input:not([type=radio],[type=checkbox]),#sg-idea textarea,#sg-idea select { background:rgba(24,24,31,.85); border:1px solid #ffffff1f; font:400 13px/1.6 Inter,system-ui,sans-serif; color:#e5e7eb; border-radius:12px; }
#sg-idea input::placeholder,#sg-idea textarea::placeholder { color:#9ca3af; opacity:1; }
#sg-idea #sg-title { height:48px; padding:0 48px 0 16px; font-weight:600; }
#sg-idea #sg-description { display:block; height:118px; min-height:118px; padding:16px 48px 20px 16px; resize:none; }
#sg-idea .sg-clear { position:absolute; top:10px; right:10px; display:grid; place-items:center; width:28px; height:28px; padding:0; border:0; border-radius:8px; background:#ffffff08; color:#9ca3af; font-size:20px; font-weight:400; line-height:1; }
#sg-idea .sg-clear:hover { background:#ffffff14; color:#fff; }
#sg-idea .sg-counter { position:absolute; bottom:5px; right:14px; font-size:9px; font-weight:400; color:#9ca3af; opacity:0; pointer-events:none; }
#sg-idea .sg-clear-field:focus-within .sg-counter { opacity:1; }
#sg-idea .sg-quick-ideas { margin:10px 0 0; padding:3px 0; gap:5px; flex-wrap:nowrap; max-width:100%; overflow-x:auto; scrollbar-width:thin; color:#d1d5db; }
#sg-idea .sg-quick-ideas>* { flex-shrink:0; white-space:nowrap; }
#sg-idea .sg-quick-ideas>span { display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:500; }
#sg-idea .sg-quick-ideas button { display:inline-flex; align-items:center; gap:4px; min-height:26px; padding:5px 7px; border:1px solid #ffffff26; border-radius:8px; background:#ffffff1a; color:#e5e7eb; font-size:10.5px; line-height:1.25; }
#sg-idea .sg-quick-ideas .sg-fa { font-size:10px; color:#d1d5db; }
#sg-idea .sg-settings { display:grid; gap:24px; padding:28px; border:1px solid #ffffff16; border-radius:24px; background:linear-gradient(145deg,#ffffff0b,#ffffff04); box-shadow:none; }
#sg-idea .sg-instrumental { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px; border:1px solid #ffffff1a; border-radius:16px; background:#00000040; }
#sg-idea .sg-instrumental>div { flex:1; min-width:0; }
#sg-idea .sg-instrumental .sg-label-row { margin:0 0 4px; }
#sg-idea .sg-instrumental p { margin:0; color:#9ca3af; font-size:12px; line-height:16px; }
#sg-idea .sg-instrumental input { width:44px; height:24px; flex:0 0 44px; background:#ffffff26; border:0; }
#sg-idea .sg-instrumental input::before { width:20px; height:20px; top:2px; left:2px; }
#sg-idea .sg-instrumental input:checked { background:#ff0080; }
#sg-idea .sg-instrumental input:checked::before { transform:translateX(20px); }
#sg-idea .sg-voice-fields { display:grid; gap:20px; }
#sg-idea .sg-voice-label { font-size:12px; line-height:16px; letter-spacing:.025em; text-transform:uppercase; color:#d1d5db; margin-bottom:10px; }
#sg-idea .sg-voice-label>.sg-fa { color:#9ca3af; font-size:12px; }
#sg-idea .sg-voice-label small { font-size:12px; font-weight:400; text-transform:none; color:#9ca3af; }
#sg-idea .sg-select { position:relative; }
#sg-idea .sg-select select { height:44px; appearance:none; padding:0 38px 0 16px; font-size:14px; font-weight:500; background:#ffffff04; }
#sg-idea .sg-select>.sg-fa { position:absolute; top:50%; transform:translateY(-50%); right:16px; color:#9ca3af; font-size:10px; pointer-events:none; }
#sg-idea #sg-audio-host>div { padding:0; border:0; margin:0; }
#sg-idea #sg-audio-host>div>div { margin:0; gap:8px; }
#sg-idea #sg-audio-host>div>p { display:none; }
#sg-idea #sg-audio-host .js-audio-upload-btn,#sg-idea #sg-audio-host .js-audio-record-btn { flex:1 1 0; justify-content:center; height:44px; min-width:0; gap:7px; padding:0 10px; margin:0; border:1px solid #ffffff26; border-radius:12px; background:#ffffff1a; }
#sg-idea #sg-audio-host .js-audio-record-btn { background:linear-gradient(90deg,#ff008040,#8338ec40); border-color:#ff008040; }
#sg-idea #sg-audio-host .js-audio-upload-btn>span,#sg-idea #sg-audio-host .js-audio-record-btn>span { font-size:11px; font-weight:600; text-transform:none; letter-spacing:0; white-space:nowrap; }
#sg-idea #sg-audio-host .js-audio-upload-btn>.sg-fa,#sg-idea #sg-audio-host .js-audio-record-btn>.sg-fa { color:#ff0080; font-size:14px; }
#sg-idea .sg-effects { padding-top:16px; border-top:1px solid #ffffff1a; }
#sg-idea .sg-effects>summary { display:flex; align-items:center; gap:8px; min-height:38px; list-style:none; font-size:12px; font-weight:600; color:#d1d5db; cursor:pointer; }
#sg-idea summary::-webkit-details-marker { display:none; }
#sg-idea .sg-effects>summary>.sg-fa:first-child { color:#ff0080; }
#sg-idea summary>.sg-fa:last-child { margin-left:auto; font-size:10px; transition:transform .15s; }
#sg-idea details[open]>summary>.sg-fa:last-child { transform:rotate(180deg); }
#sg-idea .sg-effects small { font-size:12px; font-weight:400; color:#9ca3af; }
#sg-idea .sg-effects small { text-transform:lowercase; }
#sg-idea .sg-effect-options { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
#sg-idea .sg-effect { display:inline-flex; gap:7px; align-items:center; min-height:32px; border:1px solid #ffffff1a; border-radius:9px; padding:6px 8px; background:#ffffff06; font-size:11px; font-weight:400; }
#sg-idea .sg-effect[aria-pressed=true] { border-color:#ff008080; background:#ff008020; color:#f9d0e4; }
#sg-idea .sg-variants-box { border-top:1px solid #ffffff1a; padding-top:28px; }
#sg-idea .sg-variants { display:block; padding:0; margin:0; min-width:0; }
#sg-idea .sg-variants legend { width:100%; margin:0 0 14px; padding:0; font-size:11px; font-weight:600; letter-spacing:.025em; text-transform:uppercase; color:#d1d5db; }
#sg-idea .sg-variants legend .sg-label-row { margin:0; font-size:inherit; font-weight:inherit; line-height:16px; color:inherit; }
#sg-idea .sg-variant-segments { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:6px; border:1px solid #ffffff1a; border-radius:16px; background:#0006; }
#sg-idea .sg-variants label { display:block; margin:0; min-width:0; }
#sg-idea .sg-variants label>span { display:grid; place-items:center; min-height:44px; padding:8px; border:0; border-radius:12px; background:none; color:#9ca3af; font-size:14px; font-weight:600; }
#sg-idea .sg-variants input:checked+span { background:linear-gradient(90deg,#ff0080,#9630e4); color:white; box-shadow:0 3px 9px #ff008026; }
#sg-idea .sg-instrumental-off { opacity:.4; }
#sg-idea .sg-idea-footer { display:flex; align-items:end; justify-content:flex-end; gap:28px; margin-top:32px; padding-top:24px; border-top:1px solid #ffffff26; }
#sg-idea .sg-idea-footer>.sg-primary { flex-shrink:0; min-height:48px; padding:0 32px; border-radius:12px; font-size:16px; font-weight:600; box-shadow:0 5px 14px #ff008026; background:linear-gradient(90deg,#ff0080,#9630e4); }
#sg-idea .sg-idea-note { left:-206px; top:200px; }
@container sg-page (max-width:1100px) { .sg-root[data-stage=idea] .sg-screen { padding:32px 32px 80px; } #sg-idea { padding:24px; } #sg-idea .sg-editor-grid { gap:24px; } #sg-idea .sg-settings { padding:22px; } }
@container sg-page (max-width:850px) { #sg-idea .sg-editor-grid { grid-template-columns:1fr; } #sg-idea .sg-idea-footer { align-items:stretch; flex-direction:column; gap:20px; } #sg-idea .sg-idea-footer>.sg-primary { width:100%; } }
@container sg-page (max-width:600px) { .sg-root[data-stage=idea] .sg-screen { padding:24px 16px 60px; } #sg-idea { padding:20px; } #sg-idea .sg-settings { padding:20px; } #sg-idea .sg-quick-ideas button { min-height:36px; } #sg-idea .sg-idea-heading h2 { font-size:23px; } #sg-idea .sg-effects .sg-effect { min-height:40px; } #sg-idea .sg-idea-footer>.sg-primary { font-size:13px; padding:12px; } }
@container sg-page (max-width:600px) { #sg-idea #sg-audio-host .js-audio-upload-btn>span,#sg-idea #sg-audio-host .js-audio-record-btn>span { white-space:normal; min-width:0; line-height:1.25; text-align:center; } }
.sg-fa[data-sg-icon=arrow-left]::before { content:'\f060'; }
.sg-fa[data-sg-icon=undo]::before { content:'\f0e2'; }
.sg-fa[data-sg-icon=redo]::before { content:'\f01e'; }
.sg-fa[data-sg-icon=history]::before { content:'\f1da'; }
.sg-fa[data-sg-icon=save]::before { content:'\f0c7'; }
.sg-fa[data-sg-icon=stop]::before { content:'\f04d'; }
.sg-fa[data-sg-icon=folder]::before { content:'\f07c'; }
.sg-fa[data-sg-icon=pencil]::before { content:'\f303'; }
.sg-fa[data-sg-icon=eye]::before { content:'\f06e'; }
.sg-workbench { display:none!important; }
.sg-toolbar { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:7px; min-height:62px; padding:9px 30px; max-width:1800px; margin:auto; }
.sg-toolbar button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:9px 12px; border:1px solid #ffffff0d; border-radius:11px; background:#ffffff02; color:#bcb6c9; font-size:10px; font-weight:600; white-space:nowrap; cursor:pointer; }
.sg-toolbar button:hover { border-color:#d85dbc65; color:#eee6f1; background:#ffffff07; }
.sg-toolbar .sg-tool-icon { width:36px; padding:9px; }
.sg-toolbar button:disabled { opacity:.3; cursor:default; }
.sg-toolbar .sg-save-project,.sg-toolbar button[aria-expanded=true] { color:#dec2e1; background:#3c224080; border-color:#d85dbc45; }
.sg-tool-divider { width:1px; height:25px; margin:0 2px; background:#ffffff0b; }
.sg-history-panel { max-width:1280px; margin:auto; padding:12px 30px 20px; max-height:50vh; overflow-y:auto; }
.sg-history-intro { display:flex; gap:12px; justify-content:space-between; align-items:center; margin-bottom:12px; font-size:10px; color:#b6b1c3; }
.sg-history-intro strong { font-size:12px; color:white; }
.sg-history-list { display:flex; gap:8px; overflow-x:auto; padding:4px 0; }
.sg-history-list button { flex-shrink:0; min-width:135px; padding:10px 13px; border:1px solid #ffffff15; border-radius:10px; background:#22212c; color:#c9c3d5; text-align:left; font-size:10px; cursor:pointer; }
.sg-history-list strong { display:block; margin-bottom:4px; font-size:10px; color:#ece6f1; }
.sg-history-list button[aria-current=true] { background:#3c2240; border-color:#d85dbc65; }
.sg-history-list button:disabled { opacity:.5; cursor:default; }
.sg-history-list small { color:#a6a0b7; }
.sg-project-help { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; max-width:1280px; margin:auto; padding:16px 30px 24px; max-height:50vh; overflow-y:auto; }
.sg-project-help>div { display:flex; align-items:flex-start; gap:12px; }
.sg-project-help>div>span { color:#d99ad6; font-size:11px; font-weight:700; }
.sg-project-help strong { color:#eee6f1; font-size:12px; }
.sg-project-help p { margin:6px 0 0; color:#b6b1c3; font-size:11px; line-height:1.7; }
.sg-project-open { margin-top:20px; padding-top:17px; border-top:1px solid #ffffff0c; }
.sg-project-open button { display:flex; align-items:center; gap:8px; min-height:36px; border:0; background:none; color:#d3bfdc; font-size:10px; cursor:pointer; }
#sg-review .sg-summary-grid { align-items:start; }
.sg-review-style-picker { margin-top:12px; }
.sg-review-style-picker>summary { cursor:pointer; color:#d5b3d8; font-size:11px; }
.sg-style-picker-heading { display:flex; justify-content:space-between; gap:10px; margin:12px 0 10px; font-size:10px; color:#aeb0bf; }
.sg-style-controls { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.sg-style-controls select { flex:1; min-width:0; }
.sg-style-controls .sg-button { flex-shrink:0; padding:10px 12px; font-size:11px; }
.sg-review-style-picker .sg-hint { margin-top:8px; }
#sg-review .sg-review-toolbar { padding:16px; border:1px solid #ffffff1a; border-radius:16px; background:#ffffff04; }
#sg-review .sg-review-toolbar .sg-proposal-actions { display:flex; flex:1; align-items:center; flex-wrap:wrap; gap:8px; margin:0; }
#sg-review [data-sg-action="regenerate"] { margin-right:auto; background:linear-gradient(90deg,#ff0080,#9630e4); border-color:transparent; color:white; }
.sg-lyrics-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin:18px 0 12px; }
.sg-lyrics-label { display:flex; align-items:center; position:relative; gap:8px; min-width:0; font-size:13px; line-height:1.5; }
.sg-lyrics-heading #sg-lyrics-words { flex-shrink:0; font-size:12px; color:#c0c2ce; }
.sg-lyrics-heading .sg-info { display:grid; place-items:center; flex-shrink:0; width:14px; height:14px; padding:0; border:0; background:none; color:#9ca3af; font-size:11px; cursor:pointer; }
.sg-lyrics-heading .sg-tip { display:none; position:absolute; z-index:40; left:0; top:calc(100% + 8px); width:min(360px,75vw); padding:12px; border:1px solid #ffffff24; border-radius:10px; background:#15151d; color:#d1d5db; font-size:11px; line-height:1.6; box-shadow:0 8px 24px #0006; }
.sg-lyrics-heading .sg-info[aria-expanded="true"]+.sg-tip,.sg-lyrics-heading .sg-info:hover+.sg-tip,.sg-lyrics-heading .sg-info:focus-visible+.sg-tip { display:block; }
.sg-lyrics-wrap { position:relative; }
.sg-rich-lyrics,#sg-review .sg-lyrics-wrap .sg-colored-preview { height:240px; min-height:220px; max-height:70vh; overflow:auto; resize:vertical; padding:20px 54px 20px 26px; border:1px solid #ffffff29; border-radius:16px; background:#0c0c12; color:#e5e7eb; font-size:14px; line-height:27px; white-space:pre-wrap; overflow-wrap:anywhere; scrollbar-width:thin; scrollbar-color:#ffffff40 transparent; }
#sg-review .sg-lyrics-wrap[data-expanded="true"] :is(.sg-rich-lyrics,.sg-colored-preview) {
    height:auto!important; /* Override any height set by the resize handle. */
    min-height:360px;
    max-height:none;
    overflow:visible;
    resize:none;
}
.sg-rich-lyrics:focus { outline:none; border-color:#ff008066; box-shadow:0 0 0 1px #ff008024; }
.sg-rich-line { min-height:27px; white-space:pre-wrap; }
.sg-rich-readonly { opacity:.5; }
.sg-lyric-chip { display:inline-flex; align-items:center; vertical-align:middle; gap:6px; max-width:100%; margin:4px 0; padding:3px 6px 3px 9px; border:1px solid #ff008066; border-radius:7px; background:#ff00801c; color:#f1d0e3; font-size:12px; line-height:22px; }
.sg-lyric-chip-label { min-width:0; white-space:pre-wrap; overflow-wrap:anywhere; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.sg-tag-action { display:grid; place-items:center; flex-shrink:0; width:26px; height:26px; padding:0; border:1px solid #ffffff0d; border-radius:6px; background:#ffffff06; color:#f0c9e4; font-size:12px; line-height:1; cursor:pointer; user-select:none; }
.sg-tag-action:hover { background:#ff008030; }
.sg-tag-action:disabled { opacity:.35; cursor:default; }
.sg-tag-edit-input { min-width:90px!important; width:300px!important; max-width:55vw; padding:3px 7px!important; min-height:28px; border:1px solid #e14bad!important; border-radius:5px!important; background:#211326!important; color:white; font-size:12px!important; }
.sg-lyrics-clear { position:absolute; z-index:2; top:20px; right:20px; display:grid; place-items:center; width:28px; height:28px; padding:0; border:0; border-radius:8px; background:#ffffff0a; color:#9ca3af; font-size:18px; cursor:pointer; }
.sg-lyrics-clear:hover { background:#ffffff17; color:white; }
.sg-lyrics-clear:disabled { opacity:.35; cursor:default; }
@container sg-page (max-width:600px) {
 .sg-stepper-card { padding:8px 12px; gap:10px; margin-bottom:20px; }.sg-step-count { padding:5px 7px; font-size:10px; }.sg-stepper { gap:4px; padding-left:10px; }.sg-step-link { padding:5px 8px; border-radius:10px; }.sg-step-label { font-size:11px; }
 .sg-header { padding:12px 16px; gap:12px; flex-wrap:nowrap; }.sg-header h1 { font-size:22px; }.sg-header-title { gap:8px; }.sg-mode-badge { padding:3px 8px; font-size:10px; }
 .sg-header p { font-size:13px; line-height:1.6; }
 .sg-toolbar { gap:6px; padding:8px 15px; }.sg-toolbar button { min-height:42px; padding:8px; }.sg-toolbar button:not(.sg-save-project)>span { display:none; }.sg-toolbar .sg-tool-icon { width:34px; }.sg-tool-divider { display:none; }
 .sg-history-panel { padding:12px 18px 18px; }.sg-history-intro { flex-direction:column; align-items:flex-start; gap:5px; }.sg-project-help { grid-template-columns:1fr; gap:16px; padding:16px 18px; }
 .sg-style-controls { flex-wrap:wrap; }.sg-style-controls .sg-button { width:100%; }.sg-rich-lyrics,#sg-review .sg-lyrics-wrap .sg-colored-preview { padding-left:16px; padding-right:44px; }.sg-lyrics-clear { right:10px; }.sg-tag-action { width:28px; height:28px; }.sg-lyrics-label { font-size:12px; }
}

/* Shared voice and variant controls retain their appearance in the other flows. */
:is(#sg-personal,#sg-professional) .sg-input-block { min-width:0; }
:is(#sg-personal,#sg-professional) .sg-label-row { position:relative; display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; margin-bottom:8px; font-size:14px; font-weight:600; line-height:20px; color:#f9fafb; }
:is(#sg-personal,#sg-professional) .sg-label-row label { min-width:0; }
:is(#sg-personal,#sg-professional) .sg-info { display:inline-grid; place-items:center; flex:0 0 12px; width:12px; height:16px; padding:0; border:0; background:none; color:#9ca3af; font-size:11px; cursor:help; }
:is(#sg-personal,#sg-professional) .sg-info:focus-visible { outline:2px solid var(--v28-focus); outline-offset:4px; border-radius:4px; }
:is(#sg-personal,#sg-professional) .sg-tip { display:none; position:absolute; z-index:70; top:calc(100% + 8px); left:0; width:min(320px,100%); padding:11px 13px; border:1px solid #ffffff26; border-radius:11px; background:#17171f; box-shadow:0 8px 24px #0006; font:400 12px/1.6 Inter,system-ui,sans-serif; color:#e5e7eb; text-transform:none; letter-spacing:0; pointer-events:none; }
:is(#sg-personal,#sg-professional) .sg-info:hover + .sg-tip,:is(#sg-personal,#sg-professional) .sg-info:focus-visible + .sg-tip,:is(#sg-personal,#sg-professional) .sg-info[aria-expanded=true] + .sg-tip { display:block; }
:is(#sg-personal,#sg-professional) .sg-voice-fields { display:grid; gap:20px; }
:is(#sg-personal,#sg-professional) .sg-voice-label { font-size:12px; line-height:16px; letter-spacing:.025em; text-transform:uppercase; color:#d1d5db; margin-bottom:10px; }
:is(#sg-personal,#sg-professional) .sg-voice-label>.sg-fa { color:#9ca3af; font-size:12px; }
:is(#sg-personal,#sg-professional) .sg-voice-label small { font-size:12px; font-weight:400; text-transform:none; color:#9ca3af; }
:is(#sg-personal,#sg-professional) .sg-select { position:relative; }
:is(#sg-personal,#sg-professional) .sg-select select { height:44px; appearance:none; padding:0 38px 0 16px; font-size:14px; font-weight:500; background:#ffffff04; }
:is(#sg-personal,#sg-professional) .sg-select>.sg-fa { position:absolute; top:50%; transform:translateY(-50%); right:16px; color:#9ca3af; font-size:10px; pointer-events:none; }
:is(#sg-personal,#sg-professional) .sg-variants-box { border-top:1px solid #ffffff1a; padding-top:28px; }
:is(#sg-personal,#sg-professional) .sg-variants { display:block; padding:0; margin:0; min-width:0; }
:is(#sg-personal,#sg-professional) .sg-variants legend { width:100%; margin:0 0 14px; padding:0; font-size:11px; font-weight:600; letter-spacing:.025em; text-transform:uppercase; color:#d1d5db; }
:is(#sg-personal,#sg-professional) .sg-variants legend .sg-label-row { margin:0; font-size:inherit; font-weight:inherit; line-height:16px; color:inherit; }
:is(#sg-personal,#sg-professional) .sg-variant-segments { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:6px; border:1px solid #ffffff1a; border-radius:16px; background:#0006; }
:is(#sg-personal,#sg-professional) .sg-variants label { display:block; margin:0; min-width:0; }
:is(#sg-personal,#sg-professional) .sg-variants label>span { display:grid; place-items:center; min-height:44px; padding:8px; border:0; border-radius:12px; background:none; color:#9ca3af; font-size:14px; font-weight:600; }
:is(#sg-personal,#sg-professional) .sg-variants input:checked+span { background:linear-gradient(90deg,#ff0080,#9630e4); color:white; box-shadow:0 3px 9px #ff008026; }

/* The audio card stays compact wherever the shared voice controls are mounted. */
.sg-root :is(#sg-idea,#sg-custom,#sg-personal,#sg-professional) .sg-settings { gap:18px; }
.sg-root .sg-reference-card #sg-audio-host>div { padding:0; margin:0; border:0; }
.sg-root .sg-reference-card #sg-audio-host>div>p { display:none; }
.sg-root .sg-reference-card #sg-audio-host>div>div { gap:8px; margin:0; }
.sg-root .sg-reference-card #sg-audio-host .js-audio-upload-btn,.sg-root .sg-reference-card #sg-audio-host .js-audio-record-btn { flex:1 1 0; display:flex; justify-content:center; align-items:center; min-width:0; min-height:42px; gap:6px; padding:8px 9px; margin:0; border:1px solid #ffffff26; border-radius:12px; background:#ffffff1a; }
.sg-root .sg-reference-card #sg-audio-host .js-audio-record-btn { background:linear-gradient(90deg,#ff008040,#8338ec40); border-color:#ff008040; }
.sg-root .sg-reference-card #sg-audio-host button>span { font-size:10px; font-weight:600; line-height:1.4; text-transform:none; letter-spacing:0; }
.sg-root .sg-reference-card #sg-audio-host button>.sg-fa { font-size:13px; color:#ff0080; }
:is(#sg-personal) .sg-effects { padding-top:16px; border-top:1px solid #ffffff1a; }
:is(#sg-personal) .sg-effects>summary { display:flex; align-items:center; gap:8px; min-height:36px; list-style:none; font-size:12px; font-weight:600; color:#d1d5db; cursor:pointer; }
:is(#sg-personal) .sg-effects>summary::-webkit-details-marker { display:none; }
:is(#sg-personal) .sg-effects>summary>.sg-fa:first-child { color:#ff0080; }
:is(#sg-personal) .sg-effects>summary>.sg-fa:last-child { margin-left:auto; font-size:10px; }
:is(#sg-personal) .sg-effects small { font-size:12px; font-weight:400; color:#9ca3af; }
:is(#sg-personal) .sg-effect-options { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
:is(#sg-personal) .sg-effect { display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:6px 8px; border:1px solid #ffffff1a; border-radius:9px; background:#ffffff06; color:#d1d5db; font-size:11px; }
:is(#sg-personal) .sg-effect[aria-pressed=true] { border-color:#ff008080; background:#ff008020; color:#f9d0e4; }
