/* Identical geometry for every program origin and every status. */
html body :is(#independent,#coach,.ba498-overlay) .ba741-program.ba1066-card{
 display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;
 grid-template-areas:"recommend recommend" "icon copy" ". status"!important;
 align-items:start!important;justify-content:initial!important;gap:8px 10px!important;
 width:100%!important;min-width:0!important;min-height:128px!important;
 padding:16px!important;margin:0!important;box-sizing:border-box;
 background:#111416!important;border:1px solid #383e43!important;border-radius:14px!important;text-align:left!important;
}
html body :is(#independent,#coach,.ba498-overlay) .ba1066-card>.ba974-program-icon{grid-area:icon!important;width:24px!important;height:24px!important;margin:3px 0 0!important;position:static!important;color:#b6f52e!important}
html body :is(#independent,#coach,.ba498-overlay) .ba1066-card>.ba1066-copy{grid-area:copy!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;min-width:0!important;padding-right:34px!important}
html body :is(#independent,#coach,.ba498-overlay) .ba1066-card .ba1066-copy strong{font-size:15px!important;line-height:1.4!important;color:#f5f5f5!important;text-align:left!important;word-break:normal!important;overflow-wrap:normal!important}
html body :is(#independent,#coach,.ba498-overlay) .ba1066-card .ba1066-copy small{font-size:12px!important;line-height:1.4!important;text-align:left!important;color:#aab1b8!important;white-space:normal!important}
html body :is(#independent,#coach,.ba498-overlay) .ba1066-card>.ba1066-status{grid-area:status!important;justify-self:start!important;max-width:100%!important;color:#aab1b8!important;font-size:12px!important;white-space:normal!important}
html body :is(#independent,#coach,.ba498-overlay) .ba1066-card:has(.ba800-active){border:2px solid #9acb35!important}
html body :is(#independent,#coach,.ba498-overlay) .ba1066-card[data-recommended=true]{border-left:4px solid #9acb35!important}
.ba1066-recommendation{display:inline-flex;align-items:center;grid-area:recommend;justify-self:start;max-width:calc(100% - 36px);padding:6px 9px;border:1px solid #6f942a;border-radius:8px;background:#1b2810;color:#c4f76a!important;font-size:12px!important;font-weight:700;line-height:1.35;white-space:normal;word-break:normal;overflow-wrap:normal}
html body :is(#independent,#coach,.ba498-overlay) .ba1066-card>.ba1066-recommendation{grid-column:1/-1!important;grid-row:1!important;grid-area:recommend!important;font-size:12px!important;color:#c4f76a!important;max-width:calc(100% - 36px)!important}
@media(display-mode:standalone){
 body::before{content:"";position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top,0px);background:#050505;z-index:2147483000;pointer-events:none}
}
#independent [data-ba740-filter=coach][data-recommendation=true]{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important}
#independent .ba1066-coach-count{font-size:11px!important;line-height:1.25;color:#b6f52e!important;font-weight:600}

/* V1067: management remains inside the same card perimeter, without nested buttons. */
html body #independent .ba779-program-row.ba889-program-row{display:block!important;position:relative!important;padding:0!important}
html body #independent .ba889-program-row>.ba889-program-menu{position:absolute!important;right:6px!important;bottom:6px!important;width:36px!important;min-width:36px!important;height:40px!important;min-height:40px!important;padding:0!important;border:0!important;background:transparent!important;border-radius:8px!important;z-index:2}
html body #independent .ba779-program-row.ba889-program-row>.ba779-favorite{right:6px!important}
html body #independent .ba889-program-row .ba1066-status{max-width:calc(100% - 40px)!important}
[data-discovery]{min-width:0}
[data-discovery] .ba1063-discovery-notice{margin:8px 0}
.ui-modal:has(.ba964-pdf-frame){height:calc(100dvh - 32px);max-height:calc(100dvh - 32px)}
.ui-modal:has(.ba964-pdf-frame)>.ui-modal-body{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.ui-modal:has(.ba964-pdf-frame) .ba964-pdf-frame{flex:1;min-height:0;height:100%;display:block}
