
/* RC4.8.3 Build 6.2.8.16.9.7.7.2
   Master Component Role Rendering + BTC Icon Contract + Visual Fidelity */

.btc977-v2{
  --btc-bg:#0F1320;
  --btc-surface:#161B2E;
  --btc-surface-alt:#101827;
  --btc-border:#232A3E;
  --btc-border-strong:#33405B;
  --btc-text:#FFFFFF;
  --btc-text-2:#A0A6B8;
  --btc-accent:#FFB300;
  --btc-purple:#8A4FFF;
  --btc-success:#22C55E;
  --btc-warning:#F59E0B;
  --btc-info:#3882F6;
  --btc-radius:12px;
  --btc-gap:12px;
  background:#0A0D13;
  color:var(--btc-text);
  padding:24px 0 44px;
}
.btc977-v2 .btc977-shell{max-width:1480px;margin:0 auto;padding:0 18px}
.btc977-v2 .btc977-visual-header{
  border:1px solid var(--btc-border);
  border-radius:14px;
  overflow:hidden;
  background:#0b0f18;
  margin:0 0 16px;
  box-shadow:0 18px 44px rgba(0,0,0,.28);
}
.btc977-v2 .btc977-visual-header img{display:block;width:100%;height:auto}

/* Icon Contract */
.btc-icon{
  width:38px;height:38px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(138,79,255,.15);
  border:1px solid rgba(138,79,255,.18);
  color:#B98AFF;flex:0 0 auto;
}
.btc-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.btc-icon-target{color:#FFB300;background:rgba(255,179,0,.12)}
.btc-icon-routine{color:#D89B24;background:rgba(216,155,36,.12)}
.btc-icon-speed{color:#F97316;background:rgba(249,115,22,.12)}
.btc-icon-levelup{color:#22C55E;background:rgba(34,197,94,.12)}
.btc-icon-library,.btc-icon-route,.btc-icon-bolt{color:#8A4FFF}

/* Main + rail */
.btc-training-master{
  display:grid;
  grid-template-columns:minmax(0,9fr) minmax(280px,3fr);
  gap:14px;
  align-items:start;
}
.btc-training-main{display:grid;gap:14px;min-width:0}
.btc-training-rail{display:grid;gap:14px;min-width:0}

/* Component Role Surfaces */
.btc-section{
  background:linear-gradient(180deg,var(--btc-surface) 0%,var(--btc-surface-alt) 100%);
  border:1px solid var(--btc-border);
  border-radius:var(--btc-radius);
  padding:18px;
  min-width:0;
  box-shadow:0 14px 32px rgba(0,0,0,.18);
}
.btc-section[data-btc-component-role="kpi"]{background:transparent;border:0;padding:0;box-shadow:none}
.btc-section[data-btc-component-role="feature"]{background:linear-gradient(180deg,#161B2E,#111827)}
.btc-section[data-btc-component-role="analysis"]{background:linear-gradient(180deg,#151A2C,#0F1725)}
.btc-section[data-btc-component-role="action"]{background:linear-gradient(180deg,#171A2C,#101625)}
.btc-section[data-btc-component-role="info"]{background:linear-gradient(180deg,#161B2E,#101827)}

.btc-section-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border-bottom:1px solid var(--btc-border);padding-bottom:14px;margin-bottom:16px}
.btc-section-heading-inline{align-items:center}
.btc-section-heading h2,.btc-section-heading h3{margin:3px 0 4px;color:#fff;line-height:1.15}
.btc-section-heading h2{font-size:26px}
.btc-section-heading h3{font-size:20px}
.btc-section-heading p{margin:0;color:var(--btc-text-2);font-size:14px}
.btc-eyebrow{display:block;color:var(--btc-accent);font-weight:800;font-size:12px;letter-spacing:.12em}

/* KPI */
.btc-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.btc-kpi-card{
  display:flex;gap:12px;align-items:center;
  background:linear-gradient(180deg,#161B2E,#111827);
  border:1px solid var(--btc-border);
  border-radius:12px;padding:14px 15px;min-height:84px
}
.btc-kpi-copy{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:2px 12px;min-width:0;flex:1}
.btc-kpi-copy small{color:var(--btc-text-2);font-size:12px;grid-column:1}
.btc-kpi-copy strong{font-size:26px;line-height:1;grid-column:2;grid-row:1/3;align-self:center}
.btc-kpi-copy span{color:#C3C7D4;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Tabs */
.btc-training-tabs{
  display:flex;gap:32px;align-items:center;
  border-bottom:1px solid var(--btc-border);
  padding:0 8px;
}
.btc-training-tabs a{
  position:relative;padding:13px 0 12px;text-decoration:none;
  color:#9AA1B3;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.02em
}
.btc-training-tabs a.active{color:#fff}
.btc-training-tabs a.active:after{content:"";position:absolute;height:2px;background:var(--btc-accent);left:0;right:0;bottom:-1px}

/* Training feature cards */
.btc-training-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.btc-training-card-final{
  position:relative;display:flex;flex-direction:column;
  min-height:310px;padding:18px;
  background:#101827;border:1px solid #2C3851;border-radius:12px;
  overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease
}
.btc-training-card-final:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--btc-card-accent)}
.btc-training-card-final:hover{transform:translateY(-2px);border-color:#435270;box-shadow:0 16px 30px rgba(0,0,0,.22)}
.btc-training-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.btc-native-badge{color:#717B91;font-size:10px;letter-spacing:.08em;font-weight:700}
.btc-training-card-final h3{margin:0 0 8px;font-size:20px;line-height:1.2}
.btc-training-subtitle{color:var(--btc-card-accent);font-size:14px}
.btc-training-card-final p{color:var(--btc-text-2);font-size:14px;line-height:1.55;margin:12px 0 18px}
.btc-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:10px;padding:11px 14px;text-decoration:none;font-weight:800;font-size:13px}
.btc-btn-outline{border:1px solid #42506C;color:#fff;background:#0F1725}
.btc-btn-outline:hover{border-color:var(--btc-accent);color:#fff}

/* Learning flow */
.btc-learning-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.btc-learning-flow>a{
  min-width:0;display:grid;grid-template-columns:auto auto 1fr auto;gap:10px;align-items:center;
  background:#101827;border:1px solid #2C3851;border-radius:10px;padding:13px;
  color:#fff;text-decoration:none
}
.btc-flow-index{font-size:11px;color:#B98AFF;font-weight:800}
.btc-learning-flow .btc-icon{width:32px;height:32px}
.btc-learning-flow .btc-icon svg{width:18px;height:18px}
.btc-flow-copy{display:grid;min-width:0}
.btc-flow-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.btc-flow-copy small{font-size:11px;color:var(--btc-text-2)}
.btc-flow-arrow{color:var(--btc-accent);font-size:18px}

/* Library */
.btc-library-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.btc-library-preview-grid article{
  display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:2px;
  padding:14px;border:1px solid #2C3851;border-radius:10px;background:#101827
}
.btc-library-preview-grid article .btc-icon{grid-row:1/3;width:34px;height:34px}
.btc-library-preview-grid strong{font-size:13px}
.btc-library-preview-grid span{font-size:11px;color:var(--btc-text-2)}

/* Quick Actions */
.btc-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.btc-quick-card{
  display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;
  padding:14px;border:1px solid #384760;border-radius:10px;background:#101827;color:#fff;text-decoration:none
}
.btc-quick-card.primary{background:linear-gradient(135deg,#FFB300,#D99400);color:#111827;border-color:#FFB300}
.btc-quick-card.primary .btc-icon{background:rgba(0,0,0,.12);color:#111827;border-color:rgba(0,0,0,.12)}
.btc-quick-card span{display:grid}
.btc-quick-card strong{font-size:13px}
.btc-quick-card small{font-size:11px;opacity:.78}

/* Rail */
.btc-context-steps{display:grid;gap:10px}
.btc-context-steps>div{
  display:grid;grid-template-columns:28px 34px 1fr;gap:10px;align-items:start;
  padding:13px;border:1px solid #2C3851;border-radius:10px;background:#101827
}
.btc-context-steps>div>span{
  width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#28204C;color:#B98AFF;font-weight:800;font-size:12px
}
.btc-context-steps .btc-icon{width:32px;height:32px}
.btc-context-steps p{display:grid;margin:1px 0 0}
.btc-context-steps strong{font-size:13px}
.btc-context-steps small{font-size:11px;color:var(--btc-text-2);line-height:1.45;margin-top:3px}
.btc-rail-compact{padding:16px}
.btc-contract-status{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.btc-contract-status li{display:flex;justify-content:space-between;gap:14px;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.06);font-size:12px}
.btc-contract-status span{color:var(--btc-text-2)}
.btc-contract-status strong{color:#fff}

/* Responsive 12/8/4 */
@media(max-width:1180px){
  .btc-training-master{grid-template-columns:minmax(0,8fr) minmax(260px,3fr)}
  .btc-kpi-grid,.btc-training-card-grid,.btc-learning-flow,.btc-library-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .btc-training-master{grid-template-columns:1fr}
  .btc-training-rail{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .btc977-v2{padding-top:12px}
  .btc977-v2 .btc977-shell{padding:0 10px}
  .btc-kpi-grid,.btc-training-card-grid,.btc-learning-flow,.btc-library-preview-grid,.btc-quick-grid,.btc-training-rail{grid-template-columns:1fr}
  .btc-training-tabs{gap:18px;overflow-x:auto}
  .btc-section{padding:14px}
  .btc-section-heading h2{font-size:22px}
  .btc-training-card-final{min-height:0}
}


/* RC4.8.3 Build 6.2.8.16.9.7.7.3
   Training Master Screen Content Fidelity & Final Visual Calibration */

/* Overall rhythm */
.btc977-v2 .btc977-shell{max-width:1480px}
.btc977-v2 .btc977-visual-header{
  margin-bottom:14px;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(0,0,0,.24);
}
.btc-training-master{gap:14px}
.btc-training-main{gap:12px}
.btc-training-rail{gap:12px}

/* Master content width and vertical density */
.btc-section{
  padding:16px;
  border-radius:12px;
  box-shadow:0 10px 26px rgba(0,0,0,.16);
}
.btc-section-heading{padding-bottom:12px;margin-bottom:14px}
.btc-section-heading h2{font-size:24px;letter-spacing:-.01em}
.btc-section-heading p{max-width:820px;line-height:1.5}

/* KPI calibration: compact visual anchor like the master */
.btc-kpi-grid{gap:10px}
.btc-kpi-card{
  min-height:74px;
  padding:12px 13px;
  gap:10px;
}
.btc-kpi-card .btc-icon{width:34px;height:34px}
.btc-kpi-card .btc-icon svg{width:18px;height:18px}
.btc-kpi-copy strong{font-size:24px}
.btc-kpi-copy small{font-size:11px}
.btc-kpi-copy span{font-size:11px}

/* Tabs */
.btc-training-tabs{gap:28px;padding:0 4px}
.btc-training-tabs a{font-size:11px;padding-top:12px;padding-bottom:11px}

/* Feature cards: equal heights and stronger hierarchy */
.btc-training-card-grid{gap:10px}
.btc-training-card-final{
  min-height:292px;
  padding:16px;
  border-radius:11px;
}
.btc-training-card-final:before{width:3px}
.btc-training-card-top{margin-bottom:15px}
.btc-training-card-top .btc-icon{width:40px;height:40px}
.btc-training-card-final h3{font-size:19px;min-height:46px}
.btc-training-subtitle{font-size:13px;min-height:20px}
.btc-training-card-final p{
  font-size:13px;
  line-height:1.52;
  margin:10px 0 16px;
  min-height:80px;
}
.btc-btn{min-height:40px;padding:10px 13px}
.btc-training-card-final .btc-btn{margin-top:auto}

/* Learning path: lighter than main feature cards */
.btc-learning-flow{gap:8px}
.btc-learning-flow>a{
  padding:11px 12px;
  min-height:72px;
  border-radius:9px;
}
.btc-flow-copy strong{font-size:12px}
.btc-flow-copy small{font-size:10.5px}

/* Exercise preview visual density */
.btc-library-preview-grid{gap:8px}
.btc-library-preview-grid article{
  padding:12px;
  min-height:68px;
  align-content:center;
}
.btc-library-preview-grid strong{font-size:12.5px}
.btc-library-preview-grid span{font-size:10.5px}

/* Quick start */
.btc-quick-grid{gap:8px}
.btc-quick-card{
  min-height:72px;
  padding:12px 13px;
}
.btc-quick-card strong{font-size:12.5px}

/* Right rail proportion */
.btc-training-rail .btc-section{padding:15px}
.btc-training-rail .btc-section-heading h2{font-size:21px}
.btc-context-steps>div{
  padding:11px 12px;
  grid-template-columns:26px 32px 1fr;
}
.btc-context-steps>div>span{width:26px;height:26px;font-size:11px}
.btc-context-steps .btc-icon{width:30px;height:30px}
.btc-context-steps strong{font-size:12.5px}
.btc-context-steps small{font-size:10.5px}

/* Recommendation rail */
.btc-recommendation-list{display:grid;gap:8px}
.btc-recommendation-list a{
  display:grid;
  grid-template-columns:32px 1fr auto;
  gap:9px;
  align-items:center;
  padding:10px 11px;
  border:1px solid #2C3851;
  border-radius:9px;
  background:#101827;
  color:#fff;
  text-decoration:none;
}
.btc-recommendation-list .btc-icon{width:30px;height:30px}
.btc-recommendation-list span{display:grid}
.btc-recommendation-list strong{font-size:12px}
.btc-recommendation-list small{font-size:10px;color:var(--btc-text-2);margin-top:2px}
.btc-recommendation-list b{color:var(--btc-accent)}

/* Content fidelity cleanup: never show internal debug wording */
.btc977-v2 [data-btc-contract-slot-ready],
.btc977-v2 .btc977-placeholder{display:none!important}

/* Strong but restrained hover */
.btc-training-card-final:hover,
.btc-learning-flow>a:hover,
.btc-library-preview-grid article:hover,
.btc-recommendation-list a:hover{
  border-color:#465673;
}

/* Tablet 8 */
@media(max-width:1180px){
  .btc-training-card-final h3{min-height:auto}
  .btc-training-card-final p{min-height:auto}
}

/* Tablet stacked rail */
@media(max-width:900px){
  .btc-training-rail{grid-template-columns:1fr 1fr}
  .btc-training-card-final{min-height:270px}
}

/* Mobile 4 */
@media(max-width:640px){
  .btc977-v2{padding-bottom:26px}
  .btc977-v2 .btc977-visual-header{border-radius:10px}
  .btc-section{padding:13px}
  .btc-section-heading{margin-bottom:12px}
  .btc-section-heading h2{font-size:21px}
  .btc-kpi-card{min-height:66px}
  .btc-kpi-copy strong{font-size:22px}
  .btc-training-card-final{min-height:0;padding:14px}
  .btc-training-card-final p{min-height:0}
  .btc-training-tabs{gap:18px}
  .btc-training-tabs a{white-space:nowrap}
  .btc-training-rail{grid-template-columns:1fr}
  .btc-quick-card{min-height:66px}
}


/* RC4.8.3 Build 6.2.8.16.9.7.7.4
   Cross-Page Master Screen Adoption & Golden Implementation Pattern */

.btc-cross-master{
  display:grid;
  grid-template-columns:minmax(0,9fr) minmax(280px,3fr);
  gap:14px;
  align-items:start;
}
.btc-cross-main,.btc-cross-rail{display:grid;gap:12px;min-width:0}
.btc-cross-intro h1{margin:3px 0 6px;font-size:30px;line-height:1.08}
.btc-cross-intro p{margin:0;color:var(--btc-text-2);max-width:850px}
.btc-cross-slot-body{min-width:0}
.btc-cross-ready{
  min-height:76px;
  display:grid;
  grid-template-columns:38px 1fr;
  gap:12px;
  align-items:center;
  padding:13px 14px;
  border:1px solid #2C3851;
  border-radius:10px;
  background:#101827;
}
.btc-cross-ready>span{display:grid;gap:3px}
.btc-cross-ready strong{font-size:13px}
.btc-cross-ready small{font-size:11px;color:var(--btc-text-2);line-height:1.45}
.btc-cross-native-source{
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.btc-cross-native-source>*{max-width:100%!important}

/* Golden role fidelity */
.btc-cross-kpi{background:transparent;border:0;padding:0;box-shadow:none}
.btc-cross-kpi .btc-cross-ready{background:linear-gradient(180deg,#161B2E,#111827)}
.btc-cross-feature{background:linear-gradient(180deg,#161B2E,#111827)}
.btc-cross-analysis{background:linear-gradient(180deg,#151A2C,#0F1725)}
.btc-cross-action{background:linear-gradient(180deg,#171A2C,#101625)}

/* 12 / 8 / 4 */
@media(max-width:1180px){
  .btc-cross-master{grid-template-columns:minmax(0,8fr) minmax(250px,3fr)}
}
@media(max-width:900px){
  .btc-cross-master{grid-template-columns:1fr}
}
@media(max-width:640px){
  .btc-cross-intro h1{font-size:25px}
  .btc-cross-ready{grid-template-columns:34px 1fr;padding:11px 12px}
}


/* RC4.8.3 Build 6.2.8.16.9.7.7.4.1
   Golden Contract Native Workspace Preservation & Family Composition Repair */

/*
 * GOLDEN RULE:
 * Existing complex dashboards keep their validated internal layout.
 * FPM V2 controls the page shell/header and responsive viewport only.
 */
.btc-cross-master-preserved{
  display:block;
  width:100%;
}
.btc-cross-main-full{
  width:100%;
  max-width:none;
  display:block;
}
.btc-native-workspace{
  width:100%;
  min-width:0;
  max-width:100%;
  background:transparent;
  border:0;
  padding:0;
  margin:0;
  overflow:visible;
}

/* Undo the 9.7.7.4 generic projection constraints */
.btc-cross-master-preserved .btc-cross-native-source,
.btc-cross-master-preserved .btc-cross-native-source>*,
.btc-native-workspace>*{
  max-width:none!important;
}
.btc-native-workspace [class*="grid"],
.btc-native-workspace [class*="layout"],
.btc-native-workspace [class*="workspace"],
.btc-native-workspace [class*="dashboard"]{
  min-width:0;
}

/* Never squeeze a proven native dashboard into the old 9/3 generic shell */
.btc-cross-master-preserved .btc-cross-rail,
.btc-cross-master-preserved .btc-cross-ready,
.btc-cross-master-preserved .btc-cross-slot{
  display:none!important;
}

/* Preserve native component typography and controls.
   Only outer geometry is normalized. */
.btc-native-workspace input,
.btc-native-workspace select,
.btc-native-workspace button,
.btc-native-workspace a{
  max-width:100%;
}

/* Coach-specific golden recovery:
   use the whole content width and retain the existing two-column dashboard balance */
[data-btc-master-family="coach"] .btc-native-workspace{
  width:100%;
}
[data-btc-master-family="coach"] .btc-native-workspace > *{
  width:100%!important;
}

/* Responsive guard: do not crop native workspaces */
@media(max-width:1180px){
  .btc-cross-master-preserved{display:block}
  .btc-native-workspace{overflow-x:visible}
}
@media(max-width:900px){
  .btc-native-workspace{width:100%}
}
@media(max-width:640px){
  .btc-native-workspace{overflow-x:hidden}
}


/* RC4.8.3 Build 6.2.8.16.9.7.7.5
   Coach Master Screen Golden Composition & Visual Fidelity Restoration */

.btc-coach-golden{
  display:grid;
  grid-template-columns:minmax(0,9fr) minmax(290px,3fr);
  gap:14px;
  align-items:start;
}
.btc-coach-golden-main,
.btc-coach-golden-rail{
  display:grid;
  gap:12px;
  min-width:0;
}
.btc-coach-overview{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:18px 20px;
  border-left:4px solid #8A4FFF;
  background:
    radial-gradient(circle at 85% 10%, rgba(138,79,255,.16), transparent 38%),
    linear-gradient(180deg,#171B31,#101827);
}
.btc-coach-overview h1{
  margin:3px 0 5px;
  font-size:30px;
  line-height:1.08;
}
.btc-coach-overview p{
  margin:0;
  color:var(--btc-text-2);
  max-width:760px;
}
.btc-coach-overview-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.btc-coach-overview .btc-btn{
  min-height:42px;
  white-space:nowrap;
}
.btc-btn-primary{
  color:#fff;
  background:linear-gradient(135deg,#8A4FFF,#6F35E8);
  border:1px solid #8A4FFF;
}
.btc-coach-overview .btc-icon{
  width:28px;
  height:28px;
  background:rgba(255,255,255,.08);
  color:#fff;
}

.btc-coach-role-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.btc-coach-role-strip article{
  min-height:72px;
  display:grid;
  grid-template-columns:36px 1fr;
  gap:10px;
  align-items:center;
  padding:12px 13px;
  border:1px solid #2E3953;
  border-radius:11px;
  background:linear-gradient(180deg,#161B2E,#101827);
}
.btc-coach-role-strip .btc-icon{width:34px;height:34px}
.btc-coach-role-strip span{display:grid;gap:2px}
.btc-coach-role-strip strong{font-size:12px}
.btc-coach-role-strip small{font-size:10.5px;color:var(--btc-text-2)}

.btc-coach-native-workspace{
  width:100%;
  min-width:0;
  max-width:100%;
  overflow:visible;
  background:transparent;
  border:0;
  padding:0;
  margin:0;
}
.btc-coach-native-workspace>*{
  width:100%!important;
  max-width:100%!important;
}

/*
 * Quality restoration:
 * do not squeeze native Coach dashboard cards into generic cross-page slots.
 */
.btc-coach-native-workspace [class*="dashboard"],
.btc-coach-native-workspace [class*="workspace"],
.btc-coach-native-workspace [class*="grid"],
.btc-coach-native-workspace [class*="layout"]{
  min-width:0;
  max-width:100%;
}
.btc-coach-native-workspace img,
.btc-coach-native-workspace canvas,
.btc-coach-native-workspace svg{
  max-width:100%;
}

.btc-coach-golden-rail .btc-section{
  padding:15px;
}
.btc-coach-golden-rail .btc-section-heading h3{
  font-size:20px;
}
.btc-coach-protection ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
}
.btc-coach-protection li{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:11px;
}
.btc-coach-protection li span{color:var(--btc-text-2)}
.btc-coach-protection li strong{color:#8A4FFF;letter-spacing:.04em}

@media(max-width:1180px){
  .btc-coach-golden{
    grid-template-columns:minmax(0,8fr) minmax(260px,3fr);
  }
  .btc-coach-role-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .btc-coach-golden{grid-template-columns:1fr}
  .btc-coach-golden-rail{grid-template-columns:1fr 1fr}
  .btc-coach-overview{align-items:flex-start;flex-direction:column}
  .btc-coach-overview-actions{justify-content:flex-start}
}
@media(max-width:640px){
  .btc-coach-role-strip,
  .btc-coach-golden-rail{grid-template-columns:1fr}
  .btc-coach-overview{padding:15px}
  .btc-coach-overview h1{font-size:25px}
  .btc-coach-overview-actions{width:100%}
  .btc-coach-overview .btc-btn{width:100%}
}

/* RC4.8.3 Build 6.2.8.16.9.7.7.5.1
   Coach Native Workspace Golden Geometry, Player Card Fidelity & Production UI Finalization
   PRESENTATION ONLY. Golden Contract protected runtime remains immutable. */

/* Production UI: contract protection remains active/audited but is not user-facing. */
[data-btc-master-family="coach"] .btc-coach-protection{display:none!important}

/* The context rail is orientation only; the native workspace receives the full working width. */
[data-btc-master-family="coach"] .btc-coach-golden{
  grid-template-columns:minmax(0,1fr) minmax(300px,360px);
}
[data-btc-master-family="coach"] .btc-coach-native-workspace{
  grid-column:1 / -1;
  width:100%!important;
  max-width:none!important;
}

/* Native Coach workspace: restore useful desktop geometry without touching markup/actions. */
[data-btc-master-family="coach"] .btc-coach-native-workspace .btc618-master-workspace{
  grid-template-columns:minmax(680px,1.75fr) minmax(360px,.9fr)!important;
  gap:16px!important;
}
[data-btc-master-family="coach"] .btc-coach-native-workspace .btc618-master-rail{
  min-width:0!important;
}

/* Player browser must have enough width for four readable cards. */
[data-btc-master-family="coach"] .btc-coach-native-workspace .btc615-player-grid{
  grid-template-columns:repeat(4,minmax(150px,1fr))!important;
  gap:10px!important;
}
[data-btc-master-family="coach"] .btc-coach-native-workspace .btc615-player-card{
  min-width:0!important;
  min-height:132px!important;
  padding:12px!important;
  overflow:hidden!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
[data-btc-master-family="coach"] .btc-coach-native-workspace .btc615-player-card :is(a,strong,b,h3,h4,p,small,span){
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
[data-btc-master-family="coach"] .btc-coach-native-workspace .btc615-player-card :is(a,strong,b,h3,h4){
  white-space:normal!important;
}
[data-btc-master-family="coach"] .btc-coach-native-workspace .btc615-player-card :is(p,small,span){
  line-height:1.35!important;
}

/* Toolbar stays compact but may wrap instead of squeezing the cards. */
[data-btc-master-family="coach"] .btc-coach-native-workspace .btc615-browser-controls{
  flex-wrap:wrap!important;
  align-items:center!important;
}
[data-btc-master-family="coach"] .btc-coach-native-workspace .btc615-browser-actions{
  flex-wrap:wrap!important;
}

/* Responsive golden reflow. */
@media(max-width:1280px){
  [data-btc-master-family="coach"] .btc-coach-native-workspace .btc618-master-workspace{
    grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr)!important;
  }
  [data-btc-master-family="coach"] .btc-coach-native-workspace .btc615-player-grid{
    grid-template-columns:repeat(3,minmax(150px,1fr))!important;
  }
}
@media(max-width:1020px){
  [data-btc-master-family="coach"] .btc-coach-golden{grid-template-columns:1fr}
  [data-btc-master-family="coach"] .btc-coach-golden-rail{grid-template-columns:1fr}
  [data-btc-master-family="coach"] .btc-coach-native-workspace .btc618-master-workspace{
    grid-template-columns:1fr!important;
  }
  [data-btc-master-family="coach"] .btc-coach-native-workspace .btc618-browser-panel,
  [data-btc-master-family="coach"] .btc-coach-native-workspace .btc618-master-rail{
    grid-column:1!important;
    grid-row:auto!important;
  }
  [data-btc-master-family="coach"] .btc-coach-native-workspace .btc615-player-grid{
    grid-template-columns:repeat(2,minmax(170px,1fr))!important;
  }
}
@media(max-width:640px){
  [data-btc-master-family="coach"] .btc-coach-native-workspace .btc615-player-grid{
    grid-template-columns:1fr!important;
  }
  [data-btc-master-family="coach"] .btc-coach-native-workspace .btc615-player-card{
    min-height:108px!important;
  }
}

/* ================================================================
   RC4.8.3 Build 6.2.8.16.9.7.7.5.7
   Coach Selected Player Native Golden Baseline Restoration
   & Presentation Boundary Lock

   GOLDEN RULE:
   FPM V2 owns ONLY this outer boundary.
   All descendants remain native selected-player presentation authority.
   ================================================================ */

.btc-coach-selected-player-boundary[data-btc-selected-player-boundary="locked"]{
  display:block;
  width:100%;
  max-width:none;
  min-width:0;
  margin:0;
  padding:0;
  box-sizing:border-box;
  overflow:visible;
  isolation:isolate;
}

/*
 * INTENTIONALLY NO descendant selectors.
 *
 * Prohibited inside the locked boundary:
 * - grid-template-columns overrides
 * - flex/grid conversion
 * - order/grid-column changes
 * - position/inset/transform resets
 * - width/height overrides on cards/panels
 * - native panel classification styling
 * - native text-layout overrides
 */

/* ================================================================
   6.2.8.16.9.7.7.6.2 — Matches protected Golden visual adoption
   FPM V2 owns OUTER shell only.
   ================================================================ */
.btc-matches-golden-master{
  display:block;
  width:100%;
  min-width:0;
}
.btc-matches-golden-overview{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:18px;
  padding:28px 30px;
  margin:0 0 16px;
  border:1px solid #293a57;
  border-left:5px solid #00d4e1;
  border-radius:20px;
  background:linear-gradient(135deg,#121b30 0%,#10182b 62%,#0c2130 100%);
  box-sizing:border-box;
}
.btc-matches-golden-overview h1{
  margin:4px 0 8px;
  color:#fff;
  font-size:clamp(32px,3.6vw,50px);
  line-height:1.08;
}
.btc-matches-golden-overview p{
  margin:0;
  color:#aebbd3;
  font-size:18px;
  line-height:1.5;
}
.btc-matches-golden-role-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 16px;
}
.btc-matches-golden-role-strip article{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  min-height:82px;
  padding:15px 16px;
  border:1px solid #293a57;
  border-radius:16px;
  background:#111b2e;
  box-sizing:border-box;
}
.btc-matches-golden-role-strip article>svg{
  flex:0 0 auto;
}
.btc-matches-golden-role-strip strong,
.btc-matches-golden-role-strip small{
  display:block;
}
.btc-matches-golden-role-strip strong{
  color:#fff;
  font-size:15px;
}
.btc-matches-golden-role-strip small{
  margin-top:3px;
  color:#94a6c2;
  font-size:12px;
}
.btc-matches-golden-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:18px;
  align-items:start;
}
.btc-matches-golden-main,
.btc-matches-native-boundary{
  width:100%;
  min-width:0;
}
.btc-matches-native-boundary[data-btc-native-boundary="locked"]{
  display:block;
  overflow:visible;
}
/* NO descendant layout selectors inside the locked native boundary. */
.btc-matches-golden-rail{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}
.btc-matches-golden-rail .btc-section{
  margin:0;
}
.btc-matches-protection ul{
  list-style:none;
  margin:0;
  padding:0;
}
.btc-matches-protection li{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-top:1px solid rgba(95,111,157,.25);
  color:#9baac1;
}
.btc-matches-protection li strong{
  color:#965cff;
  font-size:12px;
}
@media(max-width:1100px){
  .btc-matches-golden-layout{
    grid-template-columns:minmax(0,1fr) 290px;
  }
}
@media(max-width:900px){
  .btc-matches-golden-role-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .btc-matches-golden-layout{
    grid-template-columns:1fr;
  }
}
@media(max-width:560px){
  .btc-matches-golden-role-strip{
    grid-template-columns:1fr;
  }
  .btc-matches-golden-overview{
    padding:22px 20px;
  }
}

/* ================================================================
   RC4.8.3 Build 6.2.8.16.9.7.7.6.4
   Matches & Wertung Native Content Master Styling
   Duplicate Navigation Suppression
   Production Regression Gate
   ================================================================ */

.btc-matches-native-boundary[data-btc-native-boundary="locked"] .btc-duplicate-global-nav,
.btc-matches-native-boundary[data-btc-native-boundary="locked"] [data-btc-duplicate-global-nav="true"],
.btc-matches-native-boundary[data-btc-native-boundary="locked"] .bmp-dashboard-nav,
.btc-matches-native-boundary[data-btc-native-boundary="locked"] .bmp-area-navigation,
.btc-matches-native-boundary[data-btc-native-boundary="locked"] .bmp-frontend-navigation{
  display:none !important;
}

.btc-matches-native-boundary[data-btc-native-boundary="locked"]{
  --btc-match-card-bg:#0e1a2d;
  --btc-match-card-border:#2a3d59;
  --btc-match-card-accent:#ffb300;
}

.btc-matches-native-boundary[data-btc-native-boundary="locked"] > *{
  max-width:100%;
  box-sizing:border-box;
}

.btc-matches-native-boundary[data-btc-native-boundary="locked"]
  :is(.btc-match-history,.btc-match-history-front,.bmp-match-history,.bmp-match-history-front){
  padding:22px 24px !important;
  border:1px solid rgba(255,179,0,.28) !important;
  border-radius:20px !important;
  background:linear-gradient(180deg,#101a2c 0%,#0d1728 100%) !important;
  box-sizing:border-box !important;
}

.btc-matches-native-boundary[data-btc-native-boundary="locked"]
  :is(.btc-match-history,.btc-match-history-front,.bmp-match-history,.bmp-match-history-front)
  :is(h1,h2){
  margin-top:0 !important;
  margin-bottom:20px !important;
  font-size:clamp(28px,3vw,42px) !important;
  line-height:1.08 !important;
  color:#fff !important;
}

.btc-matches-native-boundary[data-btc-native-boundary="locked"]
  :is(.btc-match-card,.btc-match-item,.bmp-match-card,.bmp-match-item,.match-card,.match-item){
  margin:0 0 14px !important;
  padding:20px 22px !important;
  min-height:0 !important;
  border:1px solid rgba(54,99,87,.9) !important;
  border-left:5px solid var(--btc-match-card-accent) !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,#123f34 0%,#10382f 100%) !important;
  box-sizing:border-box !important;
}

.btc-matches-native-boundary[data-btc-native-boundary="locked"]
  :is(.btc-match-card,.btc-match-item,.bmp-match-card,.bmp-match-item,.match-card,.match-item)
  :is(h3,h4,strong){
  line-height:1.25 !important;
}

.btc-matches-native-boundary[data-btc-native-boundary="locked"]
  :is(.btc-match-card,.btc-match-item,.bmp-match-card,.bmp-match-item,.match-card,.match-item)
  p{
  margin:7px 0 !important;
  line-height:1.45 !important;
}

.btc-matches-native-boundary[data-btc-native-boundary="locked"]
  :is(a,button)[href*="detail"],
.btc-matches-native-boundary[data-btc-native-boundary="locked"]
  :is(.details,.match-details,.btc-match-details,.bmp-match-details){
  color:#ffc033 !important;
  font-weight:800 !important;
}

@media(max-width:900px){
  .btc-matches-native-boundary[data-btc-native-boundary="locked"]
    :is(.btc-match-history,.btc-match-history-front,.bmp-match-history,.bmp-match-history-front){
    padding:18px !important;
  }
}
@media(max-width:560px){
  .btc-matches-native-boundary[data-btc-native-boundary="locked"]
    :is(.btc-match-card,.btc-match-item,.bmp-match-card,.bmp-match-item,.match-card,.match-item){
    padding:16px !important;
  }
}

/* 6.2.8.16.9.7.7.6.5.2 — Phase A FPM V2 capability projection */
.btc-matches-golden-role-strip[data-btc-phase-a-capabilities="4"]{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.btc-matches-golden-role-strip .btc-phase-a-capability{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
  min-height:78px;
  padding:15px 16px;
  border:1px solid #2a3d59;
  border-radius:16px;
  background:#111b2e;
  color:inherit;
  text-decoration:none;
  box-sizing:border-box;
}
.btc-matches-golden-role-strip .btc-phase-a-capability:hover{
  border-color:rgba(0,212,225,.6);
  transform:translateY(-1px);
}
.btc-phase-a-cap-icon{
  display:grid;
  place-items:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:13px;
  color:#00d4e1;
  background:#182847;
}
.btc-phase-a-cap-copy{
  min-width:0;
  flex:1 1 auto;
}
.btc-phase-a-cap-copy strong,
.btc-phase-a-cap-copy small{
  display:block;
}
.btc-phase-a-cap-copy strong{
  color:#fff;
  font-size:15px;
  line-height:1.2;
}
.btc-phase-a-cap-copy small{
  margin-top:4px;
  color:#96a8c4;
  font-size:12px;
  line-height:1.35;
}
.btc-phase-a-cap-arrow{
  color:#00d4e1;
  font-size:20px;
}
.btc-phase-a-cap-state{
  max-width:76px;
  color:#8a97ac;
  font-size:9px;
  line-height:1.15;
  text-align:right;
}
.btc-phase-a-capability.is-discovery-required{
  opacity:.72;
}
@media(max-width:900px){
  .btc-matches-golden-role-strip[data-btc-phase-a-capabilities="4"]{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .btc-matches-golden-role-strip[data-btc-phase-a-capabilities="4"]{
    grid-template-columns:1fr;
  }
}

/* RC4.8.3 Build 6.2.8.16.9.7.7.6.5.3 */
.btc-matches-golden-role-strip[data-btc-phase-a-master-ui="golden-v1"]{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important;margin:0!important;
}
.btc-matches-golden-role-strip[data-btc-phase-a-master-ui="golden-v1"] .btc-phase-a-capability{
  position:relative;display:grid!important;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:12px;
  min-width:0;min-height:92px;padding:16px;border:1px solid #2a3d59;border-radius:17px;
  background:radial-gradient(circle at 12% 10%,rgba(0,212,225,.07),transparent 38%),linear-gradient(180deg,#121d31 0%,#0f1a2c 100%);
  color:#fff;text-decoration:none!important;box-sizing:border-box;overflow:hidden;transition:.18s ease;
}
.btc-matches-golden-role-strip[data-btc-phase-a-master-ui="golden-v1"] .btc-phase-a-capability:hover{
  transform:translateY(-2px);border-color:rgba(0,212,225,.62);box-shadow:0 10px 26px rgba(0,0,0,.18);
}
.btc-matches-golden-role-strip[data-btc-phase-a-master-ui="golden-v1"] .btc-phase-a-capability.is-active{
  border-color:rgba(0,212,225,.7);background:radial-gradient(circle at 10% 0%,rgba(0,212,225,.16),transparent 42%),linear-gradient(180deg,#14283d 0%,#102033 100%);
  box-shadow:inset 0 -2px 0 #00d4e1;
}
.btc-phase-a-cap-number{align-self:start;padding-top:3px;color:#6c7f9b;font-size:10px;font-weight:800;letter-spacing:.12em}
.btc-phase-a-cap-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid #324669;border-radius:14px;background:#19294a;color:#00d4e1}
.btc-phase-a-cap-copy{min-width:0;display:block}.btc-phase-a-cap-eyebrow{display:block;margin:0 0 4px;color:#00d4e1;font-size:9px;font-weight:900;letter-spacing:.13em;line-height:1.1}
.btc-phase-a-cap-copy strong{display:block;margin:0;color:#fff;font-size:16px;font-weight:800;line-height:1.18}.btc-phase-a-cap-subtitle{display:block;margin-top:5px;color:#98aac6;font-size:12px;line-height:1.32}
.btc-phase-a-cap-arrow{display:grid;place-items:center;width:28px;height:28px;border:1px solid #304662;border-radius:10px;color:#00d4e1;font-size:17px}
.btc-phase-a-cap-state{max-width:72px;color:#8493a9;font-size:8px;font-weight:800;line-height:1.2;letter-spacing:.06em;text-align:right}
.btc-phase-a-capability.is-discovery-required{opacity:.7;cursor:not-allowed}
@media(max-width:1100px){.btc-matches-golden-role-strip[data-btc-phase-a-master-ui="golden-v1"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.btc-matches-golden-role-strip[data-btc-phase-a-master-ui="golden-v1"]{grid-template-columns:1fr!important}.btc-matches-golden-role-strip[data-btc-phase-a-master-ui="golden-v1"] .btc-phase-a-capability{min-height:82px;padding:14px}}
