/* BIN TAJ C39 RC: contrast + alignment fixes. Loaded after existing themes. */
html[data-bt-theme='dark'] body[data-bt-portal='owner'] .sidebar #bt10SideProgress.bt10-side-progress,
html[data-bt-theme='light'] body[data-bt-portal='owner'] .sidebar #bt10SideProgress.bt10-side-progress{
 background:#172c51!important;border:1px solid #38537e!important;color:#f5f8ff!important;
 border-radius:15px!important;box-shadow:0 6px 20px rgba(3,13,35,.24)!important;
}
body[data-bt-portal='owner'] .sidebar #bt10SideProgress :is(.title,.numbers b,.bt12-side-motivate b){color:#f9fbff!important;opacity:1!important}
body[data-bt-portal='owner'] .sidebar #bt10SideProgress :is(.numbers span,.bt12-side-motivate span){color:#cddbf6!important;opacity:1!important}
body[data-bt-portal='owner'] .sidebar #bt10SideProgress .bar{background:#52668e!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content :is(.bt12-kpi,.bt1213-kpi,.bt13103-kpi,.bt1313-tools-kpi,.bt1340-owner-kpi,.kpi){background:#1e2d46!important;border-color:#455c7c!important;color:#f2f6ff!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content :is(.bt12-kpi,.bt1213-kpi,.bt13103-kpi,.bt1313-tools-kpi,.bt1340-owner-kpi,.kpi) :is(.value,.big,.val,.number,.amount,.total,b,strong){color:#f2f6ff!important;opacity:1!important;text-shadow:none!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content :is(.bt12-kpi,.bt1213-kpi,.bt13103-kpi,.bt1313-tools-kpi,.bt1340-owner-kpi,.kpi) :is(.label,.hint,.eyebrow,small,.sub){color:#c2cee3!important;opacity:1!important}
html[data-bt-theme='light'] body[data-bt-portal='owner'] #content :is(.bt12-kpi,.bt1213-kpi,.bt13103-kpi,.bt1313-tools-kpi,.bt1340-owner-kpi,.kpi){background:#fff!important;border-color:#d1dbeb!important;color:#14243f!important}
html[data-bt-theme='light'] body[data-bt-portal='owner'] #content :is(.bt12-kpi,.bt1213-kpi,.bt13103-kpi,.bt1313-tools-kpi,.bt1340-owner-kpi,.kpi) :is(.value,.big,.val,.number,.amount,.total,b,strong){color:#14243f!important;opacity:1!important;text-shadow:none!important}
body[data-bt-portal='owner'] .brandbar .v4-brandmark{display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;flex-shrink:0!important}
body[data-bt-portal='owner'] .topbar .top-actions{align-items:center!important;min-width:0!important}
body[data-bt-portal='owner'] #topLogo.avatar-top{width:36px!important;height:36px!important;min-height:36px!important;flex-shrink:0!important;object-fit:cover!important;object-position:center!important;align-self:center!important;margin:0!important;vertical-align:middle!important}
body[data-bt-portal='owner'] #content .btC39ChatError{padding:12px 14px!important;margin:8px!important;border-color:#d8a366!important;overflow-wrap:anywhere!important}

/* C41: selectors confirmed against rendered Channels/Sales, not guessed names. */
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content .kpi :is(.lbl,.delta){color:#cddbf6!important;opacity:1!important}
html[data-bt-theme='light'] body[data-bt-portal='owner'] #content .kpi :is(.lbl,.delta){color:#405570!important;opacity:1!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content :is(.bt139-channel-range,.bt10-more,.bt10-empty){color:#cddbf6!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content .mutedbox{background:#1e2d46!important;color:#cddbf6!important;border-color:#455c7c!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content :is(.bt124-card-reason,.bt125-calc-link){color:#cddbf6!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content :is(.btn.ghost,.btn.danger,.bt1311-status-btn){background:#263b5b!important;color:#f5f8ff!important;border-color:#627da5!important}
body[data-bt-portal='owner'] #content .bt124-last-update span{color:#405570!important}
html[data-bt-theme='light'] body[data-bt-portal='owner'] #content :is(p,.bt139-channel-range,.bt10-table-foot,.bt10-empty){color:#405570!important}
body[data-bt-portal='owner'] #content :is(.btn.blue,.bt87-channel-status button.active,.bt1330-channel-groups button.active){background:linear-gradient(120deg,#5036b6,#6245c4)!important;color:#fff!important}
body[data-bt-portal='owner'] #content .bt87-channel-status button.active span{background:#fff!important;color:#5036b6!important}

/* C42: measured Members labels and semantic status contrast. */
html[data-bt-theme='light']{--c42-muted:#405570}
html[data-bt-theme='dark']{--c42-muted:#cddbf6}
body[data-bt-portal='owner'] #content :is(.bt125-io span,.bt124-card-reason,.bt125-calc-link,.member-card-top p,.bt82-status-note){color:var(--c42-muted)!important}
body[data-bt-portal='owner'] #content .bt82-count{background:#eef2fc!important;color:#243553!important}
body[data-bt-portal='owner'] #content .bt126-filter-card .check{background:#5036b6!important;color:#fff!important}
body[data-bt-portal='owner'] #content .status{background:#e5f6eb!important;color:#155c31!important}
body[data-bt-portal='owner'] #content .status.leave{background:#fff3d6!important;color:#715000!important}
body[data-bt-portal='owner'] #content :is(.status.left,.status.inactive,.status.absent){background:#ffe5e5!important;color:#8b2525!important}
body[data-bt-portal='owner'] #content .btn.primary{background:linear-gradient(120deg,#5036b6,#6245c4)!important;color:#fff!important}
body[data-bt-portal='owner'] #content .bt1340-opill.late{background:#fff3d6!important;color:#715000!important}
body[data-bt-portal='owner'] #content .bt1332-count{background:#ffe5e5!important;color:#8b2525!important}
/* Additional measured pages: preserve status meaning with readable surfaces. */
body[data-bt-portal='owner'] :is(#content,.modal) :is(.btn.green,.btn.red,.bt11-ai-send,.v4-primary){background:#5036b6!important;color:#fff!important}
body[data-bt-portal='owner'] #content .btn.green{background:#17643a!important}
body[data-bt-portal='owner'] #content .btn.red{background:#9b2d36!important}
body[data-bt-portal='owner'] #content :is(.bt127p-profile-info small,.bt127p-metric span,.connector span,.bt136-help,.bt136-ai-rule span,.bt136-security-card p){color:#405570!important}
body[data-bt-portal='owner'] #content .ai-empty{color:var(--c42-muted)!important}
body[data-bt-portal='owner'] #content .bt127p-score-label.na{background:#eef2f7!important;color:#405570!important}
body[data-bt-portal='owner'] #content .bt127p-metric b.warn{color:#885000!important}
body[data-bt-portal='owner'] #content :is(.btf-card small,.c11-status-grid small,.c11-face-kpis small){color:#405570!important}
body[data-bt-portal='owner'] #content .bt1212-status{color:#304766!important}
html[data-bt-theme='light'] body[data-bt-portal='owner'] #content .bt10-oh-summary span{color:#405570!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content :is(.btf-card,.bt1010-model-card,.notice,.bt10-oh-summary>div,#bt84CloudPanel,.c11-cloud-note,.c11-face-extras){background:#1c2b44!important;color:#f7f9ff!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content :is(.btf-card small,.c11-status-grid small,.bt10-oh-summary span,.c11-face-hero p,.c11-face-switch span){color:#cddbf6!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content :is(.bt10-more,.bt10-table-foot){background:#1c2b44!important;color:#cddbf6!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content :is(.btf-card strong,.bt10-oh-summary b,.c11-cloud-note b,.c11-cloud-note a){color:#f7f9ff!important}
body[data-bt-portal='owner'] #content .c11-face-empty{color:#405570!important}
body[data-bt-portal='owner'] #content .bt127p-score-label.warn{color:#9b2d36!important}
body[data-bt-portal='owner'] #content .bt127p-mode.online{color:#155c31!important}
body[data-bt-portal='owner'] #content .bt87-channel-status button.active{background:#5036b6!important;color:#fff!important}
body[data-bt-portal='owner'] #content .btn.bt11-ai-send{background:#5036b6!important;color:#fff!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content :is(.bt136-security-card p,.bt136-msg,#c11FaceStatus,.c11-face-extras>summary,.linkbtn){color:#cddbf6!important}
html[data-bt-theme='dark'] body[data-bt-portal='owner'] #content .search-mini span{color:#243553!important}
/* Worker portal: observed captions, buttons, receipt and pending statuses. */
body[data-bt-portal='worker'] #content :is(.sub,.empty,.bt139-range-tag,.bt13103-private,.bt1313-tools-kpi span,.presence){color:#405570!important}
body[data-bt-portal='worker'] #content :is(.v4-eyebrow,.share){color:#5036b6!important}
body[data-bt-portal='worker'] #content :is(.btn.primary,.v4-primary){background:#5036b6!important;color:#fff!important}
body[data-bt-portal='worker'] #content .pill.warn{background:#fff3d6!important;color:#715000!important}
body[data-bt-portal='worker'] #content .mstatus.seen{color:#195ba3!important}
body[data-bt-portal='worker'] #content .trend{color:#155c4a!important}
html[data-bt-theme='dark'] body[data-bt-portal='worker'] #content :is(.sub,.empty,.bt139-range-tag,.presence){color:#cddbf6!important}
body[data-bt-portal='worker'] #content .sub *{color:inherit!important}
html[data-bt-theme] body[data-bt-portal='worker'] #content button.btn.primary{background:#5036b6!important;color:#fff!important}
html[data-bt-theme='dark'] body[data-bt-portal='worker'] #content :is(.v4-eyebrow,.share){color:#cbbfff!important}
html[data-bt-theme='dark'] body[data-bt-portal='worker'] #content .trend{color:#85ddb2!important}
html[data-bt-theme='dark'] body[data-bt-portal='worker'] #content .mstatus.seen{color:#98c8ff!important}
html[data-bt-theme='dark'] body[data-bt-portal='worker'] #content .bt139-notverified{color:#eac977!important}
html[data-bt-theme='dark'] body[data-bt-portal='worker'] #content .upload-zone{background:#1c2b44!important;color:#f7f9ff!important}
html[data-bt-theme] body[data-bt-portal] #content :is(.bt132-compose button.btn,.chat-card .compose #msgBtn,.bt11-ai-send,.ai-shell .ai-compose button){background:#5036b6!important;color:#fff!important}
body[data-bt-portal='worker'] #content .chstats span{color:#405570!important}
