/* Measured desktop contrast repairs; keep both portals' established branding. */
html[data-bt-theme] body[data-bt-portal] :is(#content,#modal,.modal) :is(.btn.blue,.btn.primary){background:#5036b6!important;color:#fff!important}
html[data-bt-theme] body[data-bt-portal] #content .bt129-cost-card{background:#eef2f8!important;color:#20344f!important}
html[data-bt-theme] body[data-bt-portal] #content .bt129-cost-card :is(span,b){color:#304966!important}
html[data-bt-theme='dark'] body[data-bt-portal] #content :is(.bt129-cost-card,.connector,.bt1210-access-grid .head){background:#1c2b44!important;color:#f7f9ff!important}
html[data-bt-theme='dark'] body[data-bt-portal] #content :is(.bt129-cost-card,.connector) :is(b,span){color:#cddbf6!important}
html[data-bt-theme] body[data-bt-portal] #content .bt1210-access-yes{background:#e5f6eb!important;color:#155c31!important}
html[data-bt-theme] body[data-bt-portal] #content .bt1210-access-no{background:#ffe5e5!important;color:#8b2525!important}
html[data-bt-theme] body[data-bt-portal] #content .bt133-proof-meta{color:#405570!important}
html[data-bt-theme='dark'] body[data-bt-portal] #content .bt133-proof-meta{color:#cddbf6!important}
html[data-bt-theme] body[data-bt-portal] #content .bt1212-status{background:#e8eef7!important;color:#304766!important}
body[data-bt-portal] :is(.bt132-bubble,.msg)>div:first-child{white-space:pre-wrap;overflow-wrap:anywhere;text-align:start;unicode-bidi:plaintext}
body[data-bt-portal] :is(.bt132-compose,.compose,.bt11-ai-compose,.ai-compose){align-items:end!important;gap:9px!important}
html[data-bt-theme] body[data-bt-portal] #content :is(.bt132-compose,.compose,.bt11-ai-compose,.ai-compose) textarea{height:var(--c43-composer-height,66px)!important;min-height:66px!important;max-height:140px!important;line-height:1.5!important;padding:11px 12px!important;overflow-y:auto!important;text-align:start;box-sizing:border-box}
body[data-bt-portal] :is(.bt132-compose,.compose,.bt11-ai-compose,.ai-compose) :is(button,.attach-btn,.bt132-attach,.bt46-plus){min-height:44px;align-self:end}
body[data-bt-portal] .c43-input-error{grid-column:1/-1;width:100%;font-size:12px;line-height:1.5;color:#9b2d36;background:#ffe5e5;padding:8px 10px;border-radius:8px}
body[data-bt-portal] [aria-invalid='true']{outline:2px solid #9b2d36!important;outline-offset:2px}
html[data-bt-theme] body[data-bt-portal] #content .bt1211-ai-center-grid>div{background:#eef2f8!important;color:#20344f!important}
html[data-bt-theme] body[data-bt-portal] #content .bt1211-ai-center-grid :is(b,span){color:#304966!important;font-size:11px!important}
html[data-bt-theme='dark'] body[data-bt-portal] #content .bt1211-ai-center-grid>div{background:#1c2b44!important}
html[data-bt-theme='dark'] body[data-bt-portal] #content .bt1211-ai-center-grid :is(b,span){color:#cddbf6!important}
html[data-bt-theme='dark'] body[data-bt-portal] #content .bt12-att-state :is(span,b){color:#cddbf6!important}
html[data-bt-theme] body[data-bt-portal='worker'] #content .chat-head small{color:#405570!important}
html[data-bt-theme='dark'] body[data-bt-portal='worker'] #content .chat-head small{color:#cddbf6!important}
html[data-bt-theme] body[data-bt-portal] #content .bt139-owner-photo-copy span{color:#405570!important}
html[data-bt-theme='dark'] body[data-bt-portal] #content :is(.bt139-native-note,.bt139-native-note span,.bt139-native-note b,.bt139-owner-photo-copy span){color:#cddbf6!important}
html[data-bt-theme='dark'] body[data-bt-portal] #content .bt139-owner-photo-block{background:#1c2b44!important;color:#f7f9ff!important}
html[data-bt-theme='dark'] body[data-bt-portal] #content .bt139-owner-photo-copy b{color:#f7f9ff!important}
html[data-bt-theme='dark'] body[data-bt-portal] #apiStatusBox .soft{background:#1c2b44!important;color:#f7f9ff!important}
html[data-bt-theme='dark'] body[data-bt-portal] #apiStatusBox .subtext{color:#cddbf6!important}
html[data-bt-theme] body[data-bt-portal] #content .bt82-status-btn[aria-pressed='true']{background:#5036b6!important;color:#fff!important}
/* Preserve failure detail without covering the bottom message/AI composer. */
body[data-bt-portal='worker'] #btC41Status{top:82px!important;bottom:auto!important;max-height:min(240px,calc(100dvh - 110px));overflow-y:auto}
