/* One MetronomeBase workspace shell for the standalone music tools.
   Matches the homepage's light sidebar, topbar, navigation and mobile drawer.
   Explicitly scoped so each instrument's own tool layout keeps working. */
.studio-shell,.studio-shell *{box-sizing:border-box}
.studio-shell{display:flex;min-height:100vh;min-width:0;background:#fff;color:#1d2431;font-family:Rubik,system-ui,-apple-system,sans-serif}
.studio-shell .ico{width:20px;height:20px;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;fill:none;flex:none}
.studio-shell .svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.studio-shell .studio-sidebar{width:252px;flex:0 0 252px;min-width:0;position:sticky;top:0;height:100vh;z-index:20;display:flex;flex-direction:column;background:#f8fafc;border-right:1px solid #e7ebf0;color:#2a3341}
.studio-shell .studio-sidebar a.site-brand{width:100%;height:103px;flex:0 0 103px;padding:0 8px;justify-content:center;gap:7px;color:#111c2d}
.studio-shell .studio-sidebar a.site-brand .site-brand-icon{width:37px;height:37px;flex:0 0 37px}
.studio-shell .studio-sidebar a.site-brand .site-brand-wordmark{font-size:14px;flex:0 1 auto;min-width:0;overflow:visible;white-space:nowrap}
.studio-shell .studio-side-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 14px;scrollbar-color:#cad2dd transparent}
.studio-shell .studio-nav-title{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#7c8895;margin:0 17px 13px}
.studio-shell .studio-nav-title-second{margin-top:31px}
.studio-shell .studio-nav-group{display:grid;gap:5px}
.studio-shell .studio-nav-link{display:flex;width:100%;min-height:41px;align-items:center;gap:14px;padding:11px 13px;border:0;border-radius:10px;background:transparent;color:#596674;font:600 13px/1.35 Rubik,system-ui,sans-serif;text-align:left;text-decoration:none;transition:background .2s,color .2s}
.studio-shell .studio-nav-link .ico{width:19px;height:19px;color:#8a97a6}
.studio-shell .studio-nav-link:hover{background:#eff4f0;color:#27342d}
.studio-shell .studio-nav-link.active,.studio-shell .studio-nav-link[aria-current=page]{background:#e7f2e6;color:#244b2f}
.studio-shell .studio-nav-link.active .ico,.studio-shell .studio-nav-link[aria-current=page] .ico{color:#42865a}
.studio-shell .studio-side-footer{margin-top:auto;padding:18px 17px 24px}
.studio-shell .studio-feedback-link{display:flex;align-items:center;gap:11px;padding:15px 12px;border:1px solid #e7ebf0;border-radius:12px;background:#fff;color:#27333f;text-decoration:none;font-size:11px;font-weight:800}
.studio-shell .studio-feedback-link .ico{color:#44875a;width:19px;height:19px}
.studio-shell .studio-feedback-link:hover{background:#f0f6f1}
.studio-shell .studio-main-shell{flex:1;min-width:0;display:flex;flex-direction:column}
.studio-shell .studio-topbar{width:100%;height:88px;min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 50px;background:#fff;border:0}
.studio-shell .studio-top-context{display:flex;flex-direction:column;gap:3px;min-width:0;color:#1d2431;font-weight:800;font-size:18px;letter-spacing:-.4px;line-height:1.24}
.studio-shell .studio-top-overline{color:#a0a7b3;font-size:9px;letter-spacing:1.8px;font-weight:800}
.studio-shell .studio-top-actions{display:flex;align-items:center;gap:24px;min-width:0}
.studio-shell .studio-language-control{display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #e5eaf0;border-radius:10px;background:#fff;color:#5b6775;white-space:nowrap}
.studio-shell .studio-language-control .ico{width:16px;height:16px}
.studio-shell .studio-language-control select{appearance:auto;border:0;background:transparent;color:#2a3441;font:700 12px Rubik,system-ui,sans-serif;max-width:145px;cursor:pointer;outline:none}
.studio-shell .studio-share-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:40px;padding:11px 15px;border:1px solid #ebedf2;border-radius:11px;background:#fff;color:#424b59;font:800 12px Rubik,system-ui,sans-serif;cursor:pointer}
.studio-shell .studio-share-button .ico{width:17px;height:17px}
.studio-shell .studio-share-button:hover{background:#f8fafc}
.studio-shell .studio-mobile-only,.studio-shell a.studio-mobile-brand{display:none}
.studio-shell .studio-menu-button{border:0;background:transparent;color:#344052;cursor:pointer;padding:5px;align-items:center;justify-content:center}
.studio-shell .studio-page-content{width:100%;max-width:1560px;margin:0 auto;padding-left:50px;padding-right:50px;min-width:0;flex:1}
.studio-shell .studio-page-content > .mb-footer{width:100%;max-width:100%}
.studio-shell .studio-main-shell > .mb-footer{width:calc(100% - 100px);margin:14px 50px 38px;max-width:1460px;align-self:center}
.studio-shell .studio-scrim{display:none}
.studio-shell .studio-scrim[hidden]{display:none!important}
.studio-shell .studio-nav-link:focus-visible,.studio-shell .studio-menu-button:focus-visible,.studio-shell .studio-share-button:focus-visible{outline:3px solid #8d8aed;outline-offset:2px}
@media(min-width:1550px){
  .studio-shell .studio-topbar{padding-left:65px;padding-right:65px}
  .studio-shell .studio-page-content{padding-left:65px;padding-right:65px}
  .studio-shell .studio-main-shell > .mb-footer{width:calc(100% - 130px)}
}
@media(max-width:1190px){
  .studio-shell .studio-sidebar{width:222px;flex-basis:222px}
  .studio-shell .studio-topbar{padding-left:30px;padding-right:30px}
  .studio-shell .studio-page-content{padding-left:30px;padding-right:30px}
  .studio-shell .studio-main-shell > .mb-footer{width:calc(100% - 60px)}
}
@media(max-width:930px){
  .studio-shell .studio-sidebar{width:214px;flex-basis:214px}
  .studio-shell .studio-top-actions{gap:8px}
}
@media(max-width:760px){
  .studio-shell .studio-sidebar{position:fixed;left:0;top:0;width:min(300px,88vw);max-width:100vw;height:100dvh;flex-basis:auto;transform:translateX(-105%);transition:transform .25s ease;box-shadow:16px 0 40px #090d1820;z-index:30;visibility:hidden}
  .studio-shell .studio-sidebar.open{transform:translateX(0);visibility:visible}
  .studio-shell .studio-sidebar a.site-brand{gap:9px;padding-inline:10px}
  .studio-shell .studio-sidebar a.site-brand .site-brand-icon{width:40px;height:40px;flex-basis:40px}
  .studio-shell .studio-sidebar a.site-brand .site-brand-wordmark{font-size:clamp(14px,4.15vw,19px);overflow:visible}
  .studio-shell .studio-scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:29;background:rgb(0 0 0 / 42%)}
  .studio-shell .studio-mobile-only{display:inline-flex}
  .studio-shell .studio-topbar{height:70px;min-height:70px;padding:0 12px;gap:7px;justify-content:flex-start}
  .studio-shell .studio-top-context{display:none}
  .studio-shell .studio-topbar a.studio-mobile-brand{display:inline-flex;align-items:center;flex:1 1 0;min-width:0;max-width:none;gap:6px}
  .studio-shell .studio-topbar a.studio-mobile-brand .site-brand-icon{width:32px;height:32px;flex:0 0 32px}
  .studio-shell .studio-topbar a.studio-mobile-brand .site-brand-wordmark{min-width:0;white-space:nowrap;overflow:hidden;font-size:clamp(13px,3.6vw,17px);letter-spacing:-.055em}
  .studio-shell .studio-top-actions{margin-left:auto;flex:0 0 auto;gap:5px}
  .studio-shell .studio-language-control{padding:5px}
  .studio-shell .studio-language-control select{max-width:80px;font-size:11px}
  .studio-shell .studio-share-button{width:36px;height:36px;min-height:36px;flex:0 0 36px;padding:8px}
  .studio-shell .studio-share-button span{display:none}
  .studio-shell .studio-menu-button{width:34px;height:36px;flex:0 0 34px}
  .studio-shell .studio-page-content{padding-left:16px;padding-right:16px}
  .studio-shell .studio-main-shell > .mb-footer{width:calc(100% - 32px);margin:12px 16px 30px}
}
@media(max-width:380px){
  .studio-shell .studio-topbar{padding-inline:9px;gap:5px}
  .studio-shell .studio-topbar a.studio-mobile-brand{gap:5px}
  .studio-shell .studio-topbar a.studio-mobile-brand .site-brand-icon{width:29px;height:29px;flex-basis:29px}
  .studio-shell .studio-topbar a.studio-mobile-brand .site-brand-wordmark{font-size:12px}
  .studio-shell .studio-language-control select{max-width:62px;font-size:10px}
  .studio-shell .studio-share-button{width:33px;height:33px;min-height:33px;flex-basis:33px}
  .studio-shell .studio-menu-button{width:32px;flex-basis:32px}
}
@media(prefers-reduced-motion:reduce){
  .studio-shell .studio-sidebar{transition:none}
}

/* Match the homepage share dialog on every standalone page. */
.studio-share-dialog{width:min(440px,calc(100vw - 32px));max-width:440px;max-height:calc(100dvh - 32px);overflow-y:auto;padding:24px;border:1px solid #e5eaf0;border-radius:17px;background:#fff;color:#202a3b;font:12px/1.6 Rubik,system-ui,sans-serif;box-shadow:0 20px 70px #11182733}
.studio-share-dialog::backdrop{background:rgb(14 21 34 / 42%)}
.studio-share-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}
.studio-share-heading h2{margin:0;font:800 20px Rubik,system-ui,sans-serif;letter-spacing:-.5px}
.studio-share-heading form{margin:0}
.studio-share-dialog button,.studio-share-dialog a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 13px;border:1px solid #dfe5ee;border-radius:9px;color:#313e50;background:#f8f9fc;text-decoration:none;font:750 12px Rubik,system-ui,sans-serif;cursor:pointer}
.studio-share-dialog a:hover,.studio-share-dialog button:hover{background:#edf0f8}
.studio-share-platforms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:20px}
.studio-share-dialog label{display:block;margin-bottom:7px;font-size:11px;font-weight:750}
.studio-share-dialog input{width:100%;min-width:0;padding:11px;border:1px solid #e2e7ef;border-radius:9px;background:#fff;font:12px Rubik,system-ui,sans-serif}
.studio-share-buttons{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 15px}
.studio-share-dialog button.studio-share-primary{color:#fff;background:#252d3d;border-color:#252d3d}
.studio-share-dialog button.studio-share-primary:hover{background:#384358}
.studio-share-dialog p{color:#788396;font-size:11px;margin:8px 0 0}
.studio-share-dialog .studio-share-status{min-height:16px;color:#3b7153}
