/* Approved ACE-refined HeartMuLa concept: shared Chinese/English UI tokens. */
/* Apply the same PR #25 palette before the authenticated shell is mounted. */
html:has(.workspace-startup){background:#101010;}
.workspace-startup{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px;color:#a3a3a3;text-align:center;font-size:14px;line-height:1.6;}
.workspace-startup-content{display:grid;justify-items:center;gap:16px;}
.workspace-startup-content p{margin:0;}
.studio-shell .sidebar .sidebar-create:not(.active){background:none;color:#bcbcc3;}
.studio-shell .sidebar .nav-button.active{background:#252525;color:#fff;}
.workspace-startup .spinner{width:28px;height:28px;border-width:2px;border-color:#303030;border-top-color:#4f8cff;}
.workspace-startup .empty-state{min-height:0;max-width:480px;padding:0;border:0;background:none;box-shadow:none;}
.workspace-startup .empty-state .icon{background:#242424;border-color:#404040;color:#a3a3a3;box-shadow:none;}
@media(prefers-reduced-motion:reduce){.workspace-startup .spinner{animation:none;}}
.studio-shell .batch-generation-options input{box-shadow:none;}
body:has(.studio-shell) input[type="checkbox"]:focus{box-shadow:none;}
body:has(.studio-shell) input[type="checkbox"]:focus-visible{outline:2px solid #4f8cff;outline-offset:3px;}
body:has(.studio-shell) .project-name-dialog .button.secondary{border-color:#333;box-shadow:none;}
.studio-shell .profile-account-provider{color:#a3a3a3;font-size:14px;}
body:has(.studio-shell) .project-management-dialog{width:min(540px,calc(100vw - 32px));max-height:80dvh;overflow:auto;}
.project-management-list{display:grid;gap:0;}
.project-management-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid #303030;}
.project-management-row>span{min-width:0;overflow-wrap:anywhere;}
.project-management-row .inline-actions{flex-shrink:0;gap:8px;}
.project-management-row .button{font-size:13px;padding:8px 10px;min-height:34px;}
@media(max-width:500px){.project-management-row{align-items:flex-start;flex-direction:column;}.project-management-row .inline-actions{flex-wrap:wrap;}}
/* Site-wide tokens: dialogs and account/billing routes share the studio theme. */
html:has(.studio-shell),body:has(.studio-shell) *{scrollbar-color:#4a4a4a #151515;}
html:has(.studio-shell)::-webkit-scrollbar-thumb,body:has(.studio-shell) ::-webkit-scrollbar-thumb{background:#4a4a4a;}
html:has(.studio-shell)::-webkit-scrollbar-track,body:has(.studio-shell) ::-webkit-scrollbar-track{background:#151515;}
body:has(.studio-shell){--surface:#1a1a1a;--surface-solid:#1c1c1c;--panel:#191919;--line-strong:#404040;--lime:#ddd;--lime-dark:#aaa;--lime-soft:#ffffff0d;--green:#ddd;--blue:#4f8cff;--violet:#4f8cff;--purple:#4f8cff;--shadow:0 16px 48px #0004;}
body:has(.studio-shell){--paper:#101010;--paper-deep:#101010;--ink:#f3f3f3;--muted:#a3a3a3;--line:#252525;--mint:#4f8cff;--aqua:#ddd;--side:200px;background:var(--paper);font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;}
.studio-shell{background:var(--paper);}
.studio-shell .sidebar{background:#101010;border-right:1px solid var(--line);padding:26px 14px 100px;}
.studio-shell .studio-brand{margin:0 10px 24px;}
.studio-shell .sidebar .nav-button,.studio-shell .sidebar .button.accent.sidebar-create{background:none;color:#bcbcc3;font-size:15px;min-height:44px;padding:10px 16px;gap:12px;border-radius:7px;}
.studio-shell .sidebar .button.accent.sidebar-create.active{background:#252525;color:#fff;}
.studio-shell .sidebar .button.accent.sidebar-create:not(.active):hover:not(:disabled){background:#ffffff09;color:#fff;}
.studio-shell .sidebar .nav-button .icon{width:20px;height:20px;}
.studio-shell .topbar{display:none;}
.studio-shell.studio-utility .topbar{display:flex;background:#101010;border-bottom:1px solid #252525;padding:28px 32px;}
.studio-shell.studio-utility .topbar::before{display:none;}
.studio-shell.studio-utility .topbar{min-height:96px;}
.studio-utility .topbar h1{font-size:28px;font-weight:550;}
.studio-utility .breadcrumb,.studio-utility .top-actions{display:none;}
.studio-utility .content{padding:28px 32px 120px;}
.studio-shell .sidebar .studio-language{width:115px;margin:0 10px 12px;}
.studio-shell .profile-row{flex-direction:column;gap:2px;}
.studio-shell .sidebar .profile-nav{border:0;padding:10px 16px;}
.studio-shell .sidebar-credit-link{padding:10px 16px;color:#bcbcc3;font-size:14px;min-height:36px;}
.studio-shell .sidebar-credit-link strong{font-size:14px;}
.studio-shell .content.create-content{padding-bottom:100px;}
.studio-shell .creation-studio{grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr);min-height:calc(100dvh - 100px);}
.studio-shell .creation-compose-pane{padding:24px 32px 28px;}
.studio-shell .creation-compose-head{min-height:56px;align-items:flex-start;gap:14px;}
.studio-mode-tabs{gap:28px;min-height:44px;}
.studio-mode-tab{font-size:14px;padding:10px 0 15px;color:#aaaab3;}
.studio-mode-tab.active{color:#fff;border-bottom-color:#eee;}
.studio-shell .creation-compose-head::after{top:44px;}
.studio-shell .creation-compose-head .project-destination{position:static;width:200px;max-width:42%;}
.studio-shell .mula-select-trigger{color:#cccdd2;font-size:13px;}
.studio-shell .creation-form-stack{column-gap:20px;row-gap:18px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
.studio-shell .studio-title{padding:8px 0 4px;}
.studio-shell .studio-title .creation-title-input{color:#f1f1f3;font-size:30px;font-weight:550;line-height:1.4;}
.studio-shell .creation-form-card-lyrics{border:0;padding:0;}
.studio-shell .creation-form-card-head{margin-bottom:10px;min-height:24px;}
.studio-shell .creation-form-card-head h3{color:#d4d4db;font-size:14px;font-weight:400;}
.studio-shell .creation-form-card textarea,.studio-shell .creation-form-card textarea:hover,.studio-shell .creation-form-card textarea:focus{background:#1a1a1a;color:#e7e7ea;border:1px solid transparent;border-radius:8px;padding:16px;font-size:15px;line-height:1.8;box-shadow:none;}
.studio-shell .creation-form-card textarea:focus{border-color:#75757e;}
.studio-shell .creation-form-card textarea::placeholder{font-size:15px;color:#85858f;}
.studio-shell .creation-form-card-direction textarea,.studio-shell .creation-form-card-lyrics .brief-lyrics-input{height:216px;min-height:216px;}
.studio-shell .creation-primary-field:focus-within{box-shadow:none;}
.studio-shell .button.secondary.lyrics-generate-action{color:#bcbcc5;font-size:13px;}
.studio-shell .studio-settings{border-bottom:0;margin-top:18px;}
.studio-settings>summary{font-size:15px;color:#ddd;min-height:52px;padding:12px 0;}
.studio-settings-hint{color:#9999a3;font-size:12px;}
.studio-settings[open] .studio-settings-hint{display:none;}
.studio-settings[open]>summary>.icon:last-child{transform:rotate(-90deg);}
.studio-settings-fields{gap:16px 20px;padding:0;}
.studio-settings-fields .field label{color:#bdbdc6;font-size:13px;}
.studio-shell .studio-settings-fields input,.studio-shell .studio-settings-fields textarea,.studio-shell .studio-settings-fields .mula-select-trigger{border:1px solid transparent;background:#1a1a1a;border-radius:7px;color:#dddde3;min-height:42px;font-size:14px;padding:10px 14px;box-shadow:none;}
.studio-shell .studio-settings-fields textarea{height:42px;resize:vertical;}
.studio-shell .studio-settings-fields input:focus,.studio-shell .studio-settings-fields textarea:focus{outline:1px solid #777;}
.studio-shell .control-plan-actions{justify-content:space-between;margin-top:20px;gap:20px;}
.studio-shell .batch-generation-control{margin:0;}
/* Generate stays on the right whatever sits before it (no batch option for HeartMuLa v1; Simple shows no cost). */
.studio-shell .control-plan-actions > .button:last-child{margin-left:auto;}
.studio-shell .check-row{color:#c7c7ce;font-size:14px;}
.studio-shell .button.accent{background:#4f8cff;border:0;box-shadow:none;color:#fff;min-height:44px;min-width:200px;font-size:14px;border-radius:7px;}
.studio-shell .button.accent:hover:not(:disabled){background:#6a9cff;box-shadow:none;}
.studio-shell .creation-results-pane{background:#101010;border:0;border-left:1px solid var(--line);border-radius:0;top:0;height:calc(100dvh - 100px);padding:30px 24px;}
.studio-shell .creation-results-head{margin-bottom:24px;}
.studio-shell .creation-results-head h2{font-size:20px;font-weight:550;color:#f1f1f3;}
.studio-shell .creation-results-list{gap:20px;}
.studio-shell .creation-results-pane .project-track-row{grid-template-columns:110px minmax(0,1fr);min-height:110px;gap:8px 18px;padding:10px;border-radius:8px;}
.studio-shell .creation-results-pane .project-track-row:hover,.studio-shell .creation-results-pane .project-track-row.is-active{background:#222222;}
.studio-shell .creation-results-pane .project-track-play{width:110px;height:110px;border-radius:5px;background:#484a50;}
.studio-shell .creation-results-pane .project-track-play-icon{background:#f5f5f5;color:#151518;border:0;width:32px;height:32px;bottom:8px;right:8px;}
.studio-shell .creation-results-pane .project-track-name{font-size:16px;font-weight:500;color:#eeeef2;margin-bottom:5px;}
.studio-shell .creation-results-pane .project-track-meta,.studio-shell .studio-track-duration{font-size:12px;color:#aaaab4;}
.studio-shell .creation-results-pane .project-track-action{color:#c0c0c9;font-size:12px;}
.studio-shell .creation-results-empty{color:#91919b;font-size:14px;}
body:has(.studio-shell) .playback-dock{background:#131313;border-top:1px solid #262628;min-height:88px;padding:16px 28px;grid-template-columns:54px 150px 44px auto minmax(100px,1fr) auto 20px 130px;gap:18px;backdrop-filter:none;}
body:has(.studio-shell) .playback-cover{width:54px;height:54px;background:#33343a;}
body:has(.studio-shell) .playback-title{font-size:14px;color:#eee;}
body:has(.studio-shell) .playback-subtitle,body:has(.studio-shell) .playback-dock time{color:#aaaab3;}
body:has(.studio-shell) .playback-toggle{width:44px;height:44px;color:#f5f5f5;border-color:#ddd;background:none;}
body:has(.studio-shell) input[type=range]{accent-color:#eee;}
body:has(.studio-shell) .mula-select-menu{background:#222226;border-color:#3a3a40;color:#eee;}
body:has(.studio-shell) .mula-select-option[aria-selected=true]{background:#34343c;color:#fff;}
.studio-shell :focus-visible{outline:2px solid #b9bac4;outline-offset:3px;}
.studio-shell .creation-audio-section{background:#19191d;border-color:#343438;}
.studio-shell .creation-reference-upload{background:#242429;color:#ccc;}
.studio-field-help{display:block;color:#92929c;font-size:12px;margin-top:6px;}
body:has(.studio-shell) .playback-dock input[type=range]{--mint:#d4d4d9;}
body:has(.studio-shell) input[type=range]::-webkit-slider-thumb{background:#eee;border-color:#eee;box-shadow:none;}
.studio-shell .studio-title{position:relative;}
.studio-shell .creation-results-pane .track-row-actions{justify-content:flex-end;gap:18px;}
.studio-shell .creation-results-pane .project-track-action>span:not(.icon){display:none;}
.studio-shell .creation-results-head{border:0;}
.studio-shell .creation-compose-pane{padding-top:24px;}
.studio-shell .creation-results-pane{padding-top:26px;}
.studio-shell .creation-results-pane .project-track-row{grid-template-columns:100px minmax(0,1fr);min-height:116px;grid-template-rows:1fr;position:relative;}
.studio-shell .creation-results-pane .project-track-play{width:100px;height:100px;grid-row:1;}
.studio-shell .creation-results-pane  .project-track-copy{padding-bottom:24px;}
.studio-shell .creation-results-pane  .track-row-actions{position:absolute;right:14px;bottom:16px;}
.studio-shell .creation-results-pane  .project-track-play-icon{opacity:1;transition:transform .15s;}
.studio-shell .creation-results-pane .project-track-row:hover .project-track-play-icon,.studio-shell .creation-results-pane .project-track-row:focus-within .project-track-play-icon{opacity:1;}
.studio-shell .creation-results-pane .project-track-action:not(:has(.icon-more)){opacity:1;}
.studio-shell .creation-results-pane .project-track-row:hover .project-track-action,.studio-shell .creation-results-pane .project-track-row:focus-within .project-track-action{opacity:1;}
body:has(.studio-shell){scrollbar-color:#45454d #131313;}
.studio-shell .studio-settings-fields .brief-exclude-input{min-height:42px;height:42px;}
.studio-shell .studio-brand img{width:124%;left:-12%;top:50%;transform:translateY(-50%);}
.studio-shell .creation-results-pane .project-track-action:has(.icon-more){order:3;}
.studio-shell .creation-form-card textarea{font-size:14px;line-height:1.75;}
.studio-shell .creation-form-card-head h3{font-size:13px;}
.studio-shell .studio-title .creation-title-input{font-size:28px;}
.studio-shell .studio-settings-fields input,.studio-shell .studio-settings-fields textarea,.studio-shell .studio-settings-fields .mula-select-trigger{font-size:14px;}
.studio-settings>summary{font-size:14px;}
.studio-shell .creation-results-pane .project-track-name{font-size:15px;}
.studio-shell .creation-results-pane .project-track-meta,.studio-shell .studio-track-duration{font-size:12px;}
.studio-shell .creation-results-list{gap:10px;}
.studio-shell .creation-form-card-direction textarea,.studio-shell .creation-form-card-lyrics .brief-lyrics-input{height:216px;}
.studio-shell .studio-settings-fields .brief-exclude-input{min-block-size:42px;block-size:42px;}
@media(max-width:1100px){.studio-shell .creation-form-card textarea{font-size:15px;}.studio-shell .studio-settings-fields input,.studio-shell .studio-settings-fields textarea,.studio-shell .studio-settings-fields .mula-select-trigger{font-size:14px;}}
@media(max-width:650px){.studio-shell .topbar{display:flex;min-height:44px;padding:6px 18px;background:#101010;}.studio-shell .topbar::before,.studio-shell .topbar>div:first-child,.studio-shell .top-actions>.button{display:none;}.studio-shell .top-actions{position:static;margin-left:auto;}.studio-shell .creation-results-pane .project-track-row{grid-template-columns:90px minmax(0,1fr);min-height:90px;}.studio-shell .creation-results-pane .project-track-play{width:90px;height:90px;}.studio-shell .creation-results-pane .project-track-play-icon{opacity:1;}}
@media(max-width:1350px){body:has(.studio-shell){--side:190px;}.studio-shell .creation-compose-pane{padding-inline:24px;}.studio-shell .creation-studio{grid-template-columns:minmax(0,1.7fr) minmax(310px,1fr);}.studio-mode-tabs{gap:18px;}.studio-mode-tab{font-size:13px;}.studio-shell .creation-compose-head .project-destination{width:155px;}.studio-shell .creation-results-pane{padding-inline:16px;}.studio-shell .creation-results-pane .project-track-row{grid-template-columns:90px minmax(0,1fr);gap:8px 12px;}.studio-shell .creation-results-pane .project-track-play{width:90px;height:90px;}}
@media(max-width:1100px){.studio-shell .creation-compose-head{flex-wrap:wrap;min-height:112px;}.studio-shell .creation-compose-head .project-destination{max-width:none;margin-left:auto;}.studio-shell .creation-form-stack{gap:20px;}.studio-shell .creation-form-card textarea{font-size:14px;padding:12px;}.studio-shell .creation-results-pane{min-width:0;}body:has(.studio-shell) .playback-dock{grid-template-columns:44px 100px 40px auto minmax(60px,1fr) auto;}.playback-dock .playback-volume,.playback-dock .playback-volume-icon{display:none;}}
@media(max-width:850px){body:has(.studio-shell){--side:160px;}.studio-shell .creation-studio{grid-template-columns:1fr;}.studio-shell .creation-results-pane{height:auto;min-height:200px;border-left:0;border-top:1px solid var(--line);position:relative;}.studio-shell .creation-compose-head{min-height:68px;flex-wrap:nowrap;}.studio-shell .creation-compose-head .project-destination{max-width:40%;}.studio-shell .sidebar{padding-inline:8px;}.studio-shell .creation-results-list{gap:12px;}}
@media(max-width:650px){.studio-shell .sidebar{display:none;}.studio-shell .main{margin-left:0;}.studio-shell .creation-compose-pane{padding:16px 18px 24px;}.studio-shell .creation-compose-head{flex-wrap:wrap;min-height:54px;}.studio-shell .creation-compose-head .project-destination{max-width:100%;}.studio-shell .creation-form-stack{grid-template-columns:1fr;}.studio-shell .has-lyrics .creation-form-card-direction,.studio-shell .has-lyrics .creation-form-card-lyrics{grid-column:1;}.studio-shell .creation-form-card-direction textarea{height:170px;min-height:170px;}.studio-shell .studio-title .creation-title-input{font-size:26px;}.studio-settings-fields{gap:16px;}.studio-settings-hint{display:none;}.studio-shell .button.accent{min-width:145px;}.studio-shell .content.create-content{padding-bottom:148px;}body:has(.studio-shell) .playback-dock{bottom:60px;min-height:72px;padding:10px 16px;grid-template-columns:40px minmax(70px,1fr) 40px;gap:12px;}body:has(.studio-shell) .playback-cover{width:40px;height:40px;}body:has(.studio-shell) .playback-dock time,body:has(.studio-shell) .playback-dock input[type=range]{display:none;}.studio-shell .mobile-bar{background:#151518;border-color:#333;}.studio-shell .mobile-nav-button.active{background:#303036;color:#fff;}}

/* Refined chrome: compact, neutral, with an explicit playback affordance. */
/* Existing secondary screens; no new controls or product capabilities. */
.studio-shell.profile-setup-shell{background:#101010;}
.studio-shell .profile-setup-card{background:#191919;border:1px solid #333;border-radius:12px;box-shadow:none;}
.studio-shell .profile-setup-card::before,.studio-shell .profile-setup-card::after{display:none;}
.studio-shell .profile-setup-card h1{font-size:28px;}
.studio-shell .profile-setup-card input{background:#222;border:1px solid #444;border-radius:7px;color:#eee;box-shadow:none;}
.studio-shell .profile-setup-card .eyebrow{color:#aaa;}
body:has(.studio-shell) #ambient-canvas{display:none;}
body:has(.studio-shell) .button.accent{background:#4f8cff;color:#fff;border-color:transparent;box-shadow:none;}
body:has(.studio-shell) .button.accent:hover:not(:disabled){background:#6a9cff;box-shadow:none;}
.studio-shell .field>label{color:#aaa;}
.studio-shell .sidebar-create-menu{background:#202020;border-color:#383838;box-shadow:0 12px 32px #0005;}
.studio-shell .sidebar-create-option,.studio-shell .sidebar-create-option .icon{color:#bbb;}
.studio-shell .sidebar-create-option.is-selected,.studio-shell .sidebar-create-option:hover{background:#333;color:#fff;}
.studio-shell .billing-page>div{display:grid;gap:22px;}
body:has(.studio-shell) .skip-link{background:#eee;color:#111;}
.studio-shell .sidebar-credit-link span{color:#aaa;}
.studio-shell .sidebar-credit-link.active{box-shadow:none;background:#252525;}
body:has(.studio-shell) .playback-cover,body:has(.studio-shell) .playback-toggle{box-shadow:none;}
body:has(.studio-shell) .mula-range{background:linear-gradient(90deg,#ddd 0 var(--range-progress),#ffffff29 var(--range-progress) 100%) center / calc(100% - var(--range-thumb-size)) 4px no-repeat;}
body:has(.studio-shell) .status.available,body:has(.studio-shell) .status.running{background:#292929;color:#ddd;border-color:#444;}
.studio-shell .button.primary{background:#4f8cff;color:white;box-shadow:none;border:0;}
.studio-shell .button.primary:hover:not(:disabled){background:#6a9cff;box-shadow:none;}
.studio-shell .button.secondary,.studio-shell .button.ghost{background:#262626;color:#ddd;border-color:#3a3a3a;box-shadow:none;}
.studio-shell .button.secondary:hover:not(:disabled),.studio-shell .button.ghost:hover:not(:disabled){background:#333;}
.studio-shell .profile-showcase{margin:12px auto 0;padding:28px 20px;}
.studio-shell .profile-avatar{width:88px;height:88px;background:#292929;color:#eee;box-shadow:none;font-size:32px;}
.studio-shell .profile-showcase h2{font-size:28px;}
.studio-shell .profile-editor{margin-top:24px;}
.studio-shell .profile-editor input,.studio-shell .profile-editor .mula-select-trigger{background:#1c1c1c;border:1px solid #363636;border-radius:7px;color:#eee;font-size:14px;box-shadow:none;}
.studio-shell .profile-editor .button{border-radius:7px;font-size:14px;}
.studio-shell .profile-subscription-link{background:#1c1c1c;border:1px solid #363636;border-radius:8px;}
.studio-shell .profile-subscription-link:hover{background:#282828;border-color:#555;transform:none;}
.studio-shell .profile-subscription-icon{background:#303030;color:#ddd;border-radius:6px;}
.studio-shell .profile-subscription-link>.icon{color:#aaa;}
.studio-shell .billing-overview,.studio-shell .billing-section,.studio-shell .billing-plan{background:#191919;border:1px solid #303030;border-radius:10px;box-shadow:none;backdrop-filter:none;}
.studio-shell .billing-overview h2{font-size:28px;}
.studio-shell .billing-plan{background:#202020;}
.studio-shell .billing-plan.current{border-color:#777;}
.studio-shell .billing-plan.preferred,.studio-shell .billing-plan.pending{border-color:#4f8cff;box-shadow:none;}
.studio-shell .billing-plan.recommended::before{background:none;}
.studio-shell .credit-balance{background:#121212;border-color:#333;border-radius:8px;}
.studio-shell .credit-meter i{background:#ddd;box-shadow:none;}
.studio-shell .billing-plan-change,.studio-shell .credit-cost-row strong,.studio-shell .credit-positive{color:#ddd;}
body:has(.studio-shell) .credits-upgrade-dialog{background:#191919;border-color:#3a3a3a;border-radius:12px;backdrop-filter:none;}
body:has(.studio-shell) .credits-upgrade-dialog::backdrop{background:#0009;}
body:has(.studio-shell) .credits-upgrade-icon{background:#303030;color:#ddd;}
body:has(.studio-shell) .credits-upgrade-plan{background:#202020;border-color:#383838;border-radius:8px;}
body:has(.studio-shell) .credits-upgrade-plan.recommended{background:#242424;border-color:#4f8cff;}
body:has(.studio-shell) .credits-upgrade-catalog-unavailable{background:#202020;border-color:#383838;border-radius:8px;}
body:has(.studio-shell) .credits-upgrade-close{color:#ccc;}
body:has(.studio-shell) .credits-upgrade-plan-features li::before{color:#4f8cff;}
body:has(.studio-shell) .credits-upgrade-footer{border-color:#333;}
body:has(.studio-shell) .billing-pack{background:#202020;border-color:#383838;border-radius:8px;}
body:has(.studio-shell) .billing-pack-upsell{background:#242424;border-radius:8px;}
body:has(.studio-shell) .credits-upgrade-packs{border-color:#333;}
body:has(.studio-shell) .credits-upgrade-toolbar{border-color:#333;}
body:has(.studio-shell) .credits-upgrade-dialog .billing-interval-control{background:#242424;}
body:has(.studio-shell) .credits-upgrade-dialog .billing-interval-control .button.active{background:#4f8cff;border-color:#4f8cff;color:#fff;}
body:has(.studio-shell) .track-details-pane{background:#191919;border-color:#333;}
body:has(.studio-shell) .track-details-play{background:#eee;color:#111;box-shadow:none;}
body:has(.studio-shell) .track-details-artwork{border-radius:8px;}
body:has(.studio-shell) .track-details-remix{border-radius:7px;}
body:has(.studio-shell) .toast{background:#252525;color:#eee;border-color:#444;backdrop-filter:none;}
body:has(.studio-shell) .toast.error{background:#2b2020;border-color:#795252;}
body:has(.studio-shell) .status-pill{background:#292929;border-color:#444;color:#ddd;}
body:has(.studio-shell) .status-dot{background:currentColor;box-shadow:none;}
@media(max-width:650px){.studio-shell.studio-utility .topbar{padding:20px 18px;}.studio-utility .content{padding:18px 18px 160px;}.studio-shell .profile-showcase{padding:16px 0;}}
/* Shared expanded surfaces, including portalled menus and native dialogs. */
body:has(.studio-shell) .mula-select-menu{background:#202020;border:1px solid #383838;border-radius:9px;padding:6px;box-shadow:0 12px 36px #0006;backdrop-filter:none;scrollbar-color:#555 transparent;}
body:has(.studio-shell) .mula-select-option{min-height:38px;border-radius:5px;font-size:13px;color:#d6d6d6;}
body:has(.studio-shell) .mula-select-option:hover:not(:disabled),body:has(.studio-shell) .mula-select-option:focus-visible,body:has(.studio-shell) .mula-select-option.is-selected{background:#333;border-color:transparent;color:#fff;}
body:has(.studio-shell) .mula-select-check{color:#fff;text-shadow:none;}
body:has(.studio-shell) .mula-select.is-open .mula-select-trigger,body:has(.studio-shell) .mula-select-trigger:hover:not(:disabled){background:#292929;border-color:#444;box-shadow:none;}
body:has(.studio-shell) .mula-select-trigger:focus-visible,body:has(.studio-shell) .project-select-menu input:focus-visible,body:has(.studio-shell) .project-name-dialog input:focus-visible{outline:2px solid #4f8cff;outline-offset:2px;box-shadow:none;}
body:has(.studio-shell) .mula-select-menu::-webkit-scrollbar-thumb{background:#555;background-clip:padding-box;}
body:has(.studio-shell) .project-select-menu input{background:#161616;border:1px solid #393939;border-radius:6px;color:#eee;font-size:14px;padding:10px;}
body:has(.studio-shell) .project-select-menu button{font-size:13px;color:#ddd;}
body:has(.studio-shell) .project-name-dialog{background:#1c1c1c;border:1px solid #3a3a3a;border-radius:12px;box-shadow:0 24px 70px #0008;color:#eee;padding:24px;}
body:has(.studio-shell) .project-name-dialog::backdrop{background:#0009;backdrop-filter:blur(3px);}
body:has(.studio-shell) .project-name-dialog h3{font-size:20px;font-weight:550;}
body:has(.studio-shell) .project-name-dialog input{background:#121212;border:1px solid #3b3b3b;border-radius:6px;font-size:15px;padding:11px;color:#eee;}
body:has(.studio-shell) .project-name-dialog .button{min-height:38px;border-radius:6px;font-size:14px;background:#303030;color:#eee;box-shadow:none;}
body:has(.studio-shell) .project-name-dialog .button.accent,body:has(.studio-shell) .project-name-dialog .button.primary{background:#4f8cff;color:#fff;}
.studio-shell .creation-audio-section{width:100%;justify-self:stretch;border:1px dashed #454545;border-radius:8px;background:#171717;padding:14px;box-shadow:none;}
.studio-shell .creation-audio-section.has-source{border-style:solid;padding:14px;}
.studio-shell .creation-audio-section.drag{border-color:#4f8cff;background:#17233a;box-shadow:none;}
.studio-shell .creation-reference-upload{border-radius:6px;background:#282828;color:#eee;padding:6px 12px;min-height:40px;}
.studio-shell .creation-reference-upload:hover{background:#353535;color:#fff;}
.studio-shell .creation-reference-upload-icon{border-radius:4px;background:none;color:#ddd;width:24px;height:24px;}
.studio-shell .creation-reference-upload-copy strong{font-size:13px;}
.studio-shell .creation-reference-preview{border-radius:5px;background:#303030;}
.studio-shell .creation-reference-copy strong{font-size:14px;color:#eee;}
.studio-shell .creation-reference-copy span{font-size:12px;color:#aaa;}
.studio-shell .creation-reference-actions .button{background:#292929;color:#ddd;border:0;border-radius:6px;box-shadow:none;font-size:13px;min-height:38px;}
.studio-shell .creation-reference-actions .button:disabled{opacity:.4;}
.studio-shell .studio-cover-editor .studio-settings-fields textarea{flex:none;min-height:42px;line-height:20px;}
.studio-shell .control-plan-actions .button.primary{background:#4f8cff;color:#fff;border:0;border-radius:7px;box-shadow:none;min-height:44px;font-size:14px;padding:10px 20px;}
.studio-shell .batch-generation-options input{background:#1a1a1a;border:1px solid #393939;border-radius:6px;color:#eee;font-size:14px;height:38px;}
.studio-shell .project-track-pending{background:#1b1b1b;border:1px solid #303030;border-radius:8px;}
body:has(.studio-shell) .generation-status-dock{background:#202020;border:1px solid #3b3b3b;border-radius:10px;box-shadow:0 12px 36px #0006;backdrop-filter:none;}
body:has(.studio-shell) .generation-status-copy strong{color:#eee;font-size:14px;}
body:has(.studio-shell) .generation-status-copy small{color:#aaa;font-size:12px;}
body:has(.studio-shell) .generation-status-mark{background:#303030;color:#eee;}
body:has(.studio-shell) .generation-status-dock[data-phase=failed] .generation-status-mark{background:#352525;color:#eda6a6;}
.studio-shell .studio-brand{max-width:150px;}
.studio-shell .creation-form-card textarea,.studio-shell .creation-form-card textarea:hover,.studio-shell .creation-form-card textarea:focus{font-size:14px;line-height:1.75;color:#e5e5e5;}
.studio-shell .studio-settings-fields textarea.brief-exclude-input{flex:none;padding:10px 14px;line-height:20px;min-height:42px;height:42px;min-block-size:42px;block-size:42px;}
.studio-shell .sidebar .button.accent.sidebar-create{min-width:0;width:100%;}
.studio-shell .creation-results-pane .track-row-actions{opacity:1;}
.studio-shell .creation-results-pane .project-track-action:has(.icon-more){opacity:1;color:#bdbdbd;}
.studio-shell .creation-results-pane .project-track-play:hover .project-track-play-icon{transform:scale(1.08);}
.studio-shell .creation-results-pane .project-track-row.is-active .project-track-play-icon{opacity:1;}
.studio-shell .creation-results-pane .project-track-play:focus-visible{outline:2px solid white;outline-offset:3px;}
body:has(.studio-shell) .playback-dock{min-height:80px;padding-block:12px;}
@media(max-width:650px){
 .studio-shell .creation-compose-head{min-height:52px;gap:6px;align-items:center;}
 .studio-shell .studio-title{padding:8px 0 0;}
 .studio-shell .creation-form-stack{row-gap:16px;}
 .studio-shell .creation-form-card-direction textarea{height:148px;min-height:148px;}
 .studio-shell .creation-form-card-direction .creation-form-card-body,.studio-shell .creation-form-card-direction .creation-primary-field{display:block;min-height:0;height:auto;flex:none;}
 .studio-shell .creation-form-card-direction textarea,.studio-shell .creation-form-card-lyrics textarea{flex:none;}
 .studio-shell .creation-form-card-lyrics .brief-lyrics-input{height:184px;min-height:184px;}
 .studio-shell .creation-form-card textarea{font-size:16px;padding:12px;line-height:1.6;}
 .studio-shell .studio-settings-fields input,.studio-shell .studio-settings-fields textarea,.studio-shell .studio-settings-fields .mula-select-trigger{font-size:16px;}
 .studio-shell .creation-results-pane .project-track-row{min-height:100px;}
 body:has(.studio-shell) .playback-dock{min-height:68px;}
}

/* Fixed application frame; scroll content, never the document/player. */
html:has(.studio-shell),body:has(.studio-shell){height:100%;overflow:hidden;overscroll-behavior:none;}
body:has(.studio-shell){--studio-bottom-space:var(--dock-space,80px);}
body:has(.studio-shell .music-edit-content){--studio-bottom-space:0px;}
.app-shell.studio-shell{height:calc(100dvh - var(--studio-bottom-space));min-height:0;overflow:hidden;}
.studio-shell .sidebar{height:100%;min-height:0;padding-bottom:20px;overflow-y:auto;overscroll-behavior:contain;}
.studio-shell .main{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;}
.studio-shell .topbar{flex-shrink:0;}
.studio-shell .content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;}
.studio-shell .content.create-content{padding:0;overflow:hidden;}
.studio-shell .creation-studio{height:100%;min-height:0;overflow:hidden;align-items:stretch;}
.studio-shell .creation-compose-pane{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;}
.studio-shell .creation-results-pane{position:relative;height:100%;min-height:0;overflow:hidden;}
/* Draggable divider on the results pane's left edge (pane-split.js); desktop widths only. */
.studio-shell .creation-studio.has-split{grid-template-columns:minmax(0,1fr) clamp(300px,var(--results-width),calc(100% - 480px));}
.studio-shell .pane-split-handle{position:absolute;z-index:5;left:0;top:0;bottom:0;width:8px;cursor:col-resize;touch-action:none;}
.studio-shell .pane-split-handle::after{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:transparent;transition:background .15s;}
.studio-shell .pane-split-handle:hover::after,.studio-shell .creation-studio.is-resizing .pane-split-handle::after{background:#6f7ff5;}
.studio-shell .pane-split-handle:focus-visible{outline:none;}
.studio-shell .pane-split-handle:focus-visible::after{background:#6f7ff5;width:3px;}
.studio-shell .creation-studio.is-resizing{cursor:col-resize;user-select:none;}
/* A narrow compose pane: card actions wrap onto a new line instead of squeezing their labels into vertical text. */
.studio-shell .creation-form-card-head{flex-wrap:wrap;row-gap:6px;}
.studio-shell .card-head-actions .button{white-space:nowrap;}
.studio-shell .creation-form-card-head .card-head-actions{flex-wrap:wrap;justify-content:flex-end;row-gap:6px;max-width:100%;}
/* Only after the user drags the divider: the default layout at each screen width stays as it was. */
@container creation-compose (max-width:540px){.studio-shell .creation-studio.has-split .creation-form-stack{grid-template-columns:minmax(0,1fr);}.studio-shell .creation-studio.has-split .has-lyrics .creation-form-card-direction,.studio-shell .creation-studio.has-split .has-lyrics .creation-form-card-lyrics{grid-column:1;}}
.studio-shell.studio-utility .content{padding-bottom:28px;}
@media(max-width:850px){
 .studio-shell .creation-studio{display:block;overflow-y:auto;overscroll-behavior:contain;}
 .studio-shell .pane-split-handle{display:none;}
 .studio-shell .creation-compose-pane{height:auto;overflow:visible;}
 .studio-shell .creation-results-pane{height:auto;min-height:200px;overflow:visible;}
 .studio-shell .creation-results-pane .creation-results-list{overflow:visible;}
}
@media(max-width:650px){
 body:has(.studio-shell){--studio-bottom-space:max(var(--dock-space,0px),calc(var(--bottom,72px) + env(safe-area-inset-bottom,0px)));}
 .studio-shell.studio-utility .content{padding-bottom:24px;}
}

body:has(.studio-shell) .lyrics-prompt-input { background:#121212; border:1px solid #3b3b3b; border-radius:6px; font-size:15px; padding:11px; color:#eee; }

/* Keep the four creation modes together, including in the score editor. */
.studio-shell .creation-compose-head.has-music-editor { flex-wrap:wrap; }
.creation-compose-head.has-music-editor .studio-mode-tabs { min-width:0; max-width:100%; overflow-x:auto; flex-shrink:0; gap:20px; }
.studio-shell .creation-compose-head.has-music-editor .project-destination { margin-left:auto; }
.studio-shell .music-editor-topbar.creation-compose-head { position:sticky; padding:0 0 12px; margin-bottom:16px; }
.studio-shell .music-editor-topbar.creation-compose-head > .button { margin-left:auto; }
@media(max-width:650px) {
 .creation-compose-head.has-music-editor .studio-mode-tabs { gap:14px; }
 .creation-compose-head.has-music-editor .studio-mode-tab { font-size:12px; }
}
/* Earlier Song results kept on this machine (本机生成, read-only; not in the shared library). */
.studio-shell .creation-results-pane .local-song-row .project-track-meta { gap:6px; align-items:center; max-width:100%; }
/* Renamable rows in Recent works: title above its metadata, like the other rows; local rows space their actions like the history rows. */
.studio-shell .creation-results-pane .project-track-row .track-title-inline { display:flex; width:fit-content; max-width:100%; }
.studio-shell .creation-results-pane .local-song-row .project-track-action { min-width:38px; }
/* Narrow: title and type sit at the top so the actions along the bottom never cover them. */
@media(max-width:650px){.studio-shell .creation-results-pane .project-track-copy{align-self:start;padding-top:2px;}}
.local-song-state { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.local-song-row.is-failed .local-song-state { color:#eaa09d; }
/* Next to Song settings the chosen model does not use. */
.studio-settings-fields .is-unsupported, .batch-generation-control.is-unsupported .check-row { opacity:.55; }
.local-song-row[data-local-song-status="cancelled"] .local-song-state { color:inherit; }
/* Title hint + AI lyrics ask row / inline status (matches the graphite fields). */
/* Empty title: a quiet hint inside the field (no big "Untitled"); a typed title keeps the large size. */
.studio-shell .studio-title .creation-title-input::placeholder{font-size:17px;font-weight:400;letter-spacing:0;color:#6f6f78;}
body:has(.studio-shell) .lyrics-ask{margin-bottom:10px;}
body:has(.studio-shell) .lyrics-ask-row{display:flex;align-items:center;gap:8px;background:#121212;border:1px solid #3b3b3b;border-radius:6px;padding:4px 4px 4px 11px;}
body:has(.studio-shell) .lyrics-ask-row:focus-within{border-color:#5a5a5a;}
body:has(.studio-shell) .lyrics-ask-row .lyrics-prompt-input{flex:1;min-width:0;min-height:0;margin:0;padding:6px 0;border:0;background:none;resize:none;font-size:14px;color:#eee;outline:none;}
body:has(.studio-shell) .lyrics-ask-row .lyrics-ask-submit{min-height:30px;padding:0 14px;font-size:13px;}
body:has(.studio-shell) .lyrics-ask-meta{display:flex;justify-content:space-between;align-items:center;margin-top:6px;color:#6f6f78;font-size:12px;}
body:has(.studio-shell) .lyrics-ask-close{background:none;border:0;padding:0;color:#8a8a92;font-size:12px;cursor:pointer;}
body:has(.studio-shell) .lyrics-ask-close:hover{color:#ddd;}
body:has(.studio-shell) .lyrics-status{display:flex;align-items:center;gap:10px;margin-bottom:10px;padding:8px 11px;border-radius:6px;background:#1a1a1c;border:1px solid #2e2e32;font-size:13px;color:#bcbcc5;}
body:has(.studio-shell) .lyrics-status-text{flex:1;min-width:0;}
body:has(.studio-shell) .lyrics-status-action{background:none;border:0;padding:0;color:#429bff;font-size:13px;font-weight:500;cursor:pointer;}
body:has(.studio-shell) .lyrics-status.is-error{color:#ff8a8a;border-color:#4a2a2a;}
body:has(.studio-shell) .lyrics-status-spinner{width:12px;height:12px;border-radius:50%;border:2px solid #3a3a40;border-top-color:#429bff;animation:lyrics-spin .8s linear infinite;flex:none;}
@keyframes lyrics-spin{to{transform:rotate(360deg);}}
.studio-shell .creation-form-card-lyrics:has(.lyrics-status.is-working) .brief-lyrics-input{border-color:rgba(66,155,255,.55);}
/* Which model made a work: quiet metadata after the type, separated by a dot. */
.project-track-kind { display:inline-flex; align-items:baseline; min-width:0; white-space:nowrap; }
.model-tag { display:inline; flex-shrink:0; padding:0; border:0; background:none; font-size:inherit; line-height:inherit; color:#b3b3bc; font-weight:500; white-space:nowrap; }
.model-tag::before { content:"·"; margin:0 .4em; color:#6c6c74; font-weight:400; }
.model-tag[hidden] { display:none; }
.playback-copy .playback-meta { display:flex; align-items:baseline; min-width:0; white-space:nowrap; }
.playback-copy .playback-meta .model-tag { overflow:visible; }

/* Cover & remix: a cover model that needs lyrics asks for them by the lyrics field instead of being locked. */
.studio-shell .cover-lyrics-body{display:flex;flex-direction:column;gap:12px;}
.studio-shell .cover-lyrics-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border-radius:8px;background:#1d1d20;border:1px solid #333338;transition:border-color .2s,background .2s;}
.studio-shell .cover-lyrics-notice[hidden]{display:none;}
.studio-shell .cover-lyrics-notice-text{display:flex;flex-direction:column;gap:2px;min-width:0;}
.studio-shell .cover-lyrics-notice-text strong{color:#ececef;font-size:14px;font-weight:550;}
.studio-shell .cover-lyrics-notice-text span{color:#9a9aa2;font-size:13px;}
.studio-shell .cover-lyrics-notice-actions{display:flex;gap:8px;flex:none;}
.studio-shell .cover-lyrics-notice.is-attention{border-color:#d9bf8b;background:#24211b;}

/* Dice: random style preset / lyrics theme, next to the card titles. */
.studio-shell .card-head-actions{display:inline-flex;align-items:center;gap:10px;}
.studio-shell .dice-button{display:inline-grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:7px;background:none;color:#9a9aa2;cursor:pointer;transition:color .15s,background .15s;}
.studio-shell .dice-button:hover{color:#ececef;background:#ffffff0f;}
.studio-shell .dice-button:focus-visible{outline:2px solid #6f7ff5;outline-offset:2px;}
.studio-shell .dice-button svg{width:18px;height:18px;fill:currentColor;}
.studio-shell .dice-button.is-rolling svg{animation:dice-roll .45s cubic-bezier(.3,.7,.2,1);}
@keyframes dice-roll{0%{transform:rotate(0) scale(1);}50%{transform:rotate(200deg) scale(.86);}100%{transform:rotate(360deg) scale(1);}}
@media (prefers-reduced-motion:reduce){.studio-shell .dice-button.is-rolling svg{animation:none;}}
.studio-shell .dice-undo{padding:0;border:0;background:none;color:#8fa3ff;font-size:13px;cursor:pointer;}
.studio-shell .dice-undo:hover{color:#b8c4ff;}
.studio-shell .lyrics-clear-action .icon{width:17px;height:17px;}
.studio-shell .lyrics-clear-action:disabled{opacity:.4;cursor:default;}

/* Cover & remix: note under the style field when MuLaCover ignores some tag keys. */
.studio-shell .cover-style-note[hidden]{display:none;}
body:has(.studio-shell) .action-confirm-dialog.is-danger .button.danger{background:#b73f3b;border-color:#c95550;color:#fff;}
body:has(.studio-shell) .lyrics-import-dialog input[type="checkbox"],body:has(.studio-shell) .lyrics-import-dialog input[type="radio"]{width:auto;padding:0;accent-color:#6f7ff5;}
/* Profile avatar: a button that opens the preset picker; the same badge shows in the sidebar. */
.studio-shell .profile-avatar-button{position:relative;display:block;margin:0 auto 22px;padding:0;border:0;background:none;border-radius:50%;cursor:pointer;}
.studio-shell .profile-avatar-button .profile-avatar{margin:0;}
.studio-shell .profile-avatar-button:focus-visible{outline:2px solid #6f7ff5;outline-offset:4px;}
.studio-shell .profile-avatar.has-image,.studio-shell .sidebar-avatar.has-image{overflow:hidden;background:#292929;}
.studio-shell .profile-avatar.has-image img,.studio-shell .sidebar-avatar.has-image img{width:100%;height:100%;object-fit:cover;display:block;}
.studio-shell .profile-avatar-edit{position:absolute;right:0;bottom:2px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#f1f1f3;color:#111;box-shadow:0 0 0 3px #111;}
.studio-shell .profile-avatar-edit svg{width:14px;height:14px;}
.studio-shell .sidebar-avatar{width:24px;height:24px;flex:none;display:grid;place-items:center;border-radius:50%;background:#303036;color:#eee;font-size:12px;font-weight:600;}
.studio-shell .avatar-picker{width:min(470px,100%);margin:20px auto 6px;padding:18px;border-radius:12px;background:#161618;border:1px solid #2c2c30;text-align:left;}
.studio-shell .avatar-picker-head{display:flex;flex-direction:column;gap:2px;margin-bottom:14px;}
.studio-shell .avatar-picker-head strong{color:#ececef;font-size:15px;font-weight:550;}
.studio-shell .avatar-picker-head span{color:#8d8d96;font-size:13px;}
.studio-shell .avatar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;}
@media(max-width:520px){.studio-shell .avatar-grid{grid-template-columns:repeat(5,minmax(0,1fr));}}
.studio-shell .avatar-option{aspect-ratio:1;padding:0;border:0;border-radius:50%;overflow:hidden;background:#292929;cursor:pointer;box-shadow:0 0 0 2px transparent;transition:box-shadow .15s,transform .15s;}
.studio-shell .avatar-option:hover{transform:scale(1.04);}
.studio-shell .avatar-option.selected{box-shadow:0 0 0 2px #161618,0 0 0 4px #f1f1f3;}
.studio-shell .avatar-option img{width:100%;height:100%;object-fit:cover;display:block;}
.studio-shell .avatar-option-initial{display:grid;place-items:center;width:100%;height:100%;color:#eee;font-size:20px;font-weight:500;}
.studio-shell .avatar-option{position:relative;}
.studio-shell .avatar-option:disabled{cursor:default;transform:none;opacity:.6;}
.studio-shell .avatar-option-photo{background:#202024;box-shadow:inset 0 0 0 1px #3a3a40;}
.studio-shell .avatar-option-photo.selected{box-shadow:0 0 0 2px #161618,0 0 0 4px #f1f1f3;}
.studio-shell .avatar-option-upload{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:100%;color:#b4b4bc;font-size:10px;line-height:1.1;}
.studio-shell .avatar-option-upload svg{width:16px;height:16px;}
.studio-shell .avatar-option-replace{position:absolute;inset:0;display:grid;place-items:center;background:#0000008c;color:#fff;opacity:0;transition:opacity .15s;}
.studio-shell .avatar-option-photo:hover .avatar-option-replace,.studio-shell .avatar-option-photo:focus-visible .avatar-option-replace{opacity:1;}
.studio-shell .avatar-option-replace svg{width:16px;height:16px;}
.studio-shell .avatar-picker-error{margin:12px 0 0;padding:8px 10px;border-radius:8px;background:#3a1d1d;border:1px solid #6b2f2f;color:#ffb4b4;font-size:13px;}
.studio-shell .avatar-picker-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;}
.studio-shell .avatar-picker-status{margin:12px 0 0;color:#a7a7af;font-size:12px;}
.profile-setup-card .avatar-picker-actions{position:sticky;bottom:-1px;z-index:2;margin:14px -14px -14px;padding:12px 14px;background:linear-gradient(180deg,#191919e6,#191919 32%);border-top:1px solid #303034;}
/* Song tab: Simple / Advanced switch and the one-description Simple editor. */
/* Wraps so the model note (a full-width line) drops below instead of squeezing the switch and pushing the picker off the pane. */
.studio-shell .song-mode-row{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;min-height:44px;}
/* The picker stays at the right even when it wraps under the switch (narrow screens), so its right-anchored menu stays on screen. */
.studio-shell .song-mode-row>.model-picker-slot>.model-picker{margin-left:auto;}
.studio-shell .song-mode-toggle{flex:none;display:inline-flex;gap:2px;padding:3px;border:1px solid #252525;border-radius:999px;background:#161616;}
.studio-shell .song-mode-option{white-space:nowrap;min-height:32px;padding:6px 16px;border:0;border-radius:999px;background:none;color:#a3a3a3;font-size:13px;font-weight:500;cursor:pointer;}
.studio-shell .song-mode-option:hover:not(:disabled){color:#f3f3f3;}
.studio-shell .song-mode-option.active{background:#2a2a2a;color:#fff;}
.studio-shell .song-mode-option:focus-visible{outline:2px solid #4f8cff;outline-offset:2px;}
.studio-shell .song-mode-option:disabled{cursor:default;opacity:.6;}
.studio-shell .song-simple-editor .simple-description-card{grid-column:1/-1;}
.studio-shell .song-simple-editor .creation-form-card-direction textarea.simple-description-input{height:168px;min-height:168px;font-size:15px;line-height:1.6;}
@media(max-width:650px){.studio-shell .song-simple-editor .creation-form-card-direction textarea.simple-description-input{height:140px;min-height:140px;}
 .studio-shell .song-mode-row .model-picker-menu{left:auto;right:0;}}
/* Create form polish (Song Advanced, Instrumental, Cover & remix):
   - the model picker lines up with the title line, not with title + its hint below;
   - Import lyrics is a plain action like AI lyrics, so the Lyrics head is as tall as the Style head
     and both boxes start on the same line;
   - side by side, the Style box fills its card like the Lyrics box, so both end on the same line. */
.studio-shell .studio-title.has-model-picker{align-items:flex-start;}
.studio-shell .studio-title.has-model-picker>.model-picker-slot>.model-picker{margin-top:-1px;}
.studio-shell .button.secondary.small.lyrics-import-action{color:#bcbcc5;background:none;border:0;box-shadow:none;font-size:13px;min-height:26px;height:26px;padding:0 4px;}
.studio-shell .button.secondary.small.lyrics-import-action:hover{color:#ececef;background:#ffffff0f;}
.studio-shell .has-lyrics .creation-form-card-direction{display:flex;flex-direction:column;}
.studio-shell .has-lyrics .creation-form-card-direction>.creation-form-card-body{flex:1 1 auto;display:flex;flex-direction:column;min-height:0;}
.studio-shell .has-lyrics .creation-form-card-direction .creation-primary-field{flex:1 1 auto;}
.studio-shell .has-lyrics .creation-form-card-direction textarea.brief-style-input{flex:1 1 auto;max-height:none;}

/* Studio for accounts without it (2026-11-14): the "升级" badge on its entries and the intro page. */
.studio-upgrade-badge{margin-left:auto;padding:2px 7px;border-radius:999px;background:linear-gradient(90deg,#4f8cff,#9b6bff);color:#fff;font-size:11px;font-weight:600;line-height:1.4;white-space:nowrap;}
.work-menu-item.is-locked,.nav-button.is-locked{display:flex;align-items:center;gap:8px;}
/* The sidebar is too narrow for label + badge on one line: the badge sits on the entry's corner. */
.nav-button.is-locked{position:relative;overflow:visible;}
.nav-button.is-locked>span:not(.studio-upgrade-badge){white-space:nowrap;}
.nav-button.is-locked .studio-upgrade-badge{position:absolute;top:-7px;right:-4px;margin:0;padding:1px 6px;font-size:10px;box-shadow:0 0 0 2px #101010;}
.button.is-locked .studio-upgrade-badge{margin-left:6px;}
.studio-intro{display:grid;grid-template-columns:minmax(0,470px) minmax(0,1fr);gap:48px;align-items:start;max-width:1180px;margin:0 auto;padding:44px 8px;color:#f3f3f3;}
.studio-intro-copy{display:flex;flex-direction:column;gap:20px;padding-top:24px;}
.studio-intro-eyebrow{align-self:flex-start;padding:5px 11px;border-radius:999px;border:1px solid #3a4f80;color:#9fc0ff;font-size:12px;}
.studio-intro h1{margin:0;font-size:clamp(30px,3.4vw,44px);line-height:1.12;letter-spacing:-.01em;}
.studio-intro-copy>p{margin:0;color:#bdbdbd;font-size:16px;line-height:1.7;}
.studio-intro-features{margin:0;padding:0;list-style:none;display:grid;gap:14px;font-size:15px;}
.studio-intro-features li{display:flex;gap:12px;}
.studio-intro-features li::before{content:"✓";color:#4f8cff;font-weight:700;}
.studio-intro-features strong{margin-right:8px;}
.studio-intro-features span{color:#a3a3a3;}
.studio-intro-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px;}
.studio-intro-price{min-height:1.4em;color:#8a8a8a;font-size:13px;}
.studio-intro-preview{position:relative;min-height:460px;border-radius:22px;border:1px solid #2a2a2a;background:#141414;overflow:hidden;}
.studio-intro-preview-bar{display:flex;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #232323;font-size:14px;color:#a3a3a3;}
.studio-intro-preview-bar strong{color:#f3f3f3;}
.studio-intro-sections{display:grid;grid-template-columns:1fr 2fr 2fr 1.5fr 2fr;gap:6px;padding:20px 20px 10px;font-size:12px;color:#a3a3a3;}
.studio-intro-wave{position:relative;display:flex;align-items:center;gap:2px;height:120px;margin:0 20px;padding:0 10px;border-radius:12px;background:#1b1b1b;}
.studio-intro-wave>span{flex:1;background:#3f6fb8;border-radius:1px;}
.studio-intro-wave>.studio-intro-selection{position:absolute;left:42%;width:16%;top:0;bottom:0;background:rgba(155,107,255,.22);border:1.5px solid #9b6bff;border-radius:6px;}
.studio-intro-track{height:56px;margin:14px 20px 0;border-radius:12px;background:#1b1b1b;}
.studio-intro-preview::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,16,16,0) 30%,rgba(16,16,16,.9) 88%);pointer-events:none;}
.studio-intro-lock{position:absolute;z-index:1;left:50%;bottom:48px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:999px;background:#1f1f1f;border:1px solid #333;font-size:14px;white-space:nowrap;}
.studio-intro-lock .icon{width:16px;height:16px;}
@media (max-width:900px){.studio-intro{grid-template-columns:1fr;gap:28px;padding:24px 0;}.studio-intro-preview{min-height:360px;}}
/* Narrow sidebar (180px, 651-1050px wide): labels stay on one line ("MuLa Studio", "My account"). */
@media(min-width:651px) and (max-width:1050px){.studio-shell .sidebar .nav-button,.studio-shell .sidebar .button.accent.sidebar-create{padding-inline:12px;gap:10px;white-space:nowrap;}.studio-shell .sidebar .nav-button > span:not(.icon){min-width:0;overflow:hidden;text-overflow:ellipsis;}}
