/* BOM v5.6 — MUSIC / AI anchored at bottom of the EXISTING right office-tools rail.
   No additional sidebar. Existing audio element and chat instance stay untouched. */
@media (min-width:781px){
  body:not(.bom-is-panel) .bom-rail{
    padding-bottom:112px!important;
    scrollbar-gutter:stable;
  }
  body:not(.bom-is-panel) .bom-rail::after{
    content:'';
    position:fixed;
    right:0;
    bottom:0;
    width:var(--rail-w,54px);
    height:109px;
    background:#151718;
    border-top:1px solid #3f4651;
    pointer-events:none;
    z-index:1;
  }
  body:not(.bom-is-panel) #bom-music-button,
  body:not(.bom-is-panel) #assistantDock .assistant-launch{
    position:fixed!important;
    top:auto!important;
    left:auto!important;
    right:8px!important;
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
    margin:0!important;
    border-radius:50%!important;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    background:#26374a!important;
    border:1px solid #657990!important;
    box-shadow:none!important;
    color:#fff!important;
    font-size:0!important;
    transform:none!important;
    z-index:2147482004!important;
  }
  body:not(.bom-is-panel) #bom-music-button{bottom:63px!important}
  body:not(.bom-is-panel) #assistantDock .assistant-launch{bottom:16px!important}
  body:not(.bom-is-panel) #bom-music-button::before{content:'♫';font-size:21px!important}
  body:not(.bom-is-panel) #assistantDock .assistant-launch::before{content:'✧';font-size:22px!important}
  body:not(.bom-is-panel) #bom-music-panel,
  body:not(.bom-is-panel) #assistantDock .assistant-panel{
    position:fixed!important;
    top:auto!important;
    left:auto!important;
    right:var(--rail-w,54px)!important;
    bottom:12px!important;
    width:min(440px,calc(100vw - 320px))!important;
    max-width:calc(100vw - 70px)!important;
    margin:0!important;
    box-sizing:border-box!important;
    border-radius:16px!important;
    box-shadow:-8px 8px 35px #111a3340!important;
    z-index:2147482002!important;
  }
  body:not(.bom-is-panel) #bom-music-panel{
    height:auto!important;
    min-height:0!important;
    max-height:calc(100dvh - 24px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:17px!important;
  }
  body:not(.bom-is-panel) #assistantDock .assistant-panel{
    height:min(680px,calc(100dvh - 24px))!important;
    max-height:calc(100dvh - 24px)!important;
    overflow:hidden!important;
  }
  body:not(.bom-is-panel) #assistantDock .ai-assistant{
    display:flex!important;
    flex-direction:column!important;
    height:100%!important;
    min-height:0!important;
  }
  body:not(.bom-is-panel) #assistantDock .assistant-msgs{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}
  body:not(.bom-is-panel) #assistantDock .assistant-compose{flex:0 0 auto!important}
}
