/* Music Studio page shell: keeps the site's chrome around the DAW. */
.studio-page .site-header{position:relative;background:#080808;backdrop-filter:none}
.studio-page .site-main{margin-left:0;padding-top:0;min-height:0}
.studio-page .site-header,
.studio-bar{-webkit-user-select:text;user-select:text}

.studio-bar{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:10px 24px;padding-top:15px;padding-bottom:15px;
  border-bottom:1px solid var(--line);background:#080808;
}
.studio-bar .text-link{color:var(--ink);white-space:nowrap}
.studio-bar .text-link:hover{color:var(--accent)}
.studio-bar .eyebrow{margin:0;color:var(--muted)}
.studio-bar .micro{color:var(--dim);font-size:9px}

/* Restore the icon weight the DAW expects after style.css's global svg rule. */
#root svg{stroke-width:2}

@media(max-width:1100px){
  .studio-page .site-header{position:relative}
}
@media(max-width:650px){
  .studio-bar{padding-top:12px;padding-bottom:12px;gap:6px 14px}
  .studio-bar .eyebrow{order:3;flex-basis:100%;margin-top:2px;font-size:8px}
  .studio-bar .micro{display:none}
}


/* White and black piano keys in both Synth and Live Keys.
   The app's old #0a0a0a black keys blended into the new dark canvas. */
#root .touch-none.select-none > button.bg-white {
  background-color: #f4f0e6;
  color: #171717;
  border: 2px solid #5b5a52;
}

#root .touch-none.select-none > button[class*="bg-[#0a0a0a]"] {
  background-color: #242520;
  border-color: #b4b1a5;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 3px 5px rgb(0 0 0 / 65%);
}

/* The recorder is rendered through a portal, so scope by the page body. */
body.studio-page [role="dialog"] button[aria-pressed="true"] {
  background-color: #39ff88 !important;
  color: #080808 !important;
  border-color: #39ff88;
  box-shadow: 0 0 0 1px #39ff88, 0 0 12px rgb(57 255 136 / 45%);
}

/* Touch targets inside the DAW: enlarge the hit box, never the glyph. */
#root .h-10.w-10{min-width:44px;min-height:44px}
#root button.fixed.right-3{min-height:44px}
#root button.w-full.items-center.justify-between{min-height:44px;min-width:44px;position:relative}
#root button.w-full.items-center.justify-between::after{content:'';position:absolute;inset:-1px -3px}
#root header button{min-height:44px}
#root header button.h-7{min-width:44px}
#root footer:has(> a[href*="LICENSES"]){min-height:44px;padding-block:0}
#root a[href*="LICENSES"]{display:inline-flex;align-items:center;min-height:44px;position:relative}
#root a[href*="LICENSES"]::after{content:'';position:absolute;inset:0 -8px}
