/* =========================================================
   OSBEATS GLOBAL USER-FACING HEADER POLISH V2
   Admin / Moderator intentionally excluded.
   ========================================================= */


/* =========================================================
   STANDARD PAGE HEADERS
   ========================================================= */

.music-hero,
.dashboard-hero,
.membership-hero,
.br-hero,
.creator-toolbar,
body:not(.embedded-settings) .page-head,
.page > .hero,
.faq-hero{
  min-width:0 !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}


/* Allow header copy to shrink cleanly beside controls. */

.music-hero > div:first-child,
.br-hero > div:first-child,
.creator-toolbar > div:first-child,
body:not(.embedded-settings) .page-head > div:first-child,
.page > .hero > div:first-child,
.faq-hero > div:first-child{
  min-width:0 !important;
  flex:1 1 auto !important;
}


/* Consistent title proportions. */

.music-hero h1,
.dashboard-hero h1,
.membership-hero h1,
.br-hero h1,
.creator-toolbar h1,
body:not(.embedded-settings) .page-head h1,
.page > .hero h1,
.faq-hero h1{
  font-size:clamp(27px,2.6vw,36px) !important;
  line-height:1.08 !important;
  overflow-wrap:anywhere !important;
}


/* Consistent subtitle width. */

.music-hero > div:first-child > p,
.dashboard-hero p,
.membership-hero > p,
.br-hero > div:first-child > p,
.creator-toolbar > div:first-child > p,
body:not(.embedded-settings) .page-head > div:first-child > p,
.page > .hero > div:first-child > p,
.faq-hero > div:first-child > p{
  max-width:760px !important;
}


/* =========================================================
   CREATOR STUDIO MAIN HEADER
   ========================================================= */

.creator-toolbar{
  min-height:116px !important;
  align-items:center !important;
}


.creator-toolbar > div:first-child{
  max-width:690px !important;
}


.creator-toolbar-actions{
  min-width:0 !important;
  max-width:100% !important;

  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;

  flex-wrap:wrap !important;
  gap:7px !important;
}


.creator-toolbar-actions > a{
  min-height:34px !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  white-space:nowrap !important;
}


/* Controls bridged from Analytics / Revenue / Settings. */

.creator-embedded-header-tools{
  order:10 !important;

  min-width:0 !important;
  width:auto !important;

  margin:0 !important;

  flex:0 1 auto !important;

  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;

  flex-wrap:wrap !important;
  gap:7px !important;
}


.creator-embedded-header-tools[hidden]{
  display:none !important;
}


.creator-embedded-header-tools button,
.creator-embedded-header-tools select,
.creator-embedded-header-tools a{
  min-height:34px !important;
  white-space:nowrap !important;
}


.creator-embedded-header-status{
  width:100% !important;
  flex-basis:100% !important;

  margin:1px 0 0 !important;

  text-align:right !important;
}


/* =========================================================
   ANALYTICS / REVENUE / SETTINGS
   ========================================================= */

.range-area,
.settings-refresh,
.page > .hero .hero-actions{
  min-width:0 !important;
  max-width:100% !important;
}


.range-tools,
.settings-head-actions,
.page > .hero .hero-actions{
  gap:7px !important;
}


.range-tools button,
.range-tools select,
.settings-head-actions a,
.settings-head-actions button,
.page > .hero .hero-actions button{
  white-space:nowrap !important;
}


/* =========================================================
   LIBRARY
   ========================================================= */

.music-stats{
  min-width:300px !important;
  align-self:stretch !important;
}


.music-stats article{
  display:flex !important;

  flex-direction:column !important;
  justify-content:center !important;

  text-align:center !important;
}


/* =========================================================
   BEAT REQUESTS
   ========================================================= */

.br-hero > button{
  flex:0 0 auto !important;
  white-space:nowrap !important;
}


/* =========================================================
   PUBLIC BANNERS

   Keep the original OSBeats banner artwork clean.
   V1 framing is intentionally neutralized here.
   ========================================================= */

.os-uniform-public-hero{
  margin-top:0 !important;
  margin-bottom:16px !important;

  border:0 !important;
  border-left:0 !important;

  border-radius:0 !important;

  box-shadow:none !important;

  background:transparent !important;

  overflow:hidden !important;
}


.os-uniform-public-hero::after{
  display:none !important;
}


.os-uniform-public-hero img{
  display:block !important;

  width:100% !important;
  max-width:100% !important;

  height:auto !important;

  margin:0 !important;

  border:0 !important;
  border-radius:0 !important;
}


/* =========================================================
   CREATOR STUDIO EMBEDDED CHILD PAGES
   ========================================================= */

body.osbeats-creator-embedded .page-head,
body.osbeats-creator-embedded main.page > .hero,
body.embedded-settings .page-head{
  display:none !important;
}


body.osbeats-creator-embedded main,
body.osbeats-creator-embedded main.page,
body.embedded-settings main.page{
  padding-top:0 !important;
  margin-top:0 !important;
}


body.osbeats-creator-embedded .stats,
body.osbeats-creator-embedded .stats-grid,
body.osbeats-creator-embedded .settings-overview-grid,
body.embedded-settings .settings-overview-grid{
  margin-top:0 !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:980px){

  .creator-toolbar{
    align-items:flex-start !important;
    flex-direction:column !important;
  }


  .creator-toolbar-actions{
    width:100% !important;
    justify-content:flex-start !important;
  }


  .creator-embedded-header-tools{
    justify-content:flex-start !important;
  }


  .creator-embedded-header-status{
    text-align:left !important;
  }

}


@media(max-width:820px){

  .music-hero,
  .br-hero,
  body:not(.embedded-settings) .page-head,
  .page > .hero{
    align-items:flex-start !important;
    flex-direction:column !important;
  }


  .music-stats{
    width:100% !important;
    min-width:0 !important;
  }


  .range-area,
  .settings-refresh,
  .page > .hero .hero-actions{
    width:100% !important;
  }

}


@media(max-width:560px){

  .music-stats{
    grid-template-columns:1fr !important;
  }


  .creator-toolbar-actions > a,
  .creator-embedded-header-tools button,
  .creator-embedded-header-tools select,
  .creator-embedded-header-tools a{
    flex:1 1 auto !important;
  }


  .creator-embedded-header-tools{
    width:100% !important;
  }

}


/* END OSBEATS GLOBAL HEADER POLISH V2 */


/* =========================================================
   OSBEATS CREATOR EMBEDDED HEADER CONTROL ALIGNMENT V1

   Analytics:
     [ Date Range ] [ Refresh ]
     [ Status               ]

   Revenue:
     [            ] [ Refresh ]
     [ Status               ]

   Settings:
     [View Profile] [ Refresh ]
     [ Status               ]

   All three use the exact same footprint.
   ========================================================= */

.creator-toolbar .creator-embedded-header-tools{
  width:320px !important;
  min-width:320px !important;
  max-width:320px !important;

  height:54px !important;
  min-height:54px !important;

  display:grid !important;

  grid-template-columns:
    minmax(0,1fr)
    96px !important;

  grid-template-rows:
    34px
    14px !important;

  column-gap:8px !important;
  row-gap:4px !important;

  align-items:center !important;
  align-content:start !important;

  justify-content:stretch !important;

  margin:0 !important;

  flex:0 0 320px !important;
}


.creator-toolbar .creator-embedded-header-tools[hidden]{
  display:none !important;
}


/*
  Analytics range selector and Settings View Profile
  always occupy the same LEFT slot.
*/

.creator-toolbar
.creator-embedded-header-tools
select,

.creator-toolbar
.creator-embedded-header-tools
a{
  grid-column:1 !important;
  grid-row:1 !important;

  width:100% !important;
  min-width:0 !important;
  max-width:none !important;

  height:34px !important;
  min-height:34px !important;

  margin:0 !important;
}


/*
  Refresh always occupies the same RIGHT slot.
  Revenue therefore remains aligned even though it
  does not have a left-side control.
*/

.creator-toolbar
.creator-embedded-header-tools
button{
  grid-column:2 !important;
  grid-row:1 !important;

  width:96px !important;
  min-width:96px !important;
  max-width:96px !important;

  height:34px !important;
  min-height:34px !important;

  margin:0 !important;
}


/* Status always occupies the same second row. */

.creator-toolbar
.creator-embedded-header-status{
  grid-column:1 / -1 !important;
  grid-row:2 !important;

  width:100% !important;

  margin:0 !important;

  align-self:start !important;

  line-height:14px !important;
  min-height:14px !important;

  text-align:right !important;

  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}


/*
  Keep the complete embedded-control block anchored
  identically regardless of which Creator Studio tab
  is selected.
*/

.creator-toolbar-actions{
  align-items:flex-start !important;
}


.creator-toolbar
.creator-embedded-header-tools{
  align-self:flex-start !important;
}


/* Tablet/mobile: allow controls to use available width. */

@media(max-width:980px){

  .creator-toolbar
  .creator-embedded-header-tools{
    width:320px !important;
    min-width:320px !important;
    max-width:100% !important;

    flex:0 0 auto !important;
  }

}


@media(max-width:560px){

  .creator-toolbar
  .creator-embedded-header-tools{
    width:100% !important;
    min-width:0 !important;

    grid-template-columns:
      minmax(0,1fr)
      96px !important;
  }

}


/* END CREATOR EMBEDDED HEADER CONTROL ALIGNMENT V1 */
