/* Loaded last by all tool entries. Keep each engine's layout and local controls. */
.workspace-embedded .tool-app-nav,.workspace-embedded .tw-next-tools,.workspace-embedded [data-spinz-menu-open],.workspace-embedded [data-spinz-menu],.workspace-embedded .spinz-app-footer,.workspace-embedded .site-design-header,.workspace-embedded .sd-header,.workspace-embedded .sd-footer{display:none!important}
.workspace-embedded body{--studio-nav-height:0px;--workspace-nav-height:0px;min-height:100dvh;min-width:0!important}
.workspace-embedded .master-cinematic>header>.header-right .account-button,.workspace-embedded .master-cinematic>header>a,.workspace-embedded #library-open{display:none!important}
.workspace-embedded .master-cinematic>header{min-height:60px;height:60px;padding-top:0;justify-content:flex-start;gap:16px}
.workspace-embedded .master-cinematic>header nav{margin-right:auto}
.workspace-embedded .master-cinematic #new-track{margin-left:auto}
.workspace-embedded .master-cinematic .header-right{margin-left:0}
.workspace-embedded .master-cinematic:not(.phone-ux) #file-drop{display:none!important}
.workspace-embedded .master-cinematic .intake-actions{display:flex!important;flex-direction:column;align-items:stretch;gap:12px;width:100%;max-width:460px;margin:24px auto 0}
.workspace-embedded .master-cinematic .intake-actions>.primary,.workspace-embedded .master-cinematic .reference-button{width:100%;min-height:54px;margin:0!important;display:flex;align-items:center;justify-content:center;text-align:center;border-radius:12px}
.workspace-embedded .master-cinematic .reference-button{border:1px solid #d3b3ef80!important;background:linear-gradient(115deg,#c4a7ff1d,#e9a9e012 48%,#ffad8e0d)!important;color:#ead4fa!important;font-size:14px!important;font-weight:500!important;padding:15px!important}
.workspace-embedded .master-cinematic #file-hint{text-align:center;margin:3px 0 0;font-size:11px}
.workspace-embedded .master-cinematic #access-note{text-align:center;font-size:11px;margin:0}
.workspace-embedded .bt-sidebar,.workspace-embedded .bg-studio-top,.workspace-embedded .bt-mobile-head{display:none!important}
.workspace-embedded .bt-main{margin-left:0!important;width:100%!important;height:100dvh!important;padding-top:0!important}
.workspace-embedded .bt-mobile-tabs{display:flex!important;position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;height:52px!important;padding:0 20px!important;border-radius:0!important;border-top:0!important;border-bottom:1px solid #ffffff12!important;justify-content:flex-start!important;background:#141414!important;z-index:5!important}
.workspace-embedded .bt-mobile-tabs button{flex:0 0 auto!important;min-width:90px!important;flex-direction:row!important;gap:8px!important;font-size:12px!important;padding:12px!important}
.workspace-embedded .bt-mobile-tabs button{display:flex!important;align-items:center!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:#a9a6ad!important}.workspace-embedded .bt-mobile-tabs button[aria-pressed=true]{border-bottom-color:#e8ba77!important;color:#e8ba77!important;background:#e8ba7709!important}.workspace-embedded .bt-mobile-tabs svg{width:17px!important;height:17px!important}
html.workspace-embedded body.beat-page.beat-dark.studio-workspace:not(.has-beat) .bt-player{display:none!important}.workspace-embedded .kg-tools-link,.workspace-embedded .vs-tools-link{display:none!important}
.workspace-embedded .bt-mobile-tabs [data-workspace=library]{display:none!important}
.workspace-embedded .bt-frame{padding-bottom:16px!important;height:calc(100dvh - 52px)!important}
.workspace-embedded .acc-nav{display:none!important}.workspace-embedded .acc-layout{grid-template-columns:1fr!important;max-width:1100px!important;margin:0 auto!important}.workspace-embedded .account-ui .topbar,.workspace-embedded .account-ui>.sd-site-header,.workspace-embedded .account-ui .account-hero,.workspace-embedded .account-ui>.sd-site-footer{display:none!important}
.workspace-embedded .account-ui #account-main{padding-top:24px!important}.workspace-embedded .account-ui .acc-head{padding-top:0}.workspace-embedded .account-ui [data-panel=beats],.workspace-embedded .account-ui [data-panel=masters]{display:none!important}
#workspace-save-status{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);max-width:calc(100% - 28px);width:max-content;z-index:10020;background:#28232f;border:1px solid #c4a7ff44;border-radius:12px;padding:12px 16px;color:#f0e4fc;font:12px/1.5 'DM Sans',system-ui,sans-serif;box-shadow:0 10px 40px #0008}#workspace-save-status button{border:0;background:#e1c4f2;color:#211627;border-radius:7px;padding:7px 12px;font:inherit;margin-left:5px;min-height:36px}.workspace-storage-note{font:12px/1.5 'DM Sans',system-ui,sans-serif;color:#8f8998;text-align:center;padding:12px 18px;margin:0;background:#0d0d10}
@media(max-width:760px){.workspace-embedded .master-cinematic>header{height:50px;min-height:50px;padding:0 18px;gap:6px}.workspace-embedded .master-cinematic>header nav{gap:3px}.workspace-embedded .master-cinematic>header nav button{font-size:11px;padding:8px 10px}.workspace-embedded .master-cinematic #new-track{font-size:11px;padding:7px}.workspace-embedded .master-cinematic .lang{display:none}.workspace-embedded .master-cinematic .intake-actions{max-width:none;gap:10px}.workspace-embedded .master-cinematic #access-note{font-size:10px}.workspace-embedded .bt-frame{padding-bottom:12px!important}.workspace-embedded .account-ui #account-main{padding:10px 0!important}.workspace-embedded .account-ui .wrap{padding:0 16px!important}}

html.workspace-embedded body.beat-page.beat-dark.studio-workspace .bt-main{padding:0!important}html.workspace-embedded body.beat-page.beat-dark.studio-workspace .bt-player{bottom:0!important}html.workspace-embedded body.beat-page.beat-dark.studio-workspace.has-beat .bt-frame{padding-bottom:100px!important}

.workspace-embedded .account-ui>header.sd-nav,.workspace-embedded .account-ui>footer,.workspace-embedded .account-ui>header{display:none!important}

@media(max-width:760px){html.workspace-embedded .master-cinematic>header .header-right{position:static!important;inset:auto!important;height:auto!important;transform:none!important;gap:0!important}html.workspace-embedded .master-cinematic>header .lang{display:flex!important;position:static!important;margin:0!important}html.workspace-embedded .master-cinematic>header .lang select{width:76px!important;font-size:10px!important;padding:6px 16px 6px 2px!important}html.workspace-embedded .master-cinematic>header{padding:0!important}html.workspace-embedded .master-cinematic>header nav button{padding:8px!important}}

.workspace-purchases .acc-hero{display:none!important}.workspace-embedded .sd-account-mobile,.workspace-embedded .sd-account-picker,.workspace-embedded label:has(#sd-account-section),.workspace-embedded .acc-layout>div:has(>#sd-account-section){display:none!important}

.workspace-install-help{margin:24px 0;border:1px solid #ffffff20;border-radius:12px;padding:16px}.workspace-install-help summary{cursor:pointer;font-size:13px;color:#e0c7ed;min-height:32px}.workspace-install-help .library-access{margin:12px 0 0!important}.workspace-purchases #purchases>.acc-head{display:none!important}.workspace-purchases .acc-layout{padding:0!important}.workspace-purchases .account-ui .wrap{padding:0 clamp(20px,4vw,48px)!important}

html.workspace-embedded{color-scheme:dark;scrollbar-color:#55505c #0b0c0e}
html.workspace-embedded .master-cinematic>header{display:flex!important;align-items:center!important;flex-wrap:nowrap!important}html.workspace-embedded .master-cinematic>header nav{position:static!important;transform:none!important;display:flex!important;order:0!important;width:auto!important;flex:1 1 auto!important}html.workspace-embedded .master-cinematic>header .header-right{order:2!important;flex:0 0 auto!important}html.workspace-embedded .master-cinematic>header nav button{min-width:0!important}

.workspace-embedded .account-ui .acc-panel,.workspace-embedded .account-ui .acc-panel [id]{scroll-margin-top:20px!important}

/* The parent owns invitations. Collapse the legacy result header's empty rows. */
.workspace-embedded .rf-tool-bar{display:none!important}
html.workspace-embedded .master-cinematic>header.shell{height:60px!important;min-height:60px!important;grid-template-rows:none!important}
@media(max-width:760px){html.workspace-embedded .master-cinematic>header.shell{height:50px!important;min-height:50px!important}}
@media(max-width:350px){html.workspace-embedded .master-cinematic>header nav button{padding-inline:5px!important}html.workspace-embedded .master-cinematic>header .lang select{width:62px!important}html.workspace-embedded .master-cinematic #new-track{padding-inline:6px!important}}

/* Direct tool entry: show the working surface during background initialization. */
html body .tool-workspace.workspace-entry-direct[data-engine]>.m-stage-area{display:grid!important}
html body .tool-workspace.workspace-entry-direct .tw-connection{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:20px 0;padding:16px 18px;border:1px solid #c7a3d947;border-radius:12px;background:#221b29;color:#eee6f2}
html body .tool-workspace.workspace-entry-direct .tw-connection[hidden]{display:none!important}
html body .tool-workspace.workspace-entry-direct #tw-status{margin:0;min-height:0;flex:1;font-size:13px;line-height:1.6}
html body .tool-workspace.workspace-entry-direct #tw-retry{min-height:44px;padding:8px 18px;background:#d6b6f5;color:#19121f;border:0;border-radius:9px;font:500 13px inherit;white-space:nowrap}

/* Mastering shares the app gutter instead of the standalone site's centered cap. */
html.workspace-embedded body.master-cinematic{--master-app-gutter:32px;--shell:calc(100% - var(--master-app-gutter)*2)}
html.workspace-embedded .master-cinematic>header.shell,
html.workspace-embedded .master-cinematic>main.shell{max-width:none;min-width:0}
html.workspace-embedded .master-cinematic>header nav{padding-left:0;border-left:0}
html.workspace-embedded .master-cinematic #scrubber{right:var(--master-app-gutter)}
html.workspace-embedded .master-cinematic #video-timeline #scrubber{right:auto}
@media(max-width:760px){html.workspace-embedded body.master-cinematic{--master-app-gutter:18px}}
@media(max-width:350px){html.workspace-embedded body.master-cinematic{--master-app-gutter:10px}}
@media(max-width:700px){
 html.workspace-embedded .master-cinematic #scrubber{right:9px}
 html.workspace-embedded .master-cinematic #video-timeline #scrubber{right:auto}
}
/* 29 Oct 2026, phone layout: the reference option is a quiet link under the main button */
html.workspace-embedded body.master-cinematic.phone-ux #setup .reference-button{border:0!important;background:none!important;color:#c8b7d6!important;font-size:13px!important;font-weight:400!important;padding:6px 0!important;min-height:40px!important;justify-content:center!important;text-align:center!important;border-radius:0!important}
/* 29 Oct 2026, Mastering 2.0 on phones: the mode switch is a small pill, the language control is hidden (English only) */
@media(max-width:760px){
html.workspace-embedded .master-cinematic.phone-ux>header nav{display:inline-flex!important;flex:none!important;width:auto!important;padding:3px!important;border:1px solid #ffffff18!important;border-radius:999px!important;background:#100f14!important;gap:0!important;margin:0 auto 0 0!important}
html.workspace-embedded .master-cinematic.phone-ux>header nav button{min-height:34px!important;padding:7px 15px!important;font-size:12px!important;border-radius:999px!important;color:#9b949e!important;background:none!important;border:0!important;box-shadow:none!important}
html.workspace-embedded .master-cinematic.phone-ux>header nav button[aria-pressed=true]{background:#2a2333!important;color:#fff!important}
html.workspace-embedded .master-cinematic.phone-ux>header nav button:after,html.workspace-embedded .master-cinematic.phone-ux>header nav button:before{display:none!important}
html.workspace-embedded .master-cinematic.phone-ux>header :is(.lang,.spinz-language-control,#library-open){display:none!important}
html.workspace-embedded .master-cinematic.phone-ux>header.shell{border-bottom:0!important}
}
html.workspace-embedded body.master-cinematic.phone-ux .intake-actions>.primary{border-radius:999px!important;min-height:54px!important}
/* 29 Oct 2026 (Sri): the Audio / Video / Album pill sits centred on phones. */
@media(max-width:700px){html.workspace-embedded body.master-cinematic.phone-ux>header nav{margin:0 auto!important}}
/* 29 Oct 2026 (Sri): start screen fits every phone height; these beat the shell's own margins above. */
@media(max-width:700px){
 html.workspace-embedded body.master-cinematic.phone-ux[data-phase=setup] .intake-actions{margin-top:clamp(6px,1.6vh,12px)!important;gap:0!important}
 html.workspace-embedded body.master-cinematic.phone-ux[data-phase=setup] .models{margin-bottom:0!important}
 html.workspace-embedded body.master-cinematic.phone-ux[data-phase=setup] .intake-actions>.primary{min-height:clamp(42px,6.6vh,54px)!important}
}
@media(max-width:700px) and (max-height:470px){
 html.workspace-embedded body.master-cinematic.phone-ux[data-phase=setup] .intake-actions{margin-top:6px!important}
 html.workspace-embedded body.master-cinematic.phone-ux[data-phase=setup] .intake-actions>.primary{min-height:40px!important}
}
@media(max-width:700px){html.workspace-embedded body.master-cinematic.phone-ux[data-phase=setup] .intake-actions{margin:0!important}}
@media(max-width:700px){html.workspace-embedded body.master-cinematic.phone-ux[data-phase=setup] .intake-actions>.primary{min-height:clamp(50px,7.4vh,60px)!important}}
@media(max-width:700px) and (max-height:470px){html.workspace-embedded body.master-cinematic.phone-ux[data-phase=setup] .intake-actions>.primary{min-height:44px!important}}

/* 12 Nov 2026, polish pass: the "Retry save" button is a full tap target on phones. */
@media(max-width:760px){#workspace-save-status button{min-height:44px;padding-inline:14px}}
/* 12 Nov 2026, third round: Mastering is the one app page that does not load fonts.css, yet its account button, account menu, credits sheet and payment methods ask for 'DM Sans' (it only declares the same file as "DM"). This file is loaded by every tool, so the brand font is declared here too. Same file as fonts.css, no second download. */
@font-face{font-family:'DM Sans';src:url('/assets/site-design/home/dm-sans.woff2') format('woff2');font-weight:100 1000;font-style:normal;font-display:swap}
