:root{color-scheme:dark;--bg:#111321;--panel:#1d1f33;--surface:#262a42;--ink:#f7f7f7;--muted:#b8bac8;--accent:#ed7812;--line:#3c4059;font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.6}[hidden]{display:none!important}a{color:var(--ink);text-underline-offset:5px}a:hover{color:#ffb576}button,textarea,select{font:inherit}button,a,select,textarea{outline-offset:5px}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}header{border-bottom:1px solid var(--line);padding:20px max(24px,calc((100% - 1220px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}header>a:last-child{font-size:13px}.brand{display:flex;gap:18px;align-items:center;text-decoration:none;letter-spacing:.13em;font-size:11px;font-weight:700}.brand img{width:115px;height:44px;object-fit:contain}.brand small{display:block;color:var(--muted);letter-spacing:0;font-size:12px;font-weight:400}main{max-width:1268px;margin:auto;padding:44px 24px 20px}.intro{margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:.14em;color:#ffac62;font-weight:700;margin:0 0 10px}h1{font-size:clamp(28px,4vw,44px);letter-spacing:-.04em;line-height:1.2;margin:0 0 14px}h2{font-size:21px;line-height:1.3;margin:0 0 24px;letter-spacing:-.02em}h3{font-size:15px;margin:16px 0 8px}p{margin:8px 0 16px}.intro>p:last-child,.hint,.footnote{color:var(--muted)}.studio{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:22px;align-items:start}.panel{border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:28px;min-width:0}.composer{border-top:3px solid var(--accent)}label{display:block;font-size:13px;font-weight:600;margin-bottom:9px}textarea,select{width:100%;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);padding:13px}textarea{resize:vertical;min-height:176px;max-height:600px;line-height:1.65}textarea::placeholder{color:#9094ad}textarea:focus,select:focus{border-color:var(--accent)}.prompt-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin:7px 0 12px}.text-button{border:0;background:none;color:#ffb576;padding:4px 0;min-height:32px;text-align:left;font-size:13px}.hint,.footnote{font-size:12px;line-height:1.6}.fields{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px;margin:24px 0}.fields select{font-size:13px;min-width:0}.primary{background:var(--accent);color:#121321;font-weight:750;border:0;border-radius:8px;padding:14px 18px;width:100%;display:flex;justify-content:space-between;gap:12px}.primary:hover:not(:disabled){background:#ffa057}#feedback{font-size:13px;color:#ffc4af;margin-bottom:0}.footnote{border-top:1px solid var(--line);padding-top:18px;margin:22px 0 0}.section-head{display:flex;justify-content:space-between;align-items:start;gap:15px}.section-head h2{margin-bottom:18px}.empty{text-align:center;padding:70px 22px 85px;color:var(--muted)}.empty h3{color:var(--ink);font-size:17px}.empty p{font-size:14px;max-width:320px;margin:10px auto}.wave{font-size:44px;letter-spacing:7px;color:var(--accent);margin-bottom:24px}.notice{padding:14px 18px;border:1px solid var(--line);border-radius:8px;margin:0 0 24px;background:var(--surface);font-size:13px}.notice button{margin-left:14px}.notice a{margin-left:8px}.ready{color:#98d7b0}#connection{display:flex;align-items:center;flex-wrap:wrap;gap:8px}#connection button{margin-left:auto}.state{font-weight:650;margin:5px 0 14px}.steps{padding:0;margin:0 0 16px;list-style:none;display:flex;gap:7px;flex-wrap:wrap}.steps li{font-size:11px;padding:5px 8px;border:1px solid var(--line);border-radius:5px;color:var(--muted)}.steps .done{color:#98d7b0}.steps .active{background:#443126;border-color:var(--accent);color:#ffb576}blockquote{margin:10px 0 16px;padding:14px 17px;background:var(--bg);border-left:3px solid var(--accent);border-radius:0 7px 7px 0;white-space:pre-wrap;font-size:14px;overflow-wrap:anywhere}.track{border-top:1px solid var(--line);padding:15px 0}.track h3{margin:0 0 10px}.track audio{width:100%;height:42px}.downloads{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;margin-top:8px}.history{margin-top:22px}.history-row{width:100%;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);padding:14px 0;text-align:left;display:flex;align-items:center;gap:16px;font-size:13px}.history-row:hover{color:#ffb576}.history-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:500}.history-row span{color:var(--muted);font-size:12px;flex-shrink:0}details{font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px}summary{cursor:pointer}#stems{display:flex;gap:14px;flex-wrap:wrap}footer{display:flex;justify-content:space-between;gap:16px;font-size:11px;color:var(--muted);padding:28px 0 8px}
@media(max-width:820px){.studio{grid-template-columns:1fr}.empty{padding:40px 15px}.panel{padding:22px}main{padding-top:30px}}@media(max-width:480px){header{padding:15px}.brand{gap:10px;font-size:9px}.brand img{width:90px}.brand small{font-size:10px}header>a:last-child{font-size:11px}main{padding:26px 14px 14px}.panel{padding:19px}.fields{grid-template-columns:1fr}.history-row{flex-wrap:wrap;gap:4px 12px}.history-row strong{flex-basis:100%}footer{flex-wrap:wrap}.section-head{flex-wrap:wrap}}

/* TCS uses square edges across the Control Center. */
*{border-radius:0!important}

input[type=search]{width:100%;font:inherit;font-size:13px;padding:11px 13px;border:1px solid var(--line);background:var(--bg);color:var(--ink);outline-offset:4px}input[type=search]:focus{border-color:var(--accent)}

/* Studio production sheet: visible controls, progressive detail and accessible help. */
.music-library{margin-top:16px;padding:16px;border:1px solid var(--line);background:var(--surface)}.music-library label{margin-top:12px}.music-library>label:first-child{margin-top:0}#soundtrack-audio{width:100%;height:40px;margin-top:12px}#soundtrack-file{width:100%;min-width:0;font-size:12px;color:var(--muted)}#soundtrack-file::file-selector-button{background:var(--bg);color:var(--ink);border:1px solid var(--line);padding:10px;margin-right:10px}#music-source{margin-top:0}.section-divider+label{margin-top:16px}
main{max-width:1440px}.studio{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)}
.intro>p:last-child{max-width:680px}.results{position:sticky;top:20px}.composer h2{margin-bottom:20px}
input,button{font:inherit}input[type=number],input[type=text]{width:100%;padding:11px 12px;border:1px solid var(--line);background:var(--bg);color:var(--ink);outline-offset:4px;font-size:13px;min-width:0}
input:focus,textarea:focus,select:focus,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
input:disabled,select:disabled,textarea:disabled{opacity:.65}textarea{min-height:124px}#exact-text{min-height:106px}#prompt{margin-bottom:0}
.label-help{display:flex;gap:10px;align-items:center;margin:19px 0 8px;min-width:0}.label-help label{margin:0;flex:1;min-width:0}
.help{width:24px;height:24px;min-width:24px;flex-shrink:0;border:1px solid #757a95;background:transparent;color:#d8dbe9;font-size:12px;font-weight:700;line-height:1;padding:0}.help:hover,.help[aria-expanded=true]{background:#443126;border-color:var(--accent);color:#ffb576}
#tooltip{position:fixed;z-index:1000;background:#fff4e7;color:#292331;border:1px solid #ed7812;padding:13px 15px;font-size:13px;line-height:1.6;box-shadow:0 8px 26px #0008;pointer-events:none;max-width:calc(100vw - 24px)}
.example-list{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 17px}.example-list button{border:1px solid var(--line);padding:5px 11px;min-height:36px;background:var(--surface)}
#exact-details{margin:0 0 20px;padding:13px 0}details>summary{font-size:13px;color:var(--ink)}details[open]>summary{margin-bottom:12px}
.voice-row{display:flex;align-items:stretch;gap:8px;margin-top:8px}.voice-row select{flex:1;min-width:0;font-size:13px}.voice-row button{flex-shrink:0}#voice-audio{width:100%;height:38px;margin-top:10px}
.secondary{border:1px solid #b56627;background:#382b25;color:#ffc38e;padding:10px 14px;font-size:13px;font-weight:650;min-height:40px}.secondary:hover:not(:disabled){background:#4d3525}
.section-divider{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:18px;margin-top:25px}.section-divider h3{margin:0;font-size:16px}
.fields.equal{grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 0 18px}.fields .label-help{margin-top:5px}.fields.equal>div{min-width:0}.fields.equal label{font-size:12px}
.unit-input{display:flex;align-items:center;background:var(--bg);border:1px solid var(--line)}.unit-input input{border:0;flex:1}.unit-input span{color:var(--muted);padding-right:13px;font-size:13px}.unit-label{font-size:10px;font-weight:400;color:var(--muted)}
.advanced-grid{row-gap:18px!important}.advanced-grid label{min-height:22px}.advanced-grid .label-help{margin:0 0 9px}.advanced-grid .label-help label{min-height:0}#advanced{padding-bottom:12px}
.check{display:flex;gap:10px;align-items:start;margin-top:16px;font-weight:400;font-size:13px}.check input{width:18px;height:18px;flex-shrink:0;accent-color:var(--accent)}
.actions{margin-top:22px}.actions .text-button{margin-top:8px}.save-preset{margin-top:24px}.preset-actions{display:flex;flex-wrap:wrap;gap:15px;margin-top:12px}
.timing{display:grid;grid-template-columns:1fr 1.3fr 1fr;margin:20px 0 14px;border:1px solid var(--line)}.timing>div{display:flex;flex-direction:column;gap:5px;justify-content:center;padding:14px 10px;background:var(--bg);min-width:0;text-align:center}.timing>div:nth-child(2){background:#463225;border-inline:1px solid #956039}.timing strong{font-size:14px;line-height:1.4}.timing span{font-size:11px;color:var(--muted)}#plan-summary{font-size:13px}.results .section-head h3{margin:0}.results .section-head{align-items:center}#production-preview{border-bottom:1px solid var(--line);margin-bottom:20px;padding-bottom:8px}
#remix{width:100%;margin:8px 0 14px}#remix-notice{margin-top:20px}#job-error{color:#ffd4ad}#variants-row{align-items:end}#variants-row .hint{margin:0 0 5px}.history-row span:nth-child(2){max-width:230px;white-space:normal}
@media(max-width:1000px){.studio{grid-template-columns:1fr}.results{position:static}.empty{padding:30px 15px}.history-row{flex-wrap:wrap}}
@media(max-width:480px){.fields.equal{grid-template-columns:1fr}.timing{grid-template-columns:1fr 1.25fr 1fr}.timing>div{padding:12px 6px}.timing strong{font-size:12px}.timing span{font-size:10px}.voice-row{flex-wrap:wrap}.voice-row select{flex-basis:100%}.help{width:28px;height:28px;min-width:28px}.history-row span:nth-child(2){max-width:100%}.brand span{font-size:9px}.secondary{min-height:42px}}
