
/* ==========================================================================
   RC4.8.3 Build 6.2.8.16.9.4.10
   FRONTEND RHYTHM & RADAR BOUNDARY FINALIZATION
   Baseline: 9.4.9
   Presentation-only. No provider/data/business/DOM-order mutation.
   ========================================================================== */

/* --------------------------------------------------------------------------
   A) Selected-player rhythm:
   The player header must lead into the Coach workspace with one normal gap,
   not a large empty staging area.
   -------------------------------------------------------------------------- */
html body.btc-rc4836 .btc620-player-header{
  margin-bottom:10px!important;
}

html body.btc-rc4836 .btc620-player-header + .btc620-selected-player-host,
html body.btc-rc4836 .btc620-player-header ~ .btc620-selected-player-host.btc620-player-grid-host{
  margin-top:0!important;
  padding-top:0!important;
  min-height:0!important;
  align-content:start!important;
  align-items:start!important;
}

html body.btc-rc4836 .btc620-selected-player-host.btc620-player-grid-host{
  margin-top:0!important;
  padding-top:0!important;
  min-height:0!important;
  height:auto!important;
  align-content:start!important;
}

html body.btc-rc4836 .btc620-selected-player-host .btc628169-master-shell{
  margin-top:0!important;
  padding-top:0!important;
  align-self:start!important;
  transform:none!important;
}

/* Protect against old presentation wrappers retaining artificial first-row height. */
html body.btc-rc4836 .btc620-selected-player-master
:is(.bmp-rc371-coach-dashboard,.bmp-training-dashboard.bmp-btc-coach,.btc620-selected-player-host){
  align-content:start!important;
}

html body.btc-rc4836 .btc620-selected-player-master
.btc620-player-header + :is(.bmp-rc371-coach-dashboard,.bmp-training-dashboard.bmp-btc-coach,.btc620-selected-player-host){
  margin-top:0!important;
}

/* --------------------------------------------------------------------------
   B) Performance Axes internal geometry:
   fixed, contained two-column composition; radar never crosses its cell,
   axis rows never cross the card edge.
   -------------------------------------------------------------------------- */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-slot-axes{
  --btc-axes-gap:12px;
  display:grid!important;
  grid-template-columns:minmax(210px,42%) minmax(0,58%)!important;
  grid-template-rows:auto repeat(6,minmax(42px,max-content))!important;
  column-gap:var(--btc-axes-gap)!important;
  row-gap:4px!important;
  align-items:start!important;
  align-content:start!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:0!important;
  height:auto!important;
  padding:12px 14px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

/* Header becomes a clean full-width block. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes > :is(h2,h3,h4):first-child{
  grid-column:1 / -1!important;
  grid-row:1!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0 0 5px!important;
  padding:2px 0 0 40px!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  box-sizing:border-box!important;
}

/* Radar cell owns a bounded rectangle. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-axes-radar-host{
  grid-column:1!important;
  grid-row:2 / 8!important;
  place-self:center stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:250px!important;
  min-height:250px!important;
  max-height:250px!important;
  margin:0!important;
  padding:8px 10px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-axes-radar-host svg{
  display:block!important;
  width:min(100%,260px)!important;
  height:auto!important;
  max-width:260px!important;
  max-height:225px!important;
  margin:auto!important;
  overflow:visible!important;
  transform:none!important;
  box-sizing:border-box!important;
}

/* Six semantic rows: contained, compact, no runaway progress widths. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes .btc628169-axes-native-bars{
  grid-column:2!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:42px!important;
  height:auto!important;
  margin:0!important;
  padding:5px 42px 5px 40px!important;
  align-self:stretch!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes .btc628169-axes-native-bars :is(progress,.progress,[class*='progress'],[class*='bar']){
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:5px!important;
  max-height:5px!important;
  margin:2px 0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes .btc628169-axes-native-bars::after{
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  line-height:1.15!important;
  max-width:100%!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes .btc628169-axes-native-bars[data-btc-axis-index='0']{grid-row:2!important;}
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes .btc628169-axes-native-bars[data-btc-axis-index='1']{grid-row:3!important;}
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes .btc628169-axes-native-bars[data-btc-axis-index='2']{grid-row:4!important;}
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes .btc628169-axes-native-bars[data-btc-axis-index='3']{grid-row:5!important;}
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes .btc628169-axes-native-bars[data-btc-axis-index='4']{grid-row:6!important;}
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes .btc628169-axes-native-bars[data-btc-axis-index='5']{grid-row:7!important;}

/* Do not let the reference-analysis row stretch the axes card beyond content. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-main-analysis > .btc628169-slot-axes{
  align-self:start!important;
  max-height:none!important;
}

/* Compact desktop: preserve containment before stacking. */
@media (max-width:1180px) and (min-width:861px){
  html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-slot-axes{
    grid-template-columns:minmax(190px,40%) minmax(0,60%)!important;
    column-gap:10px!important;
  }
  html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-axes-radar-host{
    height:225px!important;
    min-height:225px!important;
    max-height:225px!important;
  }
  html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-axes-radar-host svg{
    width:min(100%,225px)!important;
    max-width:225px!important;
    max-height:205px!important;
  }
}

@media (max-width:860px){
  html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-slot-axes{
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto repeat(6,auto)!important;
  }
  html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-axes-radar-host{
    grid-column:1!important;
    grid-row:2!important;
    height:210px!important;
    min-height:210px!important;
    max-height:210px!important;
  }
  html body.btc-rc4836 .btc62816935-boundary-authority
  .btc628169-slot-axes .btc628169-axes-native-bars{
    grid-column:1!important;
    grid-row:auto!important;
  }
}
