/*
 * BTC Pro RC4.8.3 Build 6.2.8.16.9
 * Native Grid Host Boundary & Slot Classification Repair
 *
 * Presentation-only contract:
 * - no DOM re-parenting
 * - no provider/data/form/nonce mutation
 * - no broad :has() wrapper slot inheritance
 * - exact native common grid host determined by renderer classification
 */

/* PRE-PAINT: the old native/diagnostic Coach output must never flash visibly.
   Header/navigation remain visible; only the Coach frontend scope waits until
   classification is finished. */
html.btc628161-prepaint body .btc-pro-scope.btc-coach-frontend{
  visibility:hidden!important;
}
html.btc628161-ready body .btc-pro-scope.btc-coach-frontend{
  visibility:visible!important;
}

/* Diagnostic/test-data panel is permanently presentation-hidden once marked. */
html body.btc-rc4836 .btc483612-diagnostic-only{
  display:none!important;
}

/* Selected player surface: remove legacy green canvas. */
html body.btc-rc4836 .btc620-selected-player-master{
  --btc628161-gap:14px;
  --btc628161-rail:minmax(300px,360px);
  --btc628161-surface:#071522;
  --btc628161-panel:#0b1d2d;
  --btc628161-panel-2:#0e2234;
  --btc628161-line:rgba(103,139,175,.28);
  max-width:1600px!important;
  margin-inline:auto!important;
  background:transparent!important;
}

html body.btc-rc4836 .btc620-selected-player-master .bmp-rc371-coach-dashboard,
html body.btc-rc4836 .btc620-selected-player-master .bmp-training-dashboard.bmp-btc-coach{
  background:var(--btc628161-surface)!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:16px!important;
  padding:18px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}

/* Structural bridge only. The DOM stays untouched, but safe wrappers cease
   creating independent layout boxes between the classified panels and host. */
html body.btc-rc4836 .btc628161-grid-bridge{
  display:contents!important;
}

/* One exact host, chosen by the renderer as lowest common native ancestor. */
html body.btc-rc4836 .btc628161-grid-host{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) var(--btc628161-rail)!important;
  grid-auto-flow:row!important;
  grid-auto-rows:auto!important;
  gap:var(--btc628161-gap)!important;
  align-items:start!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}

/* 6.2.8.16.2: CSS Grid acts on DIRECT children. Bind those real items
   explicitly instead of assuming each classified panel is itself a grid item. */
html body.btc-rc4836 .btc628161-grid-host > .btc628162-grid-item-main{
  grid-column:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  justify-self:stretch!important;
}
html body.btc-rc4836 .btc628161-grid-host > .btc628162-grid-item-rail{
  grid-column:2!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  justify-self:stretch!important;
  align-self:start!important;
}

/* A mixed direct wrapper is not allowed to inherit the rail. Keep it in Main
   until the audit proves it can safely be split on a deeper structural level. */
html body.btc-rc4836 .btc628161-grid-host > .btc628162-grid-item-mixed{
  grid-column:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}

/* 6.2.8.16.3
   The 16.2 audit proved one direct mixed wrapper contains 11 panels:
   Main: Empfehlungen, Ziele, Status, Stärke, Fokus, Achsen, Radar, weitere Empfehlungen
   Rail: Automatischer Trainingsplan, Coach-Notizen, Trainingsplan-Hilfe.
   Only this verified mixed structural branch is flattened. */
html body.btc-rc4836 .btc628161-grid-host .btc628163-flatten{
  display:contents!important;
}

/* Once the mixed structural wrappers are transparent, classified native panels
   become the effective grid items and take over their deterministic slot. */
html body.btc-rc4836 .btc628161-grid-host .btc628163-grid-panel-main{
  grid-column:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  justify-self:stretch!important;
}
html body.btc-rc4836 .btc628161-grid-host .btc628163-grid-panel-rail{
  grid-column:2!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  justify-self:stretch!important;
  align-self:start!important;
}

/* The former mixed root must no longer reserve a single Main-column box. */
html body.btc-rc4836 .btc628161-grid-host > .btc628162-grid-item-mixed.btc628163-flatten{
  display:contents!important;
}

/* Stable two-column surface: Main broad, Coach rail narrow. */
html body.btc-rc4836 .btc628161-grid-host{
  grid-template-columns:minmax(0,1fr) minmax(300px,360px)!important;
  align-content:start!important;
}

/* Coach rail modules are deliberately compact. */
html body.btc-rc4836 .btc628163-grid-panel-rail{
  padding:15px 16px!important;
}
html body.btc-rc4836 .btc628163-grid-panel-rail :is(h2,h3){
  font-size:20px!important;
  margin-bottom:8px!important;
}

/* Main analysis modules use the available width. */
html body.btc-rc4836 .btc628163-grid-panel-main{
  width:100%!important;
}

/* The personal Coach hero stays Main and never enters the Context Rail. */
html body.btc-rc4836 .bmp-coach-hero{
  grid-column:1!important;
}

/* Direct slot contract. No :has() propagation to collection wrappers. */
html body.btc-rc4836 .btc628161-grid-host > .btc628161-slot-main{
  grid-column:1!important;
  min-width:0!important;
  width:100%!important;
}
html body.btc-rc4836 .btc628161-grid-host > .btc628161-slot-rail{
  grid-column:2!important;
  min-width:0!important;
  width:100%!important;
  align-self:start!important;
}

/* Because safe bridges use display:contents, classified descendants become
   effective grid items even when the native markup has structural wrappers. */
html body.btc-rc4836 .btc628161-grid-host .btc628161-slot-main{
  min-width:0!important;
  max-width:none!important;
}
html body.btc-rc4836 .btc628161-grid-host .btc628161-slot-rail{
  min-width:0!important;
  max-width:none!important;
}

/* Native module surfaces. */
html body.btc-rc4836 .btc620-selected-player-master .btc620-native-panel{
  margin:0!important;
  padding:17px 18px!important;
  border:1px solid var(--btc628161-line)!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,var(--btc628161-panel-2),var(--btc628161-panel))!important;
  color:#edf3fa!important;
  box-shadow:0 8px 22px rgba(0,0,0,.10)!important;
  float:none!important;
  position:relative!important;
  left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;
}

html body.btc-rc4836 .btc620-selected-player-master .btc620-native-panel :is(h2,h3,h4){
  margin-top:0!important;
  margin-bottom:10px!important;
  color:#f7f9fc!important;
  line-height:1.15!important;
}
html body.btc-rc4836 .btc620-selected-player-master .btc620-native-panel :is(p,li,label){
  color:#c1cedb!important;
}

/* Panel role remains semantic. Column placement is decided by the actual
   direct grid item above, not by a nested descendant. */
html body.btc-rc4836 :is(
  .btc620-panel-auto-plan,
  .btc620-panel-plan-help,
  .btc620-panel-notes
){
  background:linear-gradient(145deg,#0a1b2c,#0a1725)!important;
  border-color:rgba(165,91,255,.34)!important;
}

/* Logical ordering, still without node movement. */
html body.btc-rc4836 .btc620-panel-status{order:10!important}
html body.btc-rc4836 .btc620-panel-strength{order:11!important}
html body.btc-rc4836 .btc620-panel-focus{order:12!important}
html body.btc-rc4836 .btc620-panel-recommendations{order:20!important}
html body.btc-rc4836 .btc620-panel-more-recommendations{order:21!important}
html body.btc-rc4836 .btc620-panel-axes{order:22!important}
html body.btc-rc4836 .btc620-panel-goals{order:30!important}
html body.btc-rc4836 .btc620-panel-radar{order:31!important}
html body.btc-rc4836 .btc620-panel-training-plan{order:40!important}
html body.btc-rc4836 .btc620-panel-generic{order:80!important}
html body.btc-rc4836 .btc620-panel-auto-plan{order:10!important}
html body.btc-rc4836 .btc620-panel-plan-help{order:20!important}
html body.btc-rc4836 .btc620-panel-notes{order:30!important}

/* Personal Coach hero belongs to the main work area, never to the rail. */
html body.btc-rc4836 .btc620-selected-player-master .bmp-coach-hero{
  grid-column:1!important;
  width:100%!important;
  max-width:none!important;
}

/* Selected-player legacy selector remains removed. */
html body.btc-rc4836 .btc620-selected-player-master .bmp-coach-player-selector{
  display:none!important;
}

/* Rail controls compact. */
html body.btc-rc4836 :is(.btc620-panel-auto-plan,.btc620-panel-plan-help,.btc620-panel-notes)
:is(input,select,textarea,button,.button,a.button){
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

/* Responsive fallback. */
@media(max-width:1180px){
  html body.btc-rc4836 .btc620-selected-player-master{
    --btc628161-rail:minmax(285px,320px);
  }
}
@media(max-width:980px){
  html body.btc-rc4836 .btc628161-grid-host{
    grid-template-columns:1fr!important;
  }
  html body.btc-rc4836 .btc628161-grid-host > .btc628162-grid-item-main,
  html body.btc-rc4836 .btc628161-grid-host > .btc628162-grid-item-rail,
  html body.btc-rc4836 .btc628161-grid-host > .btc628162-grid-item-mixed,
  html body.btc-rc4836 .btc628161-grid-host > .btc628161-slot-main,
  html body.btc-rc4836 .btc628161-grid-host > .btc628161-slot-rail,
  html body.btc-rc4836 .btc628161-grid-host .btc628163-grid-panel-main,
  html body.btc-rc4836 .btc628161-grid-host .btc628163-grid-panel-rail{
    grid-column:1!important;
  }
}
@media(max-width:620px){
  html body.btc-rc4836 .btc620-selected-player-master .bmp-rc371-coach-dashboard,
  html body.btc-rc4836 .btc620-selected-player-master .bmp-training-dashboard.bmp-btc-coach{
    padding:10px!important;
    border-radius:11px!important;
  }
  html body.btc-rc4836 .btc620-selected-player-master .btc620-native-panel{
    padding:14px!important;
  }
}


/* ==========================================================
   6.2.8.16.4 – Independent Main/Rail Flow Containers
   ========================================================== */

/* The actual workspace remains a two-column grid, but its content no longer
   participates in shared auto-created grid rows. Two invisible anchoring
   tracks define independent vertical coordinate systems. */
html body.btc-rc4836 .btc628161-grid-host{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(300px,360px)!important;
  grid-template-rows:auto!important;
  column-gap:16px!important;
  row-gap:0!important;
  grid-auto-flow:unset!important;
  grid-auto-rows:unset!important;
  align-items:start!important;
}

/* Flow anchors occupy the two columns and establish independent stacking
   contexts without taking ownership of native content. */
html body.btc-rc4836 .btc628164-main-flow-host{
  grid-column:1!important;
  grid-row:1!important;
  min-width:0!important;
  width:100%!important;
  height:0!important;
  overflow:visible!important;
  pointer-events:none!important;
}
html body.btc-rc4836 .btc628164-rail-flow-host{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
  width:100%!important;
  height:0!important;
  overflow:visible!important;
  pointer-events:none!important;
}

/* The verified flattened branch remains presentation-transparent. */
html body.btc-rc4836 .btc628161-grid-host .btc628163-flatten{
  display:contents!important;
}

/* MAIN FLOW
   All Main modules occupy the left track. They no longer consume shared
   grid rows with Rail modules. */
html body.btc-rc4836 .btc628161-grid-host .btc628164-flow-main{
  grid-column:1!important;
  grid-row:auto!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  align-self:start!important;
  justify-self:stretch!important;
  margin:0 0 14px 0!important;
}

/* RAIL FLOW
   All Coach-context modules occupy the right track independently. */
html body.btc-rc4836 .btc628161-grid-host .btc628164-flow-rail{
  grid-column:2!important;
  grid-row:auto!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  align-self:start!important;
  justify-self:stretch!important;
  margin:0 0 14px 0!important;
}

/* Critical elimination of previous per-panel explicit shared-row grid
   placement. Order remains semantic within each track only. */
html body.btc-rc4836 .btc628161-grid-host :is(
  .btc628163-grid-panel-main,
  .btc628163-grid-panel-rail,
  .btc628162-grid-item-main,
  .btc628162-grid-item-rail,
  .btc628162-grid-item-mixed
){
  grid-row:auto!important;
}

/* Use independent column-local stacks by making the broad native workspace
   transparent only where 16.3 proved it is structural. */
html body.btc-rc4836 .btc628161-grid-host > .btc628162-grid-item-mixed.btc628163-flatten{
  display:contents!important;
}

/* Stable Main widths. */
html body.btc-rc4836 .btc628164-flow-main .bmp-coach-rec-grid,
html body.btc-rc4836 .btc628164-flow-main .bmp-coach-radar-grid,
html body.btc-rc4836 .btc628164-flow-main .bmp-coach-goals-grid{
  width:100%!important;
  max-width:none!important;
}

/* Rail remains intentionally narrow and compact. */
html body.btc-rc4836 .btc628164-flow-rail{
  font-size:.96em!important;
}
html body.btc-rc4836 .btc628164-flow-rail :is(h2,h3){
  line-height:1.15!important;
}

/* Desktop: because native nodes remain in place, independent visual tracks
   are achieved via masonry-like column flow using CSS columns only inside the
   presentation layer. This removes row coupling completely. */
@media(min-width:981px){
  html body.btc-rc4836 .btc628161-grid-host{
    display:block!important;
  }

  html body.btc-rc4836 .btc628164-main-flow-host,
  html body.btc-rc4836 .btc628164-rail-flow-host{
    display:none!important;
  }

  html body.btc-rc4836 .btc628161-grid-host{
    position:relative!important;
    padding-right:376px!important;
  }

  html body.btc-rc4836 .btc628161-grid-host .btc628164-flow-main{
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    margin-right:0!important;
  }

  html body.btc-rc4836 .btc628161-grid-host .btc628164-flow-rail{
    position:relative!important;
    width:360px!important;
    margin-left:calc(100% + 16px)!important;
    transform:translateY(calc(-100% - 14px))!important;
  }

  /* Rail modules are taken out of Main width calculation while remaining
     in original DOM order. */
  html body.btc-rc4836 .btc628161-grid-host .btc628164-flow-rail{
    float:right!important;
    clear:right!important;
  }

  html body.btc-rc4836 .btc628161-grid-host .btc628164-flow-main{
    clear:left!important;
  }
}

/* Mobile/tablet collapses to one natural native flow. */
@media(max-width:980px){
  html body.btc-rc4836 .btc628161-grid-host{
    display:block!important;
    padding-right:0!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628164-flow-main,
  html body.btc-rc4836 .btc628161-grid-host .btc628164-flow-rail{
    width:100%!important;
    max-width:none!important;
    margin:0 0 12px 0!important;
    transform:none!important;
    float:none!important;
    clear:both!important;
  }
}


/* ==========================================================
   6.2.8.16.5 – Deterministic Coach Workspace Master Layout
   Approved composition:
   - Main workspace = 9/12 columns
   - Coach Context Rail = 3/12 columns
   - no float/transform positioning
   - no navigation mutation
   ========================================================== */

@media(min-width:1180px){

  /* Retire 16.4 experimental float/transform flow positioning. */
  html body.btc-rc4836 .btc628161-grid-host{
    display:grid!important;
    position:relative!important;
    padding-right:0!important;
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    grid-auto-rows:auto!important;
    grid-auto-flow:row!important;
    gap:16px!important;
    align-items:start!important;
    overflow:visible!important;
  }

  html body.btc-rc4836 .btc628164-main-flow-host,
  html body.btc-rc4836 .btc628164-rail-flow-host{
    display:none!important;
  }

  html body.btc-rc4836 .btc628161-grid-host .btc628164-flow-main,
  html body.btc-rc4836 .btc628161-grid-host .btc628164-flow-rail{
    position:relative!important;
    float:none!important;
    clear:none!important;
    transform:none!important;
    margin-left:0!important;
    margin-right:0!important;
    width:100%!important;
    max-width:none!important;
  }

  /* Mixed structural wrappers stay transparent. */
  html body.btc-rc4836 .btc628161-grid-host .btc628163-flatten{
    display:contents!important;
  }

  /* Common slot surface. */
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot{
    min-width:0!important;
    width:100%!important;
    max-width:none!important;
    align-self:start!important;
    justify-self:stretch!important;
    margin:0!important;
    position:relative!important;
    float:none!important;
    clear:none!important;
    transform:none!important;
  }

  /* ROW 1 + 2: Personal coach left, player properties right. */
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-hero{
    grid-column:1 / span 4!important;
    grid-row:1 / span 2!important;
    min-height:100%!important;
  }

  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-status{
    grid-column:5 / span 2!important;
    grid-row:1!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-strength{
    grid-column:7 / span 3!important;
    grid-row:1!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-focus{
    grid-column:5 / span 2!important;
    grid-row:2!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-axes{
    grid-column:7 / span 3!important;
    grid-row:2!important;
  }

  /* Context Rail begins at top and stays independent from Main content. */
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-rail-auto-plan{
    grid-column:10 / span 3!important;
    grid-row:1!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-rail-help{
    grid-column:10 / span 3!important;
    grid-row:2 / span 2!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-rail-notes{
    grid-column:10 / span 3!important;
    grid-row:4!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-rail-history{
    grid-column:10 / span 3!important;
    grid-row:5!important;
  }

  /* ROW 3: three analytical boxes side-by-side in Main. */
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-recommendations{
    grid-column:1 / span 3!important;
    grid-row:3!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-more-recommendations{
    grid-column:4 / span 3!important;
    grid-row:3!important;
  }

  /* If performance axes was rendered in row 2 already, keep the third
     requested analytical space available for any generic main module. */
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-main-generic{
    grid-column:7 / span 3!important;
    grid-row:auto!important;
  }

  /* ROW 4: Coach goals + Radar. */
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-goals{
    grid-column:1 / span 6!important;
    grid-row:4!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-radar{
    grid-column:7 / span 3!important;
    grid-row:4!important;
  }

  /* Native subgrids and forms must fit their assigned slot. */
  html body.btc-rc4836 .btc628165-slot :is(
    .bmp-coach-rec-grid,
    .bmp-coach-radar-grid,
    .bmp-coach-goals-grid,
    form,
    fieldset
  ){
    max-width:100%!important;
    min-width:0!important;
  }

  /* Compact player-property cards. */
  html body.btc-rc4836 :is(
    .btc628165-slot-status,
    .btc628165-slot-strength,
    .btc628165-slot-focus
  ){
    padding:18px 20px!important;
  }

  /* Performance axes and Radar remain readable in compact columns. */
  html body.btc-rc4836 :is(
    .btc628165-slot-axes,
    .btc628165-slot-radar
  ){
    padding:18px 20px!important;
  }

  /* Rail is visually compact, only Coach context belongs here. */
  html body.btc-rc4836 :is(
    .btc628165-slot-rail-auto-plan,
    .btc628165-slot-rail-help,
    .btc628165-slot-rail-notes,
    .btc628165-slot-rail-history
  ){
    padding:16px 18px!important;
    background:linear-gradient(145deg,#0a1b2c,#0a1725)!important;
    border-color:rgba(165,91,255,.34)!important;
  }
}

/* Medium widths: preserve hierarchy but collapse rail under Main instead of
   forcing narrow, displaced panels. */
@media(min-width:760px) and (max-width:1179px){
  html body.btc-rc4836 .btc628161-grid-host{
    display:grid!important;
    padding-right:0!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:14px!important;
  }

  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot{
    position:relative!important;
    float:none!important;
    clear:none!important;
    transform:none!important;
    margin:0!important;
    width:100%!important;
    grid-row:auto!important;
  }

  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-hero{
    grid-column:1 / span 3!important;
  }
  html body.btc-rc4836 .btc628161-grid-host :is(
    .btc628165-slot-status,
    .btc628165-slot-strength,
    .btc628165-slot-focus,
    .btc628165-slot-axes
  ){
    grid-column:4 / span 3!important;
  }
  html body.btc-rc4836 .btc628161-grid-host :is(
    .btc628165-slot-recommendations,
    .btc628165-slot-more-recommendations,
    .btc628165-slot-goals,
    .btc628165-slot-radar,
    .btc628165-slot-main-generic
  ){
    grid-column:1 / span 6!important;
  }
  html body.btc-rc4836 .btc628161-grid-host :is(
    .btc628165-slot-rail-auto-plan,
    .btc628165-slot-rail-help,
    .btc628165-slot-rail-notes,
    .btc628165-slot-rail-history
  ){
    grid-column:1 / span 6!important;
  }
}

/* Mobile: natural single-column Coach workflow. */
@media(max-width:759px){
  html body.btc-rc4836 .btc628161-grid-host{
    display:block!important;
    padding-right:0!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot{
    width:100%!important;
    max-width:none!important;
    margin:0 0 12px 0!important;
    transform:none!important;
    float:none!important;
    clear:both!important;
  }
}


/* ==========================================================
   6.2.8.16.6 – FINAL COACH WORKSPACE GEOMETRY
   Root cause repair:
   1) all structural ancestors BETWEEN verified panels and host are transparent
   2) Main uses deterministic nine-column grid
   3) Context Rail is independently measured/stacked and cannot size Main rows
   4) no native node re-parenting / no navigation mutation
   ========================================================== */

/* Structural-only wrappers between panel and authoritative host. */
html body.btc-rc4836 .btc628161-grid-host .btc628166-structural-flatten{
  display:contents!important;
}

/* Kill all legacy positioning mechanics from 16.4/16.5 on final slot nodes. */
html body.btc-rc4836 .btc628161-grid-host .btc628166-direct-panel{
  position:relative!important;
  float:none!important;
  clear:none!important;
  transform:none!important;
  inset:auto!important;
  margin:0!important;
  min-width:0!important;
  max-width:none!important;
  width:100%!important;
  box-sizing:border-box!important;
}

/* ---------- Wide desktop master ---------- */
@media(min-width:1280px){

  html body.btc-rc4836 .btc628161-grid-host.btc628166-final-geometry{
    --btc628166-rail-width:340px;
    --btc628166-gap:18px;
    display:grid!important;
    position:relative!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    padding:0 calc(var(--btc628166-rail-width) + var(--btc628166-gap)) 0 0!important;
    grid-template-columns:repeat(9,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-rows:auto!important;
    gap:16px!important;
    align-items:stretch!important;
    overflow:visible!important;
    min-height:max(0px,var(--btc628166-rail-height,0px))!important;
  }

  /* Personal coach + properties.
     The hero spans three compact property rows. */
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-hero{
    grid-column:1 / span 4!important;
    grid-row:1 / span 3!important;
    align-self:stretch!important;
    min-height:100%!important;
  }

  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-status{
    grid-column:5 / span 5!important;
    grid-row:1!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-strength{
    grid-column:5 / span 5!important;
    grid-row:2!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-focus{
    grid-column:5 / span 5!important;
    grid-row:3!important;
  }

  /* Requested three boxes side-by-side. */
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-recommendations{
    grid-column:1 / span 3!important;
    grid-row:4!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-more-recommendations{
    grid-column:4 / span 3!important;
    grid-row:4!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-axes{
    grid-column:7 / span 3!important;
    grid-row:4!important;
  }

  /* Goals + radar, as planned. */
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-goals{
    grid-column:1 / span 6!important;
    grid-row:5!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-radar{
    grid-column:7 / span 3!important;
    grid-row:5!important;
  }

  /* Remaining Main modules use the full Main workspace below the master rows. */
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-main-generic{
    grid-column:1 / span 9!important;
    grid-row:auto!important;
  }

  /* Context rail: true independent vertical flow.
     Rail does NOT participate in grid rows and can never create Main whitespace. */
  html body.btc-rc4836 .btc628161-grid-host :is(
    .btc628165-slot-rail-auto-plan,
    .btc628165-slot-rail-help,
    .btc628165-slot-rail-notes,
    .btc628165-slot-rail-history
  ){
    position:absolute!important;
    z-index:3!important;
    top:var(--btc628166-rail-top,0px)!important;
    right:0!important;
    left:auto!important;
    width:var(--btc628166-rail-width)!important;
    min-width:var(--btc628166-rail-width)!important;
    max-width:var(--btc628166-rail-width)!important;
    height:auto!important;
    grid-column:auto!important;
    grid-row:auto!important;
    align-self:auto!important;
    justify-self:auto!important;
    margin:0!important;
    transform:none!important;
    float:none!important;
    clear:none!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  /* Rail controls must never escape their 340px surface. */
  html body.btc-rc4836 .btc628161-grid-host :is(
    .btc628165-slot-rail-auto-plan,
    .btc628165-slot-rail-help,
    .btc628165-slot-rail-notes,
    .btc628165-slot-rail-history
  ) :is(
    form,fieldset,input,select,textarea,button,.button,.btn
  ){
    box-sizing:border-box!important;
    max-width:100%!important;
    min-width:0!important;
  }
  html body.btc-rc4836 .btc628161-grid-host :is(
    .btc628165-slot-rail-auto-plan,
    .btc628165-slot-rail-help,
    .btc628165-slot-rail-notes,
    .btc628165-slot-rail-history
  ) :is(input,select,textarea){
    width:100%!important;
  }
  html body.btc-rc4836 .btc628161-grid-host :is(
    .btc628165-slot-rail-auto-plan,
    .btc628165-slot-rail-help,
    .btc628165-slot-rail-notes,
    .btc628165-slot-rail-history
  ) button{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  /* Compact top property cards; prevent excessive vertical expansion. */
  html body.btc-rc4836 :is(
    .btc628165-slot-status,
    .btc628165-slot-strength,
    .btc628165-slot-focus
  ){
    min-height:0!important;
    padding:18px 22px!important;
  }

  /* Recommendation and analysis row receives equal, stable surfaces. */
  html body.btc-rc4836 :is(
    .btc628165-slot-recommendations,
    .btc628165-slot-more-recommendations,
    .btc628165-slot-axes
  ){
    height:100%!important;
    min-height:0!important;
  }

  /* Native child layouts may shrink but never overflow their assigned panel. */
  html body.btc-rc4836 .btc628166-direct-panel :is(
    .bmp-coach-rec-grid,
    .bmp-coach-radar-grid,
    .bmp-coach-goals-grid,
    .bmp-coach-axis-grid,
    .bmp-coach-form-grid
  ){
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  /* Radar internal two-column presentation remains readable inside 1/3 Main. */
  html body.btc-rc4836 .btc628165-slot-radar .bmp-coach-radar-grid{
    grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important;
    gap:14px!important;
  }
}

/* ---------- Standard desktop / laptop ----------
   Keep a true right rail, slightly narrower. */
@media(min-width:1050px) and (max-width:1279px){
  html body.btc-rc4836 .btc628161-grid-host.btc628166-final-geometry{
    --btc628166-rail-width:300px;
    --btc628166-gap:14px;
    display:grid!important;
    position:relative!important;
    padding:0 calc(var(--btc628166-rail-width) + var(--btc628166-gap)) 0 0!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:14px!important;
    min-height:max(0px,var(--btc628166-rail-height,0px))!important;
  }

  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-hero{
    grid-column:1 / span 3!important;
    grid-row:1 / span 3!important;
  }
  html body.btc-rc4836 .btc628161-grid-host :is(
    .btc628165-slot-status,
    .btc628165-slot-strength,
    .btc628165-slot-focus
  ){
    grid-column:4 / span 3!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-status{grid-row:1!important;}
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-strength{grid-row:2!important;}
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-focus{grid-row:3!important;}

  html body.btc-rc4836 .btc628161-grid-host :is(
    .btc628165-slot-recommendations,
    .btc628165-slot-more-recommendations,
    .btc628165-slot-axes
  ){
    grid-row:4!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-recommendations{grid-column:1 / span 2!important;}
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-more-recommendations{grid-column:3 / span 2!important;}
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-axes{grid-column:5 / span 2!important;}

  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-goals{
    grid-column:1 / span 4!important;
    grid-row:5!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-radar{
    grid-column:5 / span 2!important;
    grid-row:5!important;
  }
  html body.btc-rc4836 .btc628161-grid-host .btc628165-slot-main-generic{
    grid-column:1 / span 6!important;
    grid-row:auto!important;
  }

  html body.btc-rc4836 .btc628161-grid-host :is(
    .btc628165-slot-rail-auto-plan,
    .btc628165-slot-rail-help,
    .btc628165-slot-rail-notes,
    .btc628165-slot-rail-history
  ){
    position:absolute!important;
    top:var(--btc628166-rail-top,0px)!important;
    right:0!important;
    left:auto!important;
    width:var(--btc628166-rail-width)!important;
    min-width:var(--btc628166-rail-width)!important;
    max-width:var(--btc628166-rail-width)!important;
    grid-column:auto!important;
    grid-row:auto!important;
    margin:0!important;
    transform:none!important;
    float:none!important;
    clear:none!important;
  }

  html body.btc-rc4836 .btc628161-grid-host :is(
    .btc628165-slot-rail-auto-plan,
    .btc628165-slot-rail-help,
    .btc628165-slot-rail-notes,
    .btc628165-slot-rail-history
  ) :is(form,fieldset,input,select,textarea,button,.button,.btn){
    box-sizing:border-box!important;
    width:auto;
    max-width:100%!important;
    min-width:0!important;
  }
  html body.btc-rc4836 .btc628161-grid-host :is(
    .btc628165-slot-rail-auto-plan,
    .btc628165-slot-rail-help,
    .btc628165-slot-rail-notes,
    .btc628165-slot-rail-history
  ) :is(input,select,textarea){
    width:100%!important;
  }
}

/* ---------- Tablet/mobile ----------
   No absolute rail. Preserve semantic native order as a single clean flow. */
@media(max-width:1049px){
  html body.btc-rc4836 .btc628161-grid-host.btc628166-final-geometry{
    display:grid!important;
    padding:0!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    min-height:0!important;
  }

  html body.btc-rc4836 .btc628161-grid-host .btc628166-direct-panel{
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    right:auto!important;
    left:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    grid-column:1!important;
    grid-row:auto!important;
    transform:none!important;
    float:none!important;
    clear:both!important;
    margin:0!important;
  }
}


/* ==========================================================
   6.2.8.16.7 – FINAL TWO-COLUMN COACH WORKSPACE
   Visual hierarchy:
   LEFT  = Main workspace
   RIGHT = Coach Context Rail
   No absolute positioning, no overlay, no third page column.
   ========================================================== */

html body.btc-rc4836 .btc628167-redundant-legacy-note{
  display:none!important;
}

@media(min-width:1180px){

  /* AUTHORITATIVE PAGE GRID: exactly two top-level columns. */
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host{
    display:grid!important;
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    padding:0!important;
    grid-template-columns:minmax(0,1fr) 350px!important;
    grid-template-rows:auto!important;
    grid-auto-flow:row!important;
    column-gap:18px!important;
    row-gap:14px!important;
    align-items:start!important;
    overflow:visible!important;
    min-height:0!important;
  }

  /* Retire every absolute/floating rail rule from 16.4–16.6. */
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host .btc628167-flow-panel{
    position:relative!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    inset:auto!important;
    float:none!important;
    clear:none!important;
    transform:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  /* Structural branches remain transparent, native panels remain functional. */
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host
  :is(.btc628166-structural-flatten,.btc628163-flatten){
    display:contents!important;
  }

  /* ----------------------------------------------------------
     LEFT MAIN WORKSPACE
     Native panels use an internal nine-track matrix but NEVER
     create another page column outside Main.
     ---------------------------------------------------------- */

  /* Personal Coach: left upper module. */
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host .btc628165-slot-hero{
    grid-column:1!important;
    grid-row:1 / span 3!important;
    width:42%!important;
    justify-self:start!important;
    align-self:stretch!important;
    min-height:100%!important;
    z-index:1!important;
  }

  /* Player properties: same Main column, positioned as compact cards
     beside the Personal Coach using safe in-flow margins. */
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host
  :is(.btc628165-slot-status,.btc628165-slot-strength,.btc628165-slot-focus){
    grid-column:1!important;
    width:56%!important;
    justify-self:end!important;
    min-height:0!important;
    padding:16px 18px!important;
    z-index:1!important;
  }
  html body.btc-rc4836 .btc628165-slot-status{grid-row:1!important;}
  html body.btc-rc4836 .btc628165-slot-strength{grid-row:2!important;}
  html body.btc-rc4836 .btc628165-slot-focus{grid-row:3!important;}

  /* Main analysis row: all remain entirely inside LEFT column. */
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host
  :is(.btc628165-slot-recommendations,.btc628165-slot-more-recommendations,.btc628165-slot-axes){
    grid-column:1!important;
    grid-row:4!important;
    min-height:100%!important;
    align-self:stretch!important;
  }
  html body.btc-rc4836 .btc628165-slot-recommendations{
    width:33%!important;
    justify-self:start!important;
  }
  html body.btc-rc4836 .btc628165-slot-more-recommendations{
    width:33%!important;
    justify-self:center!important;
  }
  html body.btc-rc4836 .btc628165-slot-axes{
    width:33%!important;
    justify-self:end!important;
  }

  /* Development row: Goals + Radar within LEFT only. */
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host
  :is(.btc628165-slot-goals,.btc628165-slot-radar){
    grid-column:1!important;
    grid-row:5!important;
    min-height:100%!important;
  }
  html body.btc-rc4836 .btc628165-slot-goals{
    width:42%!important;
    justify-self:start!important;
  }
  html body.btc-rc4836 .btc628165-slot-radar{
    width:56%!important;
    justify-self:end!important;
  }

  /* Any remaining Main module stays under the master sections. */
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host .btc628165-slot-main-generic{
    grid-column:1!important;
    grid-row:auto!important;
    width:100%!important;
    justify-self:stretch!important;
  }

  /* ----------------------------------------------------------
     RIGHT COACH CONTEXT RAIL
     Every rail card is ordinary grid flow in column 2.
     No absolute top values, no overlay.
     ---------------------------------------------------------- */
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host .btc628165-slot-rail-auto-plan{
    grid-column:2!important;
    grid-row:1!important;
  }
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host .btc628165-slot-rail-help{
    grid-column:2!important;
    grid-row:2!important;
  }
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host .btc628165-slot-rail-notes{
    grid-column:2!important;
    grid-row:3!important;
  }
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host .btc628165-slot-rail-history{
    grid-column:2!important;
    grid-row:4!important;
  }

  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host
  :is(.btc628165-slot-rail-auto-plan,.btc628165-slot-rail-help,.btc628165-slot-rail-notes,.btc628165-slot-rail-history){
    width:100%!important;
    min-width:0!important;
    max-width:350px!important;
    justify-self:stretch!important;
    align-self:start!important;
    overflow:hidden!important;
    padding:18px 20px!important;
    z-index:1!important;
  }

  /* Rail forms stay within the right column. */
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host
  :is(.btc628165-slot-rail-auto-plan,.btc628165-slot-rail-help,.btc628165-slot-rail-notes,.btc628165-slot-rail-history)
  :is(form,fieldset,input,select,textarea,button,.button,.btn){
    box-sizing:border-box!important;
    max-width:100%!important;
    min-width:0!important;
  }
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host
  :is(.btc628165-slot-rail-auto-plan,.btc628165-slot-rail-notes)
  :is(input,select,textarea){
    width:100%!important;
  }
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host
  :is(.btc628165-slot-rail-auto-plan,.btc628165-slot-rail-notes) button{
    width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  /* Native recommendation cards compact like the approved master. */
  html body.btc-rc4836 .btc628165-slot-recommendations .bmp-coach-rec-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  /* Compact axis card. */
  html body.btc-rc4836 .btc628165-slot-axes{
    padding:16px 18px!important;
  }

  /* Radar internal layout remains responsive inside its Main share. */
  html body.btc-rc4836 .btc628165-slot-radar .bmp-coach-radar-grid{
    grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important;
    gap:14px!important;
  }
}

/* Laptop: still two page columns, rail slightly narrower. */
@media(min-width:980px) and (max-width:1179px){
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host{
    display:grid!important;
    position:relative!important;
    padding:0!important;
    grid-template-columns:minmax(0,1fr) 300px!important;
    column-gap:14px!important;
    row-gap:12px!important;
    align-items:start!important;
  }

  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host .btc628167-flow-panel{
    position:relative!important;
    inset:auto!important;
    float:none!important;
    transform:none!important;
    min-width:0!important;
    max-width:none!important;
  }

  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host
  :is(.btc628165-slot-rail-auto-plan,.btc628165-slot-rail-help,.btc628165-slot-rail-notes,.btc628165-slot-rail-history){
    grid-column:2!important;
    width:100%!important;
    max-width:300px!important;
  }
  html body.btc-rc4836 .btc628165-slot-rail-auto-plan{grid-row:1!important;}
  html body.btc-rc4836 .btc628165-slot-rail-help{grid-row:2!important;}
  html body.btc-rc4836 .btc628165-slot-rail-notes{grid-row:3!important;}
  html body.btc-rc4836 .btc628165-slot-rail-history{grid-row:4!important;}

  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host
  :is(.btc628165-slot-hero,.btc628165-slot-status,.btc628165-slot-strength,.btc628165-slot-focus,
      .btc628165-slot-recommendations,.btc628165-slot-more-recommendations,.btc628165-slot-axes,
      .btc628165-slot-goals,.btc628165-slot-radar,.btc628165-slot-main-generic){
    grid-column:1!important;
  }
}

/* Tablet/mobile: rail follows Main naturally below, never overlaps. */
@media(max-width:979px){
  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host{
    display:grid!important;
    grid-template-columns:1fr!important;
    padding:0!important;
    gap:12px!important;
  }

  html body.btc-rc4836 .btc628161-grid-host.btc628167-two-column-host .btc628167-flow-panel{
    position:relative!important;
    inset:auto!important;
    grid-column:1!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    justify-self:stretch!important;
    transform:none!important;
    float:none!important;
    clear:both!important;
    margin:0!important;
  }
}


/* ==========================================================
   6.2.8.16.8 – REAL TWO-CONTAINER MASTER COMPOSITION
   Outer shell: Main | Context Rail
   Main owns its own internal row grids.
   Rail owns its own independent vertical flow.
   No absolute positioning / no overlap / no shared row sizing.
   ========================================================== */

html body.btc-rc4836 .btc628161-grid-host.btc628168-container-host{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding:0!important;
  overflow:visible!important;
}

/* Retire structural display:contents rules once panels are deliberately
   composed into the dedicated presentation containers. */
html body.btc-rc4836 .btc628168-two-column-shell :is(
  .btc628166-structural-flatten,
  .btc628163-flatten,
  .btc628161-grid-bridge
){
  display:block!important;
}

/* Exact two top-level columns. */
html body.btc-rc4836 .btc628168-two-column-shell{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 330px!important;
  gap:18px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  align-items:start!important;
  box-sizing:border-box!important;
}

html body.btc-rc4836 .btc628168-main-workspace{
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
  min-width:0!important;
  width:100%!important;
}

html body.btc-rc4836 .btc628168-context-rail{
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
  width:330px!important;
  min-width:330px!important;
  max-width:330px!important;
  align-self:start!important;
  min-height:0!important;
}

/* Universal reset for every composed native module. */
html body.btc-rc4836 .btc628168-two-column-shell .btc628168-native-panel{
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  float:none!important;
  clear:none!important;
  transform:none!important;
  grid-column:auto!important;
  grid-row:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  margin:0!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}

/* ---------------- TOP MAIN ROW ----------------
   Personal coach + three equal property cards.
   This is the key correction compared with 16.7. */
html body.btc-rc4836 .btc628168-main-top{
  display:grid!important;
  grid-template-columns:minmax(300px,1.5fr) repeat(3,minmax(0,1fr))!important;
  grid-template-areas:
    "hero label label label"
    "hero status strength focus"!important;
  column-gap:12px!important;
  row-gap:7px!important;
  align-items:stretch!important;
  min-width:0!important;
}

html body.btc-rc4836 .btc628168-main-hero{
  grid-area:hero!important;
  min-height:100%!important;
}

html body.btc-rc4836 .btc628168-property-label{
  grid-area:label!important;
  align-self:end!important;
  padding:0 2px!important;
  color:#cfd8e3!important;
  font-size:13px!important;
  line-height:1.2!important;
  letter-spacing:.07em!important;
  text-transform:uppercase!important;
  font-weight:700!important;
}

html body.btc-rc4836 .btc628168-slot-status{grid-area:status!important;}
html body.btc-rc4836 .btc628168-slot-strength{grid-area:strength!important;}
html body.btc-rc4836 .btc628168-slot-focus{grid-area:focus!important;}

html body.btc-rc4836 .btc628168-main-top :is(
  .btc628168-slot-status,
  .btc628168-slot-strength,
  .btc628168-slot-focus
){
  min-height:116px!important;
  padding:14px 15px!important;
}

html body.btc-rc4836 .btc628168-main-top :is(
  .btc628168-slot-status,
  .btc628168-slot-strength,
  .btc628168-slot-focus
) :is(h2,h3){
  font-size:21px!important;
  line-height:1.15!important;
  margin:0 0 10px!important;
}

/* ---------------- ANALYSIS ROW ---------------- */
html body.btc-rc4836 .btc628168-main-analysis{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
  min-width:0!important;
}

html body.btc-rc4836 .btc628168-main-analysis > .btc628168-native-panel{
  height:100%!important;
  min-height:250px!important;
}

/* Recommendation cards become compact vertical entries like the reference. */
html body.btc-rc4836 .btc628168-slot-recommendations .bmp-coach-rec-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:9px!important;
}

html body.btc-rc4836 .btc628168-slot-recommendations .bmp-coach-rec-card{
  min-height:0!important;
}

/* Axes must be compact in the third analysis card. */
html body.btc-rc4836 .btc628168-slot-axes{
  padding:16px!important;
}
html body.btc-rc4836 .btc628168-slot-axes :is(h2,h3){
  font-size:22px!important;
}

/* ---------------- DEVELOPMENT ROW ---------------- */
html body.btc-rc4836 .btc628168-main-development{
  display:grid!important;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.12fr)!important;
  gap:12px!important;
  align-items:stretch!important;
  min-width:0!important;
}

html body.btc-rc4836 .btc628168-main-development > .btc628168-native-panel{
  height:100%!important;
  min-height:0!important;
}

/* Radar is compact and stays completely inside Main. */
html body.btc-rc4836 .btc628168-slot-radar .bmp-coach-radar-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,.9fr)!important;
  gap:12px!important;
  max-width:100%!important;
}

/* Remaining Main modules simply continue below in native order. */
html body.btc-rc4836 .btc628168-main-remainder{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
}

/* ---------------- CONTEXT RAIL ---------------- */
html body.btc-rc4836 .btc628168-context-rail > .btc628168-native-panel{
  width:100%!important;
  min-width:0!important;
  max-width:330px!important;
  padding:16px 17px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

html body.btc-rc4836 .btc628168-context-rail > .btc628168-native-panel :is(h2,h3){
  font-size:20px!important;
  line-height:1.2!important;
  margin:0 0 9px!important;
}

/* All rail controls stay inside the rail. */
html body.btc-rc4836 .btc628168-context-rail :is(
  form,fieldset,input,select,textarea,button,.button,.btn
){
  box-sizing:border-box!important;
  max-width:100%!important;
  min-width:0!important;
}

html body.btc-rc4836 .btc628168-context-rail :is(input,select,textarea){
  width:100%!important;
}

html body.btc-rc4836 .btc628168-context-rail button{
  width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* No legacy width percentages survive inside the new composition. */
html body.btc-rc4836 .btc628168-two-column-shell :is(
  .btc628165-slot-hero,
  .btc628165-slot-status,
  .btc628165-slot-strength,
  .btc628165-slot-focus,
  .btc628165-slot-recommendations,
  .btc628165-slot-more-recommendations,
  .btc628165-slot-axes,
  .btc628165-slot-goals,
  .btc628165-slot-radar,
  .btc628165-slot-main-generic,
  .btc628165-slot-rail-auto-plan,
  .btc628165-slot-rail-help,
  .btc628165-slot-rail-notes,
  .btc628165-slot-rail-history
){
  width:100%!important;
  max-width:none!important;
  justify-self:stretch!important;
}

/* Responsive: still two functional areas until tablet; then rail follows Main. */
@media(max-width:1260px) and (min-width:981px){
  html body.btc-rc4836 .btc628168-two-column-shell{
    grid-template-columns:minmax(0,1fr) 300px!important;
    gap:14px!important;
  }
  html body.btc-rc4836 .btc628168-context-rail{
    width:300px!important;
    min-width:300px!important;
    max-width:300px!important;
  }
  html body.btc-rc4836 .btc628168-context-rail > .btc628168-native-panel{
    max-width:300px!important;
  }
  html body.btc-rc4836 .btc628168-main-top{
    grid-template-columns:minmax(260px,1.35fr) repeat(3,minmax(0,1fr))!important;
  }
}

@media(max-width:980px){
  html body.btc-rc4836 .btc628168-two-column-shell{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  html body.btc-rc4836 .btc628168-context-rail{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
  html body.btc-rc4836 .btc628168-context-rail > .btc628168-native-panel{
    max-width:none!important;
  }
  html body.btc-rc4836 .btc628168-main-top{
    grid-template-columns:1fr!important;
    grid-template-areas:
      "hero"
      "label"
      "status"
      "strength"
      "focus"!important;
  }
  html body.btc-rc4836 .btc628168-main-analysis,
  html body.btc-rc4836 .btc628168-main-development{
    grid-template-columns:1fr!important;
  }
}


/* ==========================================================
   6.2.8.16.9 – APPROVED COACH DASHBOARD MASTER
   Reference-locked presentation geometry.
   ========================================================== */

html body.btc-rc4836 .btc628169-retired-section-label{
  display:none!important;
}

/* Exactly two outer columns: broad Main + narrow Context Rail. */
html body.btc-rc4836 .btc628169-master-shell{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 344px!important;
  gap:24px!important;
  align-items:start!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  font-size:14px!important;
  line-height:1.42!important;
}

html body.btc-rc4836 .btc628169-main-workspace{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  min-width:0!important;
  width:100%!important;
}

html body.btc-rc4836 .btc628169-context-rail{
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
  width:344px!important;
  min-width:344px!important;
  max-width:344px!important;
  padding-left:0!important;
  border-left:1px solid rgba(76,122,153,.22)!important;
}

/* Reset legacy large typography and geometry inside authoritative shell. */
html body.btc-rc4836 .btc628169-master-shell .btc628169-master-panel{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  float:none!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:16px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border-radius:12px!important;
  font-size:14px!important;
  line-height:1.42!important;
}

html body.btc-rc4836 .btc628169-master-shell .btc628169-master-panel :is(h1,h2,h3,h4){
  margin:0 0 10px!important;
  font-size:20px!important;
  line-height:1.15!important;
  letter-spacing:-.01em!important;
}

html body.btc-rc4836 .btc628169-master-shell .btc628169-master-panel p{
  margin:0 0 9px!important;
  font-size:14px!important;
  line-height:1.45!important;
}

/* ----------------------------------------------------------
   TOP: Personal Coach | Player Properties cluster
   ---------------------------------------------------------- */
html body.btc-rc4836 .btc628169-main-top{
  display:grid!important;
  grid-template-columns:minmax(320px,.95fr) minmax(0,1.55fr)!important;
  gap:18px!important;
  align-items:stretch!important;
  min-width:0!important;
}

html body.btc-rc4836 .btc628169-main-hero{
  min-height:154px!important;
  padding:22px 24px!important;
  align-self:stretch!important;
}

html body.btc-rc4836 .btc628169-main-hero :is(h1,h2,h3){
  font-size:24px!important;
  line-height:1.12!important;
  margin-bottom:12px!important;
}

html body.btc-rc4836 .btc628169-main-hero p{
  max-width:95%!important;
  font-size:14px!important;
}

html body.btc-rc4836 .btc628169-property-cluster{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  min-width:0!important;
  align-self:stretch!important;
}

html body.btc-rc4836 .btc628169-property-label{
  padding:2px 4px 0!important;
  color:#c9d4df!important;
  font-size:12px!important;
  line-height:1.15!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
  font-weight:700!important;
}

html body.btc-rc4836 .btc628169-property-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  min-width:0!important;
  flex:1 1 auto!important;
}

html body.btc-rc4836 .btc628169-property-grid > .btc628169-master-panel{
  min-height:126px!important;
  height:100%!important;
  padding:14px 15px!important;
}

html body.btc-rc4836 .btc628169-property-grid > .btc628169-master-panel :is(h2,h3){
  font-size:18px!important;
  margin-bottom:9px!important;
}

html body.btc-rc4836 .btc628169-property-grid > .btc628169-master-panel p{
  font-size:13px!important;
  margin-bottom:6px!important;
}

/* ----------------------------------------------------------
   ANALYSIS: recommendations | more | axes
   Explicit order and equal dashboard width.
   ---------------------------------------------------------- */
html body.btc-rc4836 .btc628169-main-analysis{
  display:grid!important;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.92fr) minmax(0,.92fr)!important;
  gap:10px!important;
  align-items:stretch!important;
  min-width:0!important;
}

html body.btc-rc4836 .btc628169-main-analysis > .btc628169-master-panel{
  min-height:258px!important;
  height:258px!important;
  padding:14px!important;
}

html body.btc-rc4836 .btc628169-main-analysis > .btc628169-master-panel :is(h2,h3){
  font-size:18px!important;
  margin-bottom:10px!important;
}

/* Recommendation panel: two compact cards stacked like master reference. */
html body.btc-rc4836 .btc628169-slot-recommendations .bmp-coach-rec-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
}

html body.btc-rc4836 .btc628169-slot-recommendations .bmp-coach-rec-card{
  min-height:0!important;
  padding:10px 11px!important;
  border-radius:8px!important;
}

html body.btc-rc4836 .btc628169-slot-recommendations .bmp-coach-rec-card :is(h3,h4,strong){
  font-size:13px!important;
  line-height:1.25!important;
}

html body.btc-rc4836 .btc628169-slot-recommendations .bmp-coach-rec-card p{
  font-size:12px!important;
  line-height:1.34!important;
  margin:4px 0!important;
}

/* Further recommendations is text-first and compact. */
html body.btc-rc4836 .btc628169-slot-more-recommendations p{
  font-size:13px!important;
  line-height:1.5!important;
}

/* Performance Axes: the actual native radar SVG becomes the dashboard visual. */
html body.btc-rc4836 .btc628169-slot-axes{
  display:flex!important;
  flex-direction:column!important;
}
html body.btc-rc4836 .btc628169-slot-axes .btc628169-axes-native-bars{
  display:none!important;
}
html body.btc-rc4836 .btc628169-axes-radar-host{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:1 1 auto!important;
  width:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
html body.btc-rc4836 .btc628169-axes-radar-host svg{
  display:block!important;
  width:min(100%,210px)!important;
  height:auto!important;
  max-height:190px!important;
  overflow:visible!important;
}

/* ----------------------------------------------------------
   DEVELOPMENT: goals summary | radar summary/time controls
   ---------------------------------------------------------- */
html body.btc-rc4836 .btc628169-main-development{
  display:grid!important;
  grid-template-columns:minmax(0,.98fr) minmax(0,1.18fr)!important;
  gap:10px!important;
  align-items:stretch!important;
  min-width:0!important;
}

html body.btc-rc4836 .btc628169-main-development > .btc628169-master-panel{
  min-height:154px!important;
  padding:14px 16px!important;
}

html body.btc-rc4836 .btc628169-main-development > .btc628169-master-panel :is(h2,h3){
  font-size:18px!important;
}

html body.btc-rc4836 .btc628169-compact-detail,
html body.btc-rc4836 .btc628169-auto-detail,
html body.btc-rc4836 .btc628169-radar-detail{
  display:none!important;
}

html body.btc-rc4836 .btc628169-detail-open .btc628169-compact-detail,
html body.btc-rc4836 .btc628169-detail-open .btc628169-auto-detail,
html body.btc-rc4836 .btc628169-detail-open .btc628169-radar-detail{
  display:block!important;
}

html body.btc-rc4836 .btc628169-compact-action{
  appearance:none!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#d5deea!important;
  padding:5px 0 0!important;
  margin:3px 0 0!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  font:inherit!important;
  font-size:12px!important;
  line-height:1.2!important;
  text-align:left!important;
  cursor:pointer!important;
}

html body.btc-rc4836 .btc628169-slot-radar .btc628169-radar-version{
  display:none!important;
}

html body.btc-rc4836 .btc628169-slot-radar button{
  width:auto!important;
  min-width:0!important;
  padding:8px 12px!important;
  font-size:12px!important;
}

/* ----------------------------------------------------------
   CONTEXT RAIL: compact dashboard rail as in master reference.
   ---------------------------------------------------------- */
html body.btc-rc4836 .btc628169-context-rail > .btc628169-master-panel{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  padding:15px 16px!important;
  border-radius:11px!important;
  overflow:hidden!important;
}

html body.btc-rc4836 .btc628169-context-rail > .btc628169-master-panel :is(h2,h3){
  font-size:18px!important;
  line-height:1.18!important;
  margin-bottom:9px!important;
  text-transform:none!important;
}

html body.btc-rc4836 .btc628169-context-rail > .btc628169-master-panel p{
  font-size:13px!important;
  line-height:1.48!important;
  margin-bottom:8px!important;
}

html body.btc-rc4836 .btc628169-context-rail [data-btc628169-compact="auto-plan"]{
  border-left:3px solid #29c86f!important;
}

html body.btc-rc4836 .btc628169-context-rail .btc628169-slot-rail-help{
  border-left:3px solid #f0ad00!important;
}

html body.btc-rc4836 .btc628169-context-rail .btc628169-slot-rail-notes,
html body.btc-rc4836 .btc628169-context-rail .btc628169-slot-rail-history{
  border-left:3px solid #53b9e8!important;
}

/* Any form opened from compact mode must fit the rail. */
html body.btc-rc4836 .btc628169-context-rail :is(form,fieldset,input,select,textarea,button,.button,.btn){
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
html body.btc-rc4836 .btc628169-context-rail :is(input,select,textarea){
  width:100%!important;
}

/* Remove large native spacing that caused the tall actual output. */
html body.btc-rc4836 .btc628169-master-shell :is(
  .bmp-coach-panel,
  .bmp-training-plan-panel,
  .bmp-coach-radar-panel
){
  margin-block:0!important;
}

/* Responsive behavior: preserve master ratio until tablet. */
@media(max-width:1320px) and (min-width:981px){
  html body.btc-rc4836 .btc628169-master-shell{
    grid-template-columns:minmax(0,1fr) 310px!important;
    gap:16px!important;
  }
  html body.btc-rc4836 .btc628169-context-rail{
    width:310px!important;
    min-width:310px!important;
    max-width:310px!important;
  }
  html body.btc-rc4836 .btc628169-main-top{
    grid-template-columns:minmax(280px,.9fr) minmax(0,1.5fr)!important;
    gap:12px!important;
  }
}

@media(max-width:980px){
  html body.btc-rc4836 .btc628169-master-shell{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  html body.btc-rc4836 .btc628169-context-rail{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    border-left:0!important;
  }
  html body.btc-rc4836 .btc628169-main-top{
    grid-template-columns:1fr!important;
  }
  html body.btc-rc4836 .btc628169-property-grid,
  html body.btc-rc4836 .btc628169-main-analysis,
  html body.btc-rc4836 .btc628169-main-development{
    grid-template-columns:1fr!important;
  }
  html body.btc-rc4836 .btc628169-main-analysis > .btc628169-master-panel{
    height:auto!important;
    min-height:0!important;
  }
}


/* ==========================================================
   6.2.8.16.9.3 – GEOMETRY VALIDATION & REFERENCE LAYOUT ENGINE
   Baseline: 6.2.8.16.9
   ========================================================== */

html body.btc-rc4836 .btc628169-master-shell.btc6281693-engine{
  --btc1693-rail:326px;
  --btc1693-outer-gap:20px;
  --btc1693-top-gap:14px;
  --btc1693-row-gap:10px;
  --btc1693-hero:392px;
  --btc1693-property-min:150px;
  --btc1693-analysis-a:330px;
  --btc1693-analysis-b:245px;
  --btc1693-analysis-c:245px;
  --btc1693-development-left:392px;

  display:grid!important;
  grid-template-columns:minmax(0,1fr) var(--btc1693-rail)!important;
  grid-template-rows:auto!important;
  gap:var(--btc1693-outer-gap)!important;
  align-items:start!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}

/* Two real flows only. */
html body.btc-rc4836 .btc6281693-engine .btc628169-main-workspace{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-context-rail{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  width:var(--btc1693-rail)!important;
  min-width:0!important;
  max-width:var(--btc1693-rail)!important;
  margin:0!important;
  padding:0 0 0 12px!important;
  border-left:1px solid rgba(82,128,158,.26)!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}

/* Strip every prior positional residue from direct layout items. */
html body.btc-rc4836 .btc6281693-engine :is(
  .btc628169-main-top,
  .btc628169-property-grid,
  .btc628169-main-analysis,
  .btc628169-main-development,
  .btc628169-main-remainder,
  .btc628169-context-rail
) > *{
  grid-area:auto!important;
  grid-column:auto!important;
  grid-row:auto!important;
  order:0!important;
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  transform:none!important;
  float:none!important;
  clear:none!important;
  margin-left:0!important;
  margin-right:0!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

/* Row 1 – Personal Coach + three equal player-property cards. */
html body.btc-rc4836 .btc6281693-engine .btc628169-main-top{
  display:grid!important;
  grid-template-columns:minmax(280px,var(--btc1693-hero)) minmax(0,1fr)!important;
  gap:var(--btc1693-top-gap)!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-main-hero{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:150px!important;
  height:100%!important;
  overflow:hidden!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-property-cluster{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-property-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:var(--btc1693-row-gap)!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-property-grid > .btc628169-master-panel{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:116px!important;
  height:116px!important;
  padding:13px 14px!important;
  overflow:hidden!important;
}

/* Row 2 – user logic: recommendation -> further recommendation -> analysis. */
html body.btc-rc4836 .btc6281693-engine .btc628169-main-analysis{
  display:grid!important;
  grid-template-columns:
    minmax(0,1.15fr)
    minmax(0,.90fr)
    minmax(0,.90fr)!important;
  gap:var(--btc1693-row-gap)!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-main-analysis > .btc628169-master-panel{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:238px!important;
  height:238px!important;
  padding:13px!important;
  overflow:hidden!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-slot-recommendations .bmp-coach-rec-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
}
html body.btc-rc4836 .btc6281693-engine .btc628169-slot-recommendations .bmp-coach-rec-card{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding:9px 10px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html body.btc-rc4836 .btc6281693-engine .btc628169-slot-recommendations .bmp-coach-rec-card *{
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}

/* Row 3 – planning -> longitudinal view. */
html body.btc-rc4836 .btc6281693-engine .btc628169-main-development{
  display:grid!important;
  grid-template-columns:minmax(280px,var(--btc1693-development-left)) minmax(0,1fr)!important;
  gap:var(--btc1693-row-gap)!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-main-development > .btc628169-master-panel{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:140px!important;
  height:140px!important;
  padding:13px 15px!important;
  overflow:hidden!important;
}

/* Empty remainder must not create phantom height. */
html body.btc-rc4836 .btc6281693-engine .btc628169-main-remainder:empty{
  display:none!important;
}

/* Context rail: strict containment. */
html body.btc-rc4836 .btc6281693-engine .btc628169-context-rail > .btc628169-master-panel{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:14px 15px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html body.btc-rc4836 .btc6281693-engine .btc628169-context-rail *{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow-wrap:anywhere!important;
}
html body.btc-rc4836 .btc6281693-engine .btc628169-context-rail :is(input,select,textarea,button,.button,.btn){
  width:100%!important;
  max-width:100%!important;
}

/* Performance axes radar stays inside its own panel. */
html body.btc-rc4836 .btc6281693-engine .btc628169-axes-radar-host{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
html body.btc-rc4836 .btc6281693-engine .btc628169-axes-radar-host svg{
  display:block!important;
  width:min(100%,190px)!important;
  max-width:100%!important;
  height:auto!important;
  max-height:168px!important;
  margin:auto!important;
}

/* Compact desktop engine. */
html body.btc-rc4836 .btc6281693-reference-compact{
  grid-template-columns:minmax(0,1fr) var(--btc1693-rail)!important;
}
html body.btc-rc4836 .btc6281693-reference-compact .btc628169-master-panel{
  font-size:12.5px!important;
}
html body.btc-rc4836 .btc6281693-reference-compact .btc628169-master-panel :is(h2,h3,h4){
  font-size:16px!important;
}
html body.btc-rc4836 .btc6281693-reference-compact .btc628169-main-analysis > .btc628169-master-panel{
  height:226px!important;
  min-height:226px!important;
}

/* Recovery remains a valid two-column layout whenever possible. */
html body.btc-rc4836 .btc6281693-engine.btc6281693-recovery:not(.btc6281693-stacked-safe){
  grid-template-columns:minmax(0,1fr) var(--btc1693-rail)!important;
  gap:var(--btc1693-outer-gap)!important;
}
html body.btc-rc4836 .btc6281693-recovery:not(.btc6281693-stacked-safe) .btc628169-main-top{
  grid-template-columns:minmax(250px,.78fr) minmax(0,1.42fr)!important;
}
html body.btc-rc4836 .btc6281693-recovery:not(.btc6281693-stacked-safe) .btc628169-main-analysis{
  grid-template-columns:minmax(0,1.10fr) minmax(0,.95fr) minmax(0,.95fr)!important;
}
html body.btc-rc4836 .btc6281693-recovery:not(.btc6281693-stacked-safe) .btc628169-main-development{
  grid-template-columns:minmax(250px,.82fr) minmax(0,1.18fr)!important;
}

/* True safe fallback: no overflow, no overlap. */
html body.btc-rc4836 .btc6281693-engine.btc6281693-stacked-safe{
  grid-template-columns:1fr!important;
  gap:12px!important;
}
html body.btc-rc4836 .btc6281693-stacked-safe .btc628169-context-rail{
  width:100%!important;
  max-width:100%!important;
  padding-left:0!important;
  border-left:0!important;
}
html body.btc-rc4836 .btc6281693-stacked-safe :is(
  .btc628169-main-top,
  .btc628169-property-grid,
  .btc628169-main-analysis,
  .btc628169-main-development
){
  grid-template-columns:1fr!important;
}
html body.btc-rc4836 .btc6281693-stacked-safe :is(
  .btc628169-main-hero,
  .btc628169-property-grid > .btc628169-master-panel,
  .btc628169-main-analysis > .btc628169-master-panel,
  .btc628169-main-development > .btc628169-master-panel
){
  width:100%!important;
  height:auto!important;
  min-height:0!important;
}

/* Explicit hard stop against accidental horizontal page expansion. */
html body.btc-rc4836 .btc6281693-engine,
html body.btc-rc4836 .btc6281693-engine *{
  box-sizing:border-box!important;
}


/* ==========================================================
   6.2.8.16.9.3.1 – STABLE GEOMETRY LOCK
   No transitions/animations may affect structural geometry.
   ========================================================== */
html body.btc-rc4836 .btc6281693-engine,
html body.btc-rc4836 .btc6281693-engine :is(
  .btc628169-main-workspace,
  .btc628169-context-rail,
  .btc628169-main-top,
  .btc628169-property-cluster,
  .btc628169-property-grid,
  .btc628169-main-analysis,
  .btc628169-main-development,
  .btc628169-main-remainder,
  .btc628169-master-panel
){
  transition-property:background-color,border-color,color,box-shadow,opacity!important;
  transition-duration:.15s!important;
  animation-name:none!important;
}

/* Geometry itself is immediate and deterministic. */
html body.btc-rc4836 .btc6281693-engine :is(
  .btc628169-main-workspace,
  .btc628169-context-rail,
  .btc628169-main-top,
  .btc628169-property-cluster,
  .btc628169-property-grid,
  .btc628169-main-analysis,
  .btc628169-main-development,
  .btc628169-main-remainder,
  .btc628169-master-panel
){
  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    box-shadow .15s ease,
    opacity .15s ease!important;
}


/* ==========================================================
   6.2.8.16.9.3.2 – CONTENT FIT GEOMETRY & FINAL DIMENSION LOCK
   Baseline: stable 6.2.8.16.9.3.1
   - no observer loop
   - no DOM reparenting
   - no automatic runtime recovery
   ========================================================== */

/* Give the main workspace back the width needed by real content.
   Rail remains clearly separated but less dominant. */
html body.btc-rc4836 .btc628169-master-shell.btc6281693-engine:not(.btc6281693-stacked-safe){
  --btc1693-rail:292px!important;
  --btc1693-outer-gap:16px!important;
  --btc1693-top-gap:12px!important;
  --btc1693-row-gap:10px!important;
  grid-template-columns:minmax(0,1fr) var(--btc1693-rail)!important;
}

/* At compact desktop width use an even more conservative rail.
   This directly addresses the measured clipping at ~1112px available width. */
html body.btc-rc4836 .btc6281693-reference-compact:not(.btc6281693-stacked-safe){
  --btc1693-rail:260px!important;
  --btc1693-outer-gap:12px!important;
}

/* Row 1: compact coach intro + property group with real usable width. */
html body.btc-rc4836 .btc6281693-engine:not(.btc6281693-stacked-safe) .btc628169-main-top{
  grid-template-columns:minmax(300px,34%) minmax(0,66%)!important;
  gap:var(--btc1693-top-gap)!important;
  align-items:stretch!important;
}

html body.btc-rc4836 .btc6281693-engine:not(.btc6281693-stacked-safe) .btc628169-property-grid{
  grid-template-columns:
    minmax(145px,1.15fr)
    minmax(132px,1fr)
    minmax(145px,1.15fr)!important;
  gap:var(--btc1693-row-gap)!important;
}

/* Property cards must not be forced to a height that cuts content. */
html body.btc-rc4836 .btc6281693-engine:not(.btc6281693-stacked-safe) .btc628169-property-grid > .btc628169-master-panel{
  height:auto!important;
  min-height:118px!important;
  overflow:visible!important;
  padding:13px 14px!important;
}

/* Keep headings on a useful line length but never outside the card. */
html body.btc-rc4836 .btc6281693-engine .btc628169-property-grid > .btc628169-master-panel :is(h2,h3,h4){
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:auto!important;
}

/* Row 2: recommendations receives the largest share.
   This is the measured clipping hotspot. */
html body.btc-rc4836 .btc6281693-engine:not(.btc6281693-stacked-safe) .btc628169-main-analysis{
  grid-template-columns:
    minmax(310px,1.28fr)
    minmax(225px,.88fr)
    minmax(230px,.90fr)!important;
  gap:var(--btc1693-row-gap)!important;
  align-items:stretch!important;
}

/* Remove hard height clipping from the analysis row. */
html body.btc-rc4836 .btc6281693-engine:not(.btc6281693-stacked-safe) .btc628169-main-analysis > .btc628169-master-panel{
  height:auto!important;
  min-height:242px!important;
  overflow:hidden!important;
}

/* Recommendation card content has to fit inside the card.
   Badges/text may wrap, but may never escape. */
html body.btc-rc4836 .btc6281693-engine .btc628169-slot-recommendations,
html body.btc-rc4836 .btc6281693-engine [data-btc6281693-slot="recommendations"]{
  min-width:0!important;
  overflow:hidden!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-slot-recommendations .bmp-coach-rec-grid,
html body.btc-rc4836 .btc6281693-engine [data-btc6281693-slot="recommendations"] .bmp-coach-rec-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-slot-recommendations .bmp-coach-rec-card,
html body.btc-rc4836 .btc6281693-engine [data-btc6281693-slot="recommendations"] .bmp-coach-rec-card{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  padding:10px 12px!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-slot-recommendations .bmp-coach-rec-card > *,
html body.btc-rc4836 .btc6281693-engine [data-btc6281693-slot="recommendations"] .bmp-coach-rec-card > *{
  min-width:0!important;
  max-width:100%!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-slot-recommendations .bmp-coach-rec-card :is(h3,h4,strong,p,span),
html body.btc-rc4836 .btc6281693-engine [data-btc6281693-slot="recommendations"] .bmp-coach-rec-card :is(h3,h4,strong,p,span){
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}

/* Compact priority badge: never forces card overflow. */
html body.btc-rc4836 .btc6281693-engine .btc628169-slot-recommendations :is(.bmp-badge,.badge,[class*="priority"]),
html body.btc-rc4836 .btc6281693-engine [data-btc6281693-slot="recommendations"] :is(.bmp-badge,.badge,[class*="priority"]){
  max-width:92px!important;
  white-space:normal!important;
  text-align:center!important;
  line-height:1.05!important;
  overflow:hidden!important;
}

/* Row 3: Goals + complete Radar/History panel.
   No fixed height, so semantic panel content can remain together. */
html body.btc-rc4836 .btc6281693-engine:not(.btc6281693-stacked-safe) .btc628169-main-development{
  grid-template-columns:minmax(330px,42%) minmax(0,58%)!important;
  gap:var(--btc1693-row-gap)!important;
}

html body.btc-rc4836 .btc6281693-engine:not(.btc6281693-stacked-safe) .btc628169-main-development > .btc628169-master-panel{
  height:auto!important;
  min-height:150px!important;
  overflow:hidden!important;
}

/* Context rail: compact but readable. */
html body.btc-rc4836 .btc6281693-engine:not(.btc6281693-stacked-safe) .btc628169-context-rail{
  width:var(--btc1693-rail)!important;
  max-width:var(--btc1693-rail)!important;
  padding-left:12px!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-context-rail > .btc628169-master-panel{
  padding:13px 14px!important;
}

html body.btc-rc4836 .btc6281693-engine .btc628169-context-rail :is(h2,h3,h4){
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:auto!important;
}

/* Prevent browser/UI text metrics from growing cards sideways. */
html body.btc-rc4836 .btc6281693-engine :is(
  .btc628169-property-grid,
  .btc628169-main-analysis,
  .btc628169-main-development,
  .btc628169-context-rail
) > .btc628169-master-panel{
  min-inline-size:0!important;
  max-inline-size:100%!important;
}

/* Specific content-fit lock for the three measured failing slots. */
html body.btc-rc4836 .btc6281693-engine :is(
  .btc628169-slot-status,
  .btc628169-slot-focus,
  .btc628169-slot-recommendations,
  [data-btc6281693-slot="status"],
  [data-btc6281693-slot="focus"],
  [data-btc6281693-slot="recommendations"]
){
  min-width:0!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}

/* At the measured compact desktop range, preserve the two-column shell
   but use safer inner proportions. */
@media (min-width:940px) and (max-width:1179px){
  html body.btc-rc4836 .btc6281693-engine:not(.btc6281693-stacked-safe) .btc628169-main-top{
    grid-template-columns:minmax(275px,31%) minmax(0,69%)!important;
  }

  html body.btc-rc4836 .btc6281693-engine:not(.btc6281693-stacked-safe) .btc628169-property-grid{
    grid-template-columns:
      minmax(140px,1.15fr)
      minmax(128px,1fr)
      minmax(140px,1.15fr)!important;
    gap:8px!important;
  }

  html body.btc-rc4836 .btc6281693-engine:not(.btc6281693-stacked-safe) .btc628169-main-analysis{
    grid-template-columns:
      minmax(285px,1.30fr)
      minmax(195px,.86fr)
      minmax(205px,.90fr)!important;
    gap:8px!important;
  }

  html body.btc-rc4836 .btc6281693-engine:not(.btc6281693-stacked-safe) .btc628169-main-development{
    grid-template-columns:minmax(300px,40%) minmax(0,60%)!important;
    gap:8px!important;
  }
}

/* Do not alter the established <= 760px safe stack from 16.9.3.1. */


/* ==========================================================
   6.2.8.16.9.3.3 – DETERMINISTIC GEOMETRY LOCK AUDIT MARKERS
   Audit classes are intentionally non-geometric.
   ========================================================== */
html body.btc-rc4836 .btc628169-master-shell.btc62816933-audit-pass{
  --btc62816933-audit-state:1;
}
html body.btc-rc4836 .btc628169-master-shell.btc62816933-audit-fail{
  --btc62816933-audit-state:0;
}


/* ==========================================================
   6.2.8.16.9.3.4 – COLLISION RESOLUTION & DETERMINISTIC PANEL FIT
   Measured one-pass height authority. No transforms/absolute placement.
   ========================================================== */

html body.btc-rc4836 .btc628169-master-shell.btc62816934-fit-authority{
  align-items:start!important;
}

/* Main and rail remain independent normal flows. */
html body.btc-rc4836 .btc62816934-fit-authority :is(
  .btc628169-main-workspace,
  .btc628169-context-rail
){
  align-self:start!important;
  height:auto!important;
  max-height:none!important;
}

/* All logical rows size from content. */
html body.btc-rc4836 .btc62816934-fit-authority :is(
  .btc628169-main-top,
  .btc628169-property-cluster,
  .btc628169-property-grid,
  .btc628169-main-analysis,
  .btc628169-main-development,
  .btc628169-main-remainder,
  .btc628169-context-rail
){
  height:auto!important;
  max-height:none!important;
  min-height:var(--btc16934-min-h,0px)!important;
  grid-auto-rows:max-content!important;
  align-content:start!important;
  overflow:visible!important;
}

/* Panel content determines vertical size, grid determines X/width. */
html body.btc-rc4836 .btc62816934-fit-authority .btc628169-master-panel{
  height:auto!important;
  max-height:none!important;
  min-height:var(--btc16934-min-h,0px)!important;
  align-self:stretch!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  margin-top:0!important;
  margin-bottom:0!important;
}

/* Outer panels must never visually intrude into the next row. */
html body.btc-rc4836 .btc62816934-fit-authority :is(
  .btc628169-main-top,
  .btc628169-main-analysis,
  .btc628169-main-development
){
  isolation:isolate!important;
}

/* Recommendation badges: protect the word MITTEL from artificial splitting. */
html body.btc-rc4836 .btc62816934-fit-authority .btc628169-slot-recommendations :is(
  .bmp-badge,
  .badge,
  [class*="priority"]
),
html body.btc-rc4836 .btc62816934-fit-authority [data-btc6281693-slot="recommendations"] :is(
  .bmp-badge,
  .badge,
  [class*="priority"]
){
  min-width:72px!important;
  max-width:92px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}

/* The recommendation list grows vertically instead of colliding. */
html body.btc-rc4836 .btc62816934-fit-authority .btc628169-slot-recommendations,
html body.btc-rc4836 .btc62816934-fit-authority [data-btc6281693-slot="recommendations"]{
  overflow-x:hidden!important;
  overflow-y:visible!important;
}

/* Final dimension-lock states are diagnostic only. */
html body.btc-rc4836 .btc628169-master-shell.btc62816934-resolution-pass{
  --btc62816934-final-pass:1;
}
html body.btc-rc4836 .btc628169-master-shell.btc62816934-resolution-fail{
  --btc62816934-final-pass:0;
}


/* ==========================================================
   6.2.8.16.9.3.5 – ROW BOUNDARY AUTHORITY
   Final geometry authority for vertical flow.
   ========================================================== */

html body.btc-rc4836 .btc62816935-boundary-authority{
  align-items:start!important;
}

/* Main workspace is one strict vertical flow. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-main-workspace{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}

/* Every logical row owns its measured minimum boundary. */
html body.btc-rc4836 .btc62816935-boundary-authority :is(
  .btc628169-main-top,
  .btc628169-property-grid,
  .btc628169-main-analysis,
  .btc628169-main-development,
  .btc628169-main-remainder
){
  height:auto!important;
  min-height:var(--btc16935-row-min,0px)!important;
  max-height:none!important;
  align-items:stretch!important;
  align-content:stretch!important;
  overflow:visible!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  margin-top:0!important;
  margin-bottom:0!important;
}

/* Property cluster is measured independently because it also owns its label. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-property-cluster{
  height:auto!important;
  min-height:var(--btc16935-row-min,0px)!important;
  max-height:none!important;
  overflow:visible!important;
}

/* Panels never own positional corrections. They only expose their real
   content minimum to the row. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-master-panel{
  height:auto!important;
  min-height:var(--btc16935-panel-min,0px)!important;
  max-height:none!important;
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  transform:none!important;
  margin-top:0!important;
  margin-bottom:0!important;
  box-sizing:border-box!important;
}

/* Equal-height peer cards within each grid row. */
html body.btc-rc4836 .btc62816935-boundary-authority :is(
  .btc628169-property-grid,
  .btc628169-main-analysis,
  .btc628169-main-development
) > .btc628169-master-panel{
  align-self:stretch!important;
}

/* Recommendation cards grow only downward inside their parent. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-slot-recommendations{
  overflow-x:hidden!important;
  overflow-y:visible!important;
}

/* Rail remains the second and only second outer column. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-context-rail{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  align-self:start!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-context-rail > .btc628169-master-panel{
  height:auto!important;
  min-height:var(--btc16935-panel-min,0px)!important;
  max-height:none!important;
  flex:0 0 auto!important;
}

/* Final state markers are non-geometric. */
html body.btc-rc4836 .btc62816935-final-pass{
  --btc62816935-final-state:1;
}
html body.btc-rc4836 .btc62816935-final-fail{
  --btc62816935-final-state:0;
}


/* ==========================================================
   6.2.8.16.9.4 – BTC COACH COMPONENT & VISUAL TOKEN LAYER
   PRESENTATION ONLY.
   The 9.3.5 row-boundary / collision geometry remains authority.
   ========================================================== */

html body.btc-rc4836 .btc62816935-boundary-authority{
  --btc-module-accent:var(--btc-module-coach);
}

/* MASTER CARD LANGUAGE */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-master-panel{
  background:
    linear-gradient(180deg,rgba(14,35,53,.97),rgba(8,25,39,.98))!important;
  border:1px solid var(--btc-fpc-border)!important;
  border-radius:var(--btc-fpc-radius-md)!important;
  padding:var(--btc-fpc-panel-pad-y) var(--btc-fpc-panel-pad-x)!important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.025) inset,
    0 10px 28px rgba(0,0,0,.12)!important;
  color:var(--btc-fpc-text)!important;
}

/* Hero/player context keeps the stronger Coach identity. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-main-hero,
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-selected-player{
  background:
    linear-gradient(110deg,#0b1c2d 0%,#111d3c 54%,#251441 100%)!important;
  border-color:color-mix(in srgb,var(--btc-module-accent) 65%,#2c3d55)!important;
  border-left:5px solid var(--btc-module-accent)!important;
}

/* Typography hierarchy from approved dashboard/component reference. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-master-panel :is(h1,h2,h3,h4){
  color:var(--btc-fpc-text)!important;
  font-weight:700!important;
  letter-spacing:-.02em!important;
  line-height:1.12!important;
  margin-top:0!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-master-panel h2{
  font-size:var(--btc-fpc-title-lg)!important;
}
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-master-panel h3{
  font-size:var(--btc-fpc-title-md)!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-master-panel p,
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-master-panel li,
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-master-panel label{
  color:var(--btc-fpc-text-soft)!important;
  font-size:var(--btc-fpc-body)!important;
  line-height:1.48!important;
}

/* Section kicker */
html body.btc-rc4836 .btc62816935-boundary-authority :is(
  .btc6283-section-label,
  .btc6284-section-label,
  .btc6286-rail-label,
  .btc628169-property-label,
  [class*="section-label"]
){
  color:color-mix(in srgb,var(--btc-module-accent) 82%,white)!important;
  font-size:var(--btc-fpc-kicker)!important;
  font-weight:800!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
}

/* PROPERTY CARDS: icon in a deterministic top-right slot. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-property-grid > .btc628169-master-panel{
  position:relative!important;
  padding-right:54px!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-property-grid > .btc628169-master-panel::after{
  position:absolute;
  top:16px;
  right:16px;
  width:var(--btc-fpc-icon-md);
  height:var(--btc-fpc-icon-md);
  display:grid;
  place-items:center;
  color:var(--btc-module-accent);
  font-size:25px;
  line-height:1;
  opacity:.95;
}

/* Symbols are CSS-generated, dependency-free and presentation-only. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-slot-status::after,
html body.btc-rc4836 .btc62816935-boundary-authority [data-btc6281693-slot="status"]::after{
  content:"♙";
}
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-slot-strength::after,
html body.btc-rc4836 .btc62816935-boundary-authority [data-btc6281693-slot="strength"]::after{
  content:"☆";
  color:#f3c21d;
}
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-slot-focus::after,
html body.btc-rc4836 .btc62816935-boundary-authority [data-btc6281693-slot="focus"]::after{
  content:"◎";
}

/* Context rail uses component-specific left status strips. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-context-rail > .btc628169-master-panel{
  border-left:4px solid color-mix(in srgb,var(--btc-module-accent) 72%,#45d8ff)!important;
}
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-context-rail > .btc628169-master-panel:first-child{
  border-left-color:#35d57f!important;
}
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-context-rail > .btc628169-master-panel:nth-child(2){
  border-left-color:#f3bb16!important;
}

/* Recommendations retain semantic orange, but use the same BTC card system. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-slot-recommendations .bmp-coach-rec-card,
html body.btc-rc4836 .btc62816935-boundary-authority [data-btc6281693-slot="recommendations"] .bmp-coach-rec-card{
  border-radius:12px!important;
  border:1px solid rgba(255,126,17,.36)!important;
  border-left:5px solid #ff7a12!important;
  background:
    linear-gradient(110deg,rgba(46,30,37,.96),rgba(79,29,12,.88))!important;
  padding:14px 16px!important;
  box-shadow:none!important;
}

/* Badge component */
html body.btc-rc4836 .btc62816935-boundary-authority :is(
  .bmp-badge,.badge,[class*="priority"]
){
  border-radius:999px!important;
  min-height:30px!important;
  padding:5px 12px!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1!important;
}

/* CTA component language */
html body.btc-rc4836 .btc62816935-boundary-authority :is(
  a[class*="action"],
  button,
  .button,
  input[type="submit"]
){
  border-radius:10px!important;
  min-height:38px;
  font-weight:700!important;
}

/* Radar/analysis visual center */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-slot-axes svg,
html body.btc-rc4836 .btc62816935-boundary-authority [data-btc6281693-slot="axes"] svg{
  display:block!important;
  margin-inline:auto!important;
  max-width:min(260px,88%)!important;
}

/* Contract guard: presentation layer never owns geometry. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc6281694-presentation-only{
  position:static!important;
  transform:none!important;
}


/* ==========================================================
   6.2.8.16.9.4.1 – ICON SLOT & COMPONENT ALIGNMENT REPAIR
   Presentation-only. Geometry authority stays 6.2.8.16.9.3.5.
   ========================================================== */

/* Property cards receive an explicit protected icon zone. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-property-grid > .btc628169-master-panel{
  --btc-fpc-property-icon-box:40px;
  --btc-fpc-property-icon-right:16px;
  --btc-fpc-property-icon-top:16px;
  --btc-fpc-property-icon-safe:58px;

  position:relative!important;
  padding:
    var(--btc-fpc-panel-pad-y)
    calc(var(--btc-fpc-panel-pad-x) + var(--btc-fpc-property-icon-safe))
    var(--btc-fpc-panel-pad-y)
    var(--btc-fpc-panel-pad-x)!important;
}

/* Headings are not allowed to enter the icon slot. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-property-grid > .btc628169-master-panel :is(h2,h3,h4){
  display:block!important;
  max-width:100%!important;
  padding-right:0!important;
  margin-right:0!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}

/* Icon itself is a real visual component, not a loose glyph. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-property-grid > .btc628169-master-panel::after{
  top:var(--btc-fpc-property-icon-top)!important;
  right:var(--btc-fpc-property-icon-right)!important;
  width:var(--btc-fpc-property-icon-box)!important;
  height:var(--btc-fpc-property-icon-box)!important;

  display:grid!important;
  place-items:center!important;

  box-sizing:border-box!important;
  border-radius:999px!important;
  border:1px solid color-mix(in srgb,var(--btc-module-accent) 62%,#29445a)!important;
  background:
    radial-gradient(circle at 35% 28%,
      color-mix(in srgb,var(--btc-module-accent) 28%,transparent),
      color-mix(in srgb,var(--btc-module-accent) 11%,rgba(8,25,39,.92)) 72%)!important;

  color:color-mix(in srgb,var(--btc-module-accent) 88%,white)!important;
  font-size:24px!important;
  font-weight:600!important;
  line-height:1!important;
  text-align:center!important;
  opacity:1!important;
  pointer-events:none!important;
  z-index:2!important;
}

/* Individual semantic icon treatment. */
html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-status,[data-btc6281693-slot="status"])::after{
  content:"♙"!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-strength,[data-btc6281693-slot="strength"])::after{
  content:"☆"!important;
  color:#f3c21d!important;
  border-color:rgba(243,194,29,.55)!important;
  background:
    radial-gradient(circle at 35% 28%,
      rgba(243,194,29,.18),
      rgba(243,194,29,.06) 72%)!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-focus,[data-btc6281693-slot="focus"])::after{
  content:"◎"!important;
}

/* Keep body copy aligned on one common text axis. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-property-grid > .btc628169-master-panel > :not(style):not(script){
  position:relative;
  z-index:1;
}

/* Rail cards use their colored left strip as the status symbol area;
   no floating pseudo-icon is allowed to intrude into heading text. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-context-rail > .btc628169-master-panel{
  padding-left:22px!important;
}

/* Recommendation priority badge gets a protected single-line capsule. */
html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-recommendations,[data-btc6281693-slot="recommendations"])
:is(.bmp-badge,.badge,[class*="priority"]){
  min-width:78px!important;
  max-width:none!important;
  width:auto!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  text-align:center!important;
}


/* ==========================================================
   6.2.8.16.9.4.2 – SEMANTIC CARD HEADER & ICON AUTHORITY
   Presentation only. Page geometry stays under 9.3.5 authority.
   ========================================================== */

/* Retire 9.4.1 pseudo-icon placement on the card body. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-property-grid > .btc628169-master-panel::after{
  content:none!important;
  display:none!important;
}

/* Property card returns to normal body padding; header owns icon spacing. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-property-grid > .btc628169-master-panel.btc62816942-semantic-card{
  padding:
    var(--btc-fpc-panel-pad-y)
    var(--btc-fpc-panel-pad-x)
    var(--btc-fpc-panel-pad-y)
    var(--btc-fpc-panel-pad-x)!important;
}

/* Semantic header row */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc62816942-card-header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 40px!important;
  column-gap:14px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  margin:0 0 14px 0!important;
}

/* Title has its own isolated slot. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc62816942-card-title-slot{
  min-width:0!important;
  overflow:visible!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc62816942-card-title-slot :is(h2,h3,h4){
  margin:0!important;
  padding:0!important;
  max-width:100%!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
  line-height:1.12!important;
}

/* Dedicated icon component. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc62816942-card-icon-slot{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  display:grid!important;
  place-items:center!important;
  align-self:start!important;

  box-sizing:border-box!important;
  border-radius:999px!important;
  border:1px solid color-mix(in srgb,var(--btc-module-accent) 62%,#29445a)!important;
  background:
    radial-gradient(circle at 35% 28%,
      color-mix(in srgb,var(--btc-module-accent) 28%,transparent),
      color-mix(in srgb,var(--btc-module-accent) 11%,rgba(8,25,39,.92)) 72%)!important;

  color:color-mix(in srgb,var(--btc-module-accent) 88%,white)!important;
  font-size:24px!important;
  font-weight:600!important;
  line-height:1!important;
  text-align:center!important;
  pointer-events:none!important;
}

/* Semantic icons by card slot */
html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-status,[data-btc6281693-slot="status"])
.btc62816942-card-icon-slot::before{
  content:"♙";
}

html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-strength,[data-btc6281693-slot="strength"])
.btc62816942-card-icon-slot{
  color:#f3c21d!important;
  border-color:rgba(243,194,29,.55)!important;
  background:
    radial-gradient(circle at 35% 28%,
      rgba(243,194,29,.18),
      rgba(243,194,29,.06) 72%)!important;
}
html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-strength,[data-btc6281693-slot="strength"])
.btc62816942-card-icon-slot::before{
  content:"☆";
}

html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-focus,[data-btc6281693-slot="focus"])
.btc62816942-card-icon-slot::before{
  content:"◎";
}

/* Body starts below header with a single shared content axis. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-property-grid > .btc628169-master-panel.btc62816942-semantic-card
> :not(.btc62816942-card-header){
  margin-left:0!important;
  margin-right:0!important;
}

/* Recommendation badges remain single-line. */
html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-recommendations,[data-btc6281693-slot="recommendations"])
:is(.bmp-badge,.badge,[class*="priority"]){
  min-width:82px!important;
  width:auto!important;
  max-width:none!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}

/* Explicit component authority marker */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc62816942-semantic-card{
  --btc62816942-component-authority:1;
}


/* ==========================================================
   6.2.8.16.9.4.3 – COMPONENT RHYTHM & ICON ZONE REFINEMENT
   Presentation-only. 9.3.5 remains page geometry authority.
   ========================================================== */

/* One visual spacing rhythm for all primary Coach card rows. */
html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-main-workspace{
  gap:var(--btc-fpc-layout-gap)!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority :is(
  .btc628169-property-grid,
  .btc628169-main-analysis,
  .btc628169-main-development
){
  gap:var(--btc-fpc-card-gap)!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority .btc628169-context-rail{
  gap:var(--btc-fpc-card-gap)!important;
}

/* Property cards use the compact dashboard-reference header rhythm. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc62816942-card-header{
  grid-template-columns:minmax(0,1fr) var(--btc-fpc-property-icon-box)!important;
  column-gap:var(--btc-fpc-property-icon-gap)!important;
  align-items:center!important;
  min-height:36px!important;
  margin-bottom:12px!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc62816942-card-title-slot{
  min-width:0!important;
  overflow:hidden!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc62816942-card-title-slot :is(h2,h3,h4){
  font-size:var(--btc-fpc-property-title-size)!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:100%!important;
}

/* Smaller, quieter icon zone: visually aligned, not dominant. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc62816942-card-icon-slot{
  width:var(--btc-fpc-property-icon-box)!important;
  height:var(--btc-fpc-property-icon-box)!important;
  min-width:var(--btc-fpc-property-icon-box)!important;
  min-height:var(--btc-fpc-property-icon-box)!important;
  align-self:center!important;
  justify-self:end!important;
  font-size:20px!important;
  border-width:1px!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.018) inset!important;
}

/* Keep the semantic icon forms visually balanced. */
html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-status,[data-btc6281693-slot="status"])
.btc62816942-card-icon-slot::before{
  content:"♙"!important;
  transform:translateY(-1px);
}
html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-strength,[data-btc6281693-slot="strength"])
.btc62816942-card-icon-slot::before{
  content:"★"!important;
  font-size:18px!important;
}
html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-focus,[data-btc6281693-slot="focus"])
.btc62816942-card-icon-slot::before{
  content:"◎"!important;
  font-size:21px!important;
}

/* Equal internal breathing room in the three property cards. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-property-grid > .btc628169-master-panel.btc62816942-semantic-card{
  padding:16px!important;
}

/* Main analysis cards share the same visual edge inset. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-main-analysis > .btc628169-master-panel,
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-main-development > .btc628169-master-panel{
  padding:16px!important;
}

/* Recommendation stack gets a subordinate, consistent rhythm. */
html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-recommendations,[data-btc6281693-slot="recommendations"])
.bmp-coach-rec-grid{
  gap:10px!important;
}

/* Context rail shares the same card-to-card rhythm but retains its own accent. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-context-rail > .btc628169-master-panel{
  padding:16px 18px!important;
}


/* ==========================================================
   6.2.8.16.9.4.6 – THREE-COLUMN STABLE ROLLBACK AUTHORITY
   Baseline: 6.2.8.16.9.4.3
   Retires 9.4.4 / 9.4.5 row-span experiments.
   ========================================================== */

html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-main-analysis{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-areas:none!important;
  gap:var(--btc-fpc-card-gap,12px)!important;
  align-items:stretch!important;
  grid-auto-flow:row!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-main-analysis > .btc628169-master-panel{
  grid-column:auto!important;
  grid-row:auto!important;
  min-width:0!important;
  width:auto!important;
  height:auto!important;
  align-self:stretch!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-main-development{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-areas:none!important;
  gap:var(--btc-fpc-card-gap,12px)!important;
  align-items:stretch!important;
  grid-auto-flow:row!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-main-development > .btc628169-master-panel{
  grid-column:auto!important;
  grid-row:auto!important;
  min-width:0!important;
  width:auto!important;
  height:auto!important;
}

/* Radar returns to the known-good standard analysis card footprint. */
html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-radar,[data-btc6281693-slot="radar"]){
  grid-column:auto!important;
  grid-row:auto!important;
  min-height:0!important;
  height:auto!important;
  display:block!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-radar,[data-btc6281693-slot="radar"]) :is(
  canvas,svg,.bmp-coach-radar,.bmp-coach-radar-wrap,.bmp-coach-chart,.chart-container
){
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  margin-inline:auto!important;
}

/* Main wrappers are real layout containers again. */
html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-main-analysis,.btc628169-main-development){
  contain:layout style!important;
}

/* Compact widths: stable deterministic stacking. */
@media (max-width:1180px){
  html body.btc-rc4836 .btc62816935-boundary-authority
  .btc628169-main-analysis{
    grid-template-columns:1fr!important;
  }

  html body.btc-rc4836 .btc62816935-boundary-authority
  .btc628169-main-development{
    grid-template-columns:1fr!important;
  }
}
