/* Approved editorial concept. Writing first; settings disclosed on demand. */
body:has(.studio-shell) { --paper:#0b151e; --paper-deep:#09121b; --ink:#edf3fb; --muted:#96a7bd; --mint:#3286ff; --aqua:#83b8ff; --line:#283644; --side:244px; background:var(--paper); color:var(--ink); }
body:has(.studio-shell) #ambient-canvas { display:none; }
.studio-shell { background:#0b151e; }
.studio-shell .studio-sidebar-toggle { display:none; position:absolute; z-index:4; top:24px; right:10px; width:32px; height:32px; padding:0; place-items:center; border:1px solid #30343b; border-radius:8px; background:#17191d; color:#d7d9df; cursor:pointer; }
.studio-shell .studio-sidebar-toggle .icon { width:17px; height:17px; transition:transform .2s ease; }
.studio-shell.studio-editor-active { --side:64px; }
.studio-shell.studio-editor-active .studio-sidebar-toggle { display:grid; }
.studio-shell.studio-editor-active.studio-sidebar-expanded { --side:244px; }
.studio-shell.studio-editor-active.studio-sidebar-expanded .studio-sidebar-toggle .icon { transform:rotate(180deg); }
.studio-shell.studio-editor-active .sidebar { transition:width .2s ease, padding .2s ease; overflow:hidden; }
.studio-shell.studio-editor-active:not(.studio-sidebar-expanded) .sidebar { width:64px; padding-inline:8px; }
.studio-shell.studio-editor-active:not(.studio-sidebar-expanded) .studio-brand,
.studio-shell.studio-editor-active:not(.studio-sidebar-expanded) .sidebar-create-group .sidebar-create > span:not(.icon),
.studio-shell.studio-editor-active:not(.studio-sidebar-expanded) .sidebar .nav-button > span:not(.icon),
.studio-shell.studio-editor-active:not(.studio-sidebar-expanded) .sidebar-spacer,
.studio-shell.studio-editor-active:not(.studio-sidebar-expanded) .studio-language,
.studio-shell.studio-editor-active:not(.studio-sidebar-expanded) .profile-row { display:none; }
.studio-shell.studio-editor-active:not(.studio-sidebar-expanded) .sidebar-create-group { margin-top:58px; }
.studio-shell.studio-editor-active:not(.studio-sidebar-expanded) .sidebar .nav-button,
.studio-shell.studio-editor-active:not(.studio-sidebar-expanded) .sidebar .sidebar-create { width:48px; min-width:48px; justify-content:center; padding-inline:0; gap:0; }
.studio-shell.studio-editor-active:not(.studio-sidebar-expanded) .sidebar-create-menu { display:none; }
.studio-shell .sidebar { padding:26px 12px 112px; background:#09121b; border:0; backdrop-filter:none; }
.studio-shell .studio-brand { display:block; position:relative; min-height:42px; height:42px; overflow:hidden; margin:0 12px 32px; }
.studio-brand img { position:absolute; width:236px; max-width:none; top:-18px; left:-21px; filter:invert(1); mix-blend-mode:screen; }
.studio-shell .sidebar-create-group { margin:0 0 8px; }
.studio-shell .sidebar .nav-button { justify-content:flex-start; min-height:54px; border-radius:6px; padding:12px 18px; font-size:17px; color:#c0cedf; gap:16px; }
.studio-shell .sidebar .nav-button > .icon { width:23px; height:23px; }
.studio-shell .sidebar .sidebar-create { min-height:54px; border:0; border-radius:6px; background:#11335d; padding:12px 18px; font-size:17px; color:#eef5ff; box-shadow:none; }
.studio-shell .sidebar .sidebar-create .icon-chevron-down { display:none; }
.studio-shell .sidebar .nav { gap:8px; }
.studio-shell .sidebar-spacer { flex:1; }
.studio-shell .studio-task-link { border-top:1px solid var(--line); border-radius:0 !important; }
.studio-shell .profile-row { display:flex; flex-direction:column-reverse; gap:14px; border:0; padding-top:0; }
.studio-shell .sidebar-credit-link { width:100%; min-height:42px; display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:12px; border:0; padding:8px 18px; background:none; color:#b8c9df; font-size:16px; }
.studio-shell .sidebar-credit-link span { display:inline; }
.studio-shell .sidebar-credit-link strong { font-size:16px; font-weight:400; }
.studio-shell .sidebar .profile-nav { width:100%; border-top:1px solid var(--line); border-radius:0; padding-top:18px; }
.studio-shell .main { padding:0; background:none; }
.studio-shell .topbar { position:relative; z-index:1; isolation:isolate; min-height:168px; padding:54px 42px 26px; border:0; background:none; }
.studio-shell .topbar::before { content:''; position:absolute; z-index:-1; top:0; bottom:-52px; right:0; width:70%; background:url('./studio-assets/recording-room.png') center / cover no-repeat; mask-image:linear-gradient(90deg,transparent,#000 24%),linear-gradient(0deg,transparent,#000 25%); mask-composite:intersect; }
.studio-shell .topbar h1 { font-size:40px; font-weight:600; line-height:1.2; letter-spacing:-.04em; margin-bottom:9px; }
.studio-shell .breadcrumb { color:#9aadc4; font-size:19px; line-height:1.5; }
.studio-shell .top-actions { position:absolute; top:20px; right:26px; }
.studio-shell .top-actions .button { padding:8px; font-size:13px; background:none; border:0; color:#bbcce2; }
.studio-shell .studio-language { width:100px; }
.studio-shell .content.create-content { width:100%; max-width:none; margin:0; padding:0 0 112px; }
.studio-shell .creation-studio { display:grid; grid-template-columns:minmax(0,2.18fr) minmax(340px,1fr); gap:0; border:0; }
.studio-shell .creation-compose-pane { padding:0 42px; min-width:0; container:creation-compose / inline-size; }
.studio-shell .creation-compose-head { display:flex; position:relative; flex-direction:row; justify-content:space-between; align-items:flex-start; min-height:94px; padding:0; margin:0; gap:18px; }
.studio-mode-tabs { display:flex; align-items:center; gap:32px; min-height:52px; }
.studio-mode-tab { cursor:pointer; padding:12px 0 15px; border:0; border-bottom:2px solid transparent; background:none; color:#a2b3ca; font-size:17px; white-space:nowrap; }
.studio-mode-tab.active { color:#4097ff; border-bottom-color:#3286ff; }
.studio-mode-tab:hover:not(:disabled) { color:#eaf2ff; }
.studio-mode-tab:disabled { cursor:wait; opacity:.5; }
.studio-shell .creation-compose-head::after { content:''; height:1px; background:var(--line); position:absolute; top:51px; left:0; right:0; }
.studio-shell .creation-compose-head .project-destination { position:absolute; right:0; bottom:0; width:210px; margin:0; }
.studio-shell .project-destination .field { display:flex; flex-direction:row; align-items:center; gap:8px; }
.studio-shell .project-destination .field > label { font-size:13px; white-space:nowrap; color:var(--muted); }
.studio-shell .project-destination .mula-select { flex:1; min-width:0; }
.studio-shell .mula-select-trigger { min-height:38px; border:0; background:none; border-radius:4px; padding:6px; color:#d8e4f5; font-size:14px; box-shadow:none; }
.studio-shell .creation-editor { display:grid; gap:0; }
.studio-shell .creation-form-stack { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); column-gap:26px; row-gap:24px; }
.studio-shell .creation-form-stack > * { grid-column:1 / -1; }
.studio-shell .creation-form-stack > .creation-form-card-direction { grid-column:1 / -1; }
.studio-shell .has-lyrics .creation-form-card-direction { grid-column:1; }
.studio-shell .has-lyrics .creation-form-card-lyrics { grid-column:2; }
.studio-shell .creation-form-card { border:0; border-radius:0; background:none; padding:0; box-shadow:none; min-width:0; }
.studio-shell .studio-title { padding:0 0 10px; }
.studio-shell .studio-title .field > label { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
.studio-shell .studio-title .creation-title-input { border:0; background:transparent; border-radius:0; box-shadow:none; font-size:30px; font-weight:600; letter-spacing:-.025em; line-height:1.4; color:#f0f5fc; height:auto; padding:0; width:100%; }
.studio-shell .studio-title .creation-title-input:focus { outline:0; box-shadow:0 1px #4b739d; }
.studio-shell .creation-form-card-head { min-height:26px; margin:0 0 14px; display:flex; flex-wrap:nowrap; gap:12px; align-items:center; }
.studio-shell .creation-form-card-head h3 { color:#9cacbf; font-weight:400; font-size:14px; letter-spacing:0; }
.studio-shell .creation-form-card-lyrics { border-left:1px solid var(--line); padding-left:24px; min-height:0; }
.studio-shell .creation-form-card .creation-primary-field > label { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
.studio-shell .creation-form-card .field { margin:0; min-height:0; }
.studio-shell .creation-form-card textarea { display:block; width:100%; border:0; border-radius:0; outline:0; background:transparent; box-shadow:none; padding:0; color:#dde7f5; font-size:18px; font-weight:400; line-height:1.75; resize:vertical; }
.studio-shell .creation-form-card textarea:hover { border:0; background:transparent; }
.studio-shell .creation-form-card textarea:focus { border:0; background:transparent; box-shadow:none; outline:none; }
.studio-shell .creation-primary-field:focus-within { box-shadow:inset 0 -1px #315a88; }
.studio-shell .creation-form-card textarea::placeholder { font-size:18px; color:#637a92; }
.studio-shell .creation-form-card-direction textarea, .studio-shell .creation-form-card-lyrics .brief-lyrics-input { min-height:252px; height:252px; }
.studio-shell .creation-form-card-lyrics .creation-form-card-body, .studio-shell .creation-form-card-lyrics .creation-primary-field { display:block; flex:none; }
.studio-shell .creation-counted-field { position:relative; padding-bottom:18px; }
.studio-shell .creation-counted-field:has(> .creation-character-count[hidden]) { padding-bottom:0; }
.studio-shell .creation-character-count { font-size:11px; }
.studio-shell .button.secondary.lyrics-generate-action { color:#429bff; background:none; border:0; box-shadow:none; font-size:14px; min-height:26px; padding:0; }
.studio-shell .studio-settings { margin-top:20px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.studio-settings > summary { display:flex; align-items:center; gap:14px; list-style:none; min-height:68px; padding:16px 0; cursor:pointer; color:#dce6f4; font-size:16px; }
.studio-settings > summary::-webkit-details-marker { display:none; }
.studio-settings > summary > .icon:first-child { width:23px; height:23px; }
.studio-settings > summary > .icon:last-child { margin-left:auto; width:18px; height:18px; transition:transform .18s ease; }
.studio-settings[open] > summary > .icon:last-child { transform:rotate(90deg); }
.studio-settings-hint { color:#8399b3; font-size:14px; }
.studio-settings-fields { display:grid; grid-template-columns:1fr 1fr; gap:18px 24px; padding:4px 0 22px; }
.studio-settings-fields .field { position:relative; align-content:start; gap:8px; }
.studio-settings-fields .field label { font-size:13px; color:#92a5bc; }
.studio-settings-fields input, .studio-settings-fields textarea, .studio-settings-fields .mula-select-trigger { width:100%; min-width:0; min-height:40px; border:1px solid #2a3a4a; background:#0d1b28; border-radius:5px; padding:8px 10px; font-size:15px; color:#e1ebf8; }
.studio-settings-fields .notice, .studio-settings-fields .creation-operation-fields { grid-column:1 / -1; }
.studio-ai-inline { padding-top:26px; min-width:0; }
.studio-shell .studio-ai-inline .ai-design-composer { display:grid; grid-template-columns:22px minmax(0,1fr) 28px; align-items:center; gap:14px; min-height:56px; padding:10px 16px; margin:0; border:1px solid #213140; border-radius:6px; background:transparent; box-shadow:none; }
.studio-ai-inline .ai-design-composer > .icon { color:#3286ff; width:22px; height:22px; }
.studio-shell .studio-ai-inline .ai-design-composer textarea { grid-column:2; grid-row:1; min-height:28px; height:28px; padding:2px 0; border:0; box-shadow:none; background:transparent; font-size:16px; line-height:24px; color:#dce8f7; resize:vertical; }
.studio-ai-inline textarea::placeholder { color:#667f99; }
.studio-shell .studio-ai-inline .composer-submit { grid-column:3; grid-row:1; width:28px; min-height:28px; height:28px; border:0; background:none; color:#3286ff; box-shadow:none; padding:2px; border-radius:4px; }
.studio-ai-history { border:1px solid var(--line); border-radius:6px; padding:12px 16px; margin-bottom:12px; }
.studio-ai-history summary { display:flex; justify-content:space-between; list-style:none; cursor:pointer; font-size:14px; }
.studio-ai-history .ai-design-chat { margin-top:12px; max-height:200px; padding:0; }
.studio-ai-history .bubble { font-size:14px; line-height:1.65; border-radius:5px; background:#172a3b; color:#cbd9e9; }
.studio-shell .control-plan-actions { display:flex; justify-content:flex-end; align-items:center; gap:28px; margin:16px 0 0; padding:0; }
.studio-shell .batch-generation-control { font-size:14px; }
.studio-shell .check-row { color:#b3c3d9; gap:12px; }
.studio-shell .button.accent { min-width:164px; min-height:54px; border:1px solid #408dff; border-radius:6px; background:#2c80fa; font-size:17px; font-weight:500; color:#fff; box-shadow:0 4px 16px #0d4c971a; }
.studio-shell .button.accent:hover:not(:disabled) { background:#4090ff; box-shadow:0 6px 20px #2460a12b; }
.studio-shell .creation-results-pane { position:sticky; top:0; height:calc(100dvh - 272px); min-height:380px; border:0; border-left:1px solid #2b3947; border-top:1px solid #263644; border-radius:6px 0 0; padding:26px 28px 22px; background:#0c1721; }
.studio-shell .creation-results-head { min-height:36px; padding:0; margin:0 0 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.studio-shell .creation-results-head h2 { font-size:22px; font-weight:500; line-height:1.4; margin:0; }
.studio-shell .creation-results-head .mula-select { width:112px; }
.studio-shell .creation-results-list { display:flex; flex-direction:column; padding:0; border:0; border-radius:0; background:transparent; gap:28px; }
.studio-shell .creation-results-list > * { flex-shrink:0; }
.studio-shell .topbar::before { pointer-events:none; }
.studio-shell .creation-results-pane { z-index:2; }
.studio-shell .sidebar .button.accent.sidebar-create { background:#11335d; border:0; box-shadow:none; }
.studio-shell .batch-generation-control { margin-left:auto; margin-right:0; }
.studio-shell .creation-results-pane .project-track-row { display:grid; grid-template-columns:138px minmax(0,1fr); grid-template-rows:1fr auto; gap:12px 20px; min-height:138px; padding:0; margin:0; border:0; border-radius:0; background:transparent; }
.studio-shell .creation-results-pane .project-track-play { width:138px; height:138px; grid-row:1 / 3; border-radius:6px; overflow:hidden; }
.studio-shell .creation-results-pane .project-track-play img { width:100%; height:100%; object-fit:cover; }
.studio-shell .creation-results-pane .project-track-play::after { background:transparent; }
.studio-shell .creation-results-pane .project-track-play-icon { position:absolute; bottom:8px; right:7px; width:38px; height:38px; border:1px solid #dce7f5; background:#06111cc0; }
.studio-shell .project-track-play-icon .icon { width:20px; height:20px; }
.studio-shell .creation-results-pane .project-track-copy { display:block; align-self:center; min-width:0; }
.studio-shell .creation-results-pane .project-track-name { font-size:18px; font-weight:400; line-height:1.4; color:#ecf3fd; margin-bottom:8px; white-space:normal; }
.studio-shell .creation-results-pane .project-track-meta { display:inline-flex; color:#91a8c2; font-size:14px; line-height:1.6; margin:0; gap:0; }
.studio-shell .creation-results-pane .project-track-meta time, .studio-shell .creation-results-pane .project-track-meta .project-track-meta-separator { display:none; }
.studio-shell .studio-track-date { display:none; }
.studio-shell .studio-track-duration { display:inline; color:#91a8c2; font-size:14px; white-space:nowrap; }
.studio-shell .studio-track-duration::before { content:' · '; margin:0 7px; }
.studio-shell .creation-results-pane .track-row-actions { grid-column:2; display:flex; flex-wrap:nowrap; justify-content:space-between; gap:10px; max-width:none; padding-bottom:5px; }
.studio-shell .creation-results-pane .project-track-action { min-height:32px; padding:0; border:0; border-radius:3px; box-shadow:none; background:none; color:#a9c0da; font-size:14px; white-space:nowrap; }
.studio-shell .creation-results-pane .project-track-action:has(.icon-download) { order:2; }
.studio-shell .creation-results-pane .project-track-action:has(.icon-download) > span:not(.icon) { display:none; }
.studio-shell .creation-results-pane .project-track-action .icon { width:18px; height:18px; }
.studio-shell .creation-results-empty { background:transparent; font-size:16px; padding:40px 0; color:#8ca3bf; }
body:has(.studio-shell) .playback-dock { left:0; right:0; bottom:0; min-height:100px; border:0; border-top:1px solid #2b3947; border-radius:0; background:#0b151fee; padding:16px 26px; grid-template-columns:64px 170px 50px auto minmax(100px,1fr) auto 20px 140px; gap:20px; box-shadow:none; backdrop-filter:blur(16px); }
body:has(.studio-shell .music-edit-content) #mula-playback-dock { display:none !important; }
body:has(.studio-shell) .playback-cover { width:64px; height:64px; border-radius:5px; background:#13263b; }
body:has(.studio-shell) .playback-title { font-size:16px; }
body:has(.studio-shell) .playback-subtitle { font-size:12px; color:#8ca3bc; }
body:has(.studio-shell) .playback-toggle { width:50px; height:50px; border:1px solid #becfe5; color:#edf4ff; background:none; }
body:has(.studio-shell) .playback-dock time { font-size:12px; color:#8ca3bc; }
body:has(.studio-shell) input[type=range] { accent-color:#3286ff; }
body:has(.studio-shell) .mula-select-menu { background:#132131; border:1px solid #314357; border-radius:6px; }
body:has(.studio-shell) .mula-select-option[aria-selected=true] { color:#dbeaff; background:#1a375a; }
.studio-shell :focus-visible { outline:2px solid #69a6f1; outline-offset:3px; }
.studio-shell .creation-audio-section { border:1px solid #283e55; border-radius:6px; padding:12px; background:#0c1a27; }
.studio-shell .creation-reference-upload { border-radius:5px; background:#13283c; color:#bdcee4; }
@media (max-width:1350px) {
  body:has(.studio-shell) { --side:200px; }
  .studio-shell .studio-brand { margin-inline:4px; }
  .studio-brand img { width:204px; left:-18px; top:-14px; }
  .studio-shell .creation-compose-pane { padding-inline:28px; }
  .studio-shell .creation-studio { grid-template-columns:minmax(0,1.9fr) minmax(300px,1fr); }
  .studio-shell .creation-results-pane { padding:24px 20px; }
  .studio-shell .creation-results-pane .project-track-row { grid-template-columns:106px minmax(0,1fr); gap:10px 16px; min-height:106px; }
  .studio-shell .creation-results-pane .project-track-play { width:106px; height:106px; }
  .studio-shell .creation-results-pane .project-track-name { font-size:16px; }
  .studio-shell .creation-form-card textarea { font-size:16px; }
  .studio-mode-tabs { gap:22px; }
  .studio-mode-tab { font-size:15px; }
  .studio-settings-hint { font-size:12px; }
}
@media (max-width:1050px) {
  body:has(.studio-shell) { --side:180px; }
  .studio-shell .sidebar .nav-button > span:not(.icon), .studio-shell .sidebar-create span:not(.icon), .studio-shell .profile-row .profile-copy { display:inline; }
  .studio-shell .sidebar .nav-button, .studio-shell .sidebar .sidebar-create { font-size:15px; }
  .studio-shell .profile-row { display:flex; align-items:stretch; }
  .studio-brand img { width:181px; left:-16px; top:-10px; }
  .studio-shell .creation-studio { grid-template-columns:1fr; }
  .studio-shell .creation-results-pane { position:static; height:auto; min-height:220px; margin-top:36px; border-radius:0; border-left:0; }
  .studio-shell .creation-results-list { max-height:560px; }
  .studio-settings-hint { font-size:13px; }
  body:has(.studio-shell) .playback-dock { grid-template-columns:44px 130px 42px auto minmax(80px,1fr) auto; padding:12px 20px; gap:12px; min-height:80px; }
  body:has(.studio-shell) .playback-cover { width:44px; height:44px; }
  body:has(.studio-shell) .playback-toggle { width:42px; height:42px; }
}
@media (max-width:760px) {
  .studio-shell .topbar { min-height:152px; padding:52px 22px 20px; }
  .studio-shell .topbar h1 { font-size:32px; }
  .studio-shell .breadcrumb { font-size:16px; }
  .studio-shell .topbar::before { width:85%; }
  .studio-shell .top-actions { top:10px; right:16px; }
  .studio-shell .creation-compose-pane { padding:0 22px; }
  .studio-shell .content.create-content { padding:0 0 180px; }
  .studio-shell .creation-compose-head { flex-direction:row; min-height:102px; }
  .studio-mode-tabs { gap:24px; min-height:48px; }
  .studio-mode-tab { font-size:14px; }
  .studio-shell .creation-form-stack { grid-template-columns:1fr; row-gap:24px; }
  .studio-shell .has-lyrics .creation-form-card-lyrics { grid-column:1; border-left:0; border-top:1px solid var(--line); padding:20px 0 0; }
  .studio-shell .studio-title .creation-title-input { font-size:27px; }
  .studio-shell .creation-form-card-direction textarea { min-height:160px; height:160px; }
  .studio-shell .creation-form-card-lyrics .brief-lyrics-input { min-height:220px; height:220px; }
  .studio-settings-hint { display:none; }
  .studio-settings-fields { grid-template-columns:1fr; }
  .studio-shell .studio-ai-inline .ai-design-composer { gap:8px; padding-inline:10px; }
  .studio-shell .studio-ai-inline .ai-design-composer textarea { font-size:14px; }
  .studio-shell .control-plan-actions { justify-content:space-between; gap:12px; }
  .studio-shell .button.accent { min-width:140px; min-height:48px; font-size:16px; }
  .studio-shell .mobile-bar { background:#0a1520; border-top:1px solid #2a3a4f; }
  body:has(.studio-shell) .playback-dock { bottom:var(--bottom); min-height:78px; grid-template-columns:36px minmax(0,1fr) 36px; gap:8px 12px; padding:8px 16px; }
  body:has(.studio-shell) .playback-cover { width:36px; height:36px; }
  body:has(.studio-shell) .playback-toggle { width:36px; height:36px; }
  body:has(.studio-shell) .playback-dock > .playback-progress { display:block; grid-column:1 / -1; height:12px; width:100%; }
  body:has(.studio-shell) .playback-current, body:has(.studio-shell) .playback-duration { display:none; }
}
@media (prefers-reduced-motion:reduce) { .studio-shell *, .studio-shell *::before { animation:none !important; transition:none !important; } }
