/* Studio and navigation repair. Normal document flow prevents clipped controls. */
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog[open]{
 position:fixed;inset:0;display:flex;flex-direction:column;width:min(1180px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;min-height:0;margin:0 auto!important;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)!important;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;background:var(--bs-page);border-radius:0;
}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b90-focus-bar{
 position:sticky;top:0;z-index:20;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;min-height:52px;height:auto;padding:4px 14px;gap:12px;background:var(--bs-header);border-bottom:1px solid var(--bs-line);
}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b90-focus-bar span{font-size:11px;line-height:1.4;letter-spacing:.06em;min-width:0}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b90-focus-bar button{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:26px;flex-shrink:0}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b91-player{
 display:flex!important;flex-direction:column;flex:1 0 auto!important;min-height:0!important;height:auto!important;max-height:none!important;max-width:none;width:100%;margin:0!important;border:0;border-radius:0;overflow:visible!important;
}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b91-mode{order:0;flex:none;position:static;padding:12px 16px!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b90-music-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b91-mode button{min-width:0;min-height:44px;height:auto!important;padding:8px 6px!important;font-size:12px!important;white-space:normal;line-height:1.35}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b90-mode-note{font-size:12px!important;line-height:1.5!important;min-height:0;margin:8px 0 0}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b100-transport{order:1;position:static;flex:none;padding:10px 16px!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b100-transport .b54-transport{display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr);gap:6px!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b100-transport button{grid-column:auto!important;min-width:0;width:auto!important;height:auto!important;min-height:44px!important;padding:8px 6px!important;font-size:12px!important;line-height:1.35;white-space:normal}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b91-workspace{order:2;display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important;grid-template-rows:auto!important;gap:0;flex:1 0 auto!important;height:auto!important;min-height:0;overflow:visible!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b91-workspace .b54-score{grid-area:auto!important;position:relative!important;inset:auto;display:flex;flex-direction:column;justify-content:center;gap:12px;height:auto!important;min-height:280px!important;padding:24px 16px!important;overflow:hidden!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b54-score-word{font-size:clamp(36px,6vw,56px)!important;line-height:1.15;min-height:0!important;padding:0}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b54-playing-label{font-size:11px!important;line-height:1.4;min-height:0;margin:0;padding:0}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b54-music-tip{margin:0!important;padding:8px 0!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b54-score [data-part-text]{font-size:14px!important;line-height:1.6!important;min-height:0!important;margin:0!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b51-beats{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;margin:8px 0 0!important;padding:0}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b51-beats>span{min-width:0;height:32px!important;min-height:32px;font-size:11px!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b91-controls{grid-area:auto!important;position:static!important;align-self:stretch!important;min-height:0;height:auto!important;padding:16px!important;overflow:visible!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b100-panel-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:0;margin:0 0 12px!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b100-panel-tabs button{flex:1 1 auto;min-width:0;min-height:44px!important;height:auto!important;padding:8px 6px!important;font-size:12px!important;white-space:normal}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b100-panel{height:auto!important;min-height:0;max-height:none!important;overflow:visible!important;padding:0!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog [hidden]{display:none!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b100-panel :is([data-choice],[data-instrument]){min-height:44px;padding:8px;font-size:12px}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b54-tempo{position:static;margin:16px 0 0!important;padding:0!important;min-height:70px}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog [data-bpm-output]{font-size:26px!important;line-height:1.25}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b91-sections{order:3;flex:none;padding:12px 16px!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b91-sections .b54-music-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b91-sections .b54-music-tabs button{min-width:0;height:auto!important;min-height:52px!important;padding:6px!important;gap:3px!important;font-size:10px!important;line-height:1.3}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b54-music-tabs button span{font-size:12px!important;line-height:1.4;white-space:normal}
body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b91-player>:is(.b91-listen,.b91-credits){order:4;flex:none}
body .bs496-platform-dock.bs526-dock{grid-template-columns:repeat(4,minmax(0,1fr))!important;bottom:var(--sense-preview-offset,0px)!important}
@media(max-width:760px){body:has(.bs526-dock){padding-bottom:calc(80px + var(--sense-preview-offset,0px))!important}}
.bs496-platform-dock.bs526-dock a{min-width:0}
@media(max-width:760px){
 body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b91-workspace{grid-template-columns:minmax(0,1fr)!important}
 body.sense-calm :is(#sense-calm-home,[data-calm-root]) .calm-detail .b90-focus-dialog .b91-workspace .b54-score{flex:none;min-height:245px!important}
}
@media(max-width:600px){
 body.sense-calm :is(#sense-calm-home,[data-calm-root]) .sense-training-index>.sense-study{grid-template-columns:72px minmax(0,1fr);gap:16px;align-items:start;padding:26px 0}
 body.sense-calm :is(#sense-calm-home,[data-calm-root]) .sense-study-copy strong{font-size:clamp(23px,6.5vw,32px);line-height:1.2;word-break:normal;overflow-wrap:normal;hyphens:none}
 body.sense-calm :is(#sense-calm-home,[data-calm-root]) .sense-study-art{height:108px;margin-top:3px;padding-top:0}
 .sense-study-art svg{height:95px}.sense-study-art .sense-study-caption{display:none}
 .sense-study-wave{height:65px;gap:2px;margin:2px 5px 0}.sense-study-wave i{width:2px}
 .sense-study-beats{padding:8px 5px 0;gap:2px}
 .sense-study-meta{font-size:8px!important;line-height:1.5}
 .sense-study-description{font-size:13px!important;line-height:1.7}
 .sense-study-cta{font-size:12px!important;line-height:1.6;margin-top:6px}
}
