/* Light surfaces and their text are a pair. Keep diagnostic pages and media overlays separate. */
body.fm-v286.fm-v262.fm-v270.fm-public-area{
 --muted:#526178;--fm270-muted:#526178;--fm270-blue:#4338a5;
 --fm286-ink:#17213a;--fm286-muted:#526178;--fm286-accent:#4338a5;
 --fm286-soft:#f5f7fc;--fm286-line:#dce3ef;
}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(p,small,.muted){color:var(--fm286-muted)}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.eyebrow,.text-link){color:var(--fm286-accent)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.fm-nav-link,.fm-admin-shortcut,.fm-more-head,.fm-mobile-nav a,.fm-social-side-note,.fm-social-side-mini a,.fm-social-composer-main small){color:var(--fm286-muted)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.fm-nav-link.active,.fm-mobile-nav a.active,.fm-account-chip>span,.fm-admin-user>span){color:var(--fm286-accent)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.btn,.fm-chat-send,.fm-create-post-btn,.fm-social-composer-submit,.fm-comment-send,.fm-qc-submit,.fm-auth-primary){background:linear-gradient(135deg,#4338a5,#7135ae)!important;color:#fff!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area .btn-secondary{background:#fff!important;color:#263657!important;border-color:var(--fm286-line)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(input,textarea)::placeholder{color:#607087!important;opacity:1}
body.fm-v286.fm-v262.fm-v270.fm-public-area .field>span{color:var(--fm286-muted);font-size:14px;line-height:1.5;opacity:1}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.fm-header-register,.fm-feed-register-btn){background:linear-gradient(135deg,#4338a5,#7135ae);color:#fff}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.fm-auth-kicker,.fm-auth-foot,.fm-auth-foot a,.fm-auth-consent a){color:var(--fm286-accent)}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.fm-auth-form label>small,.fm-auth-consent span){color:var(--fm286-muted)!important;line-height:1.6}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-auth-trial span{color:var(--fm286-muted)}
body.fm-v286.fm-v262.fm-v270.fm-public-area .ok{color:#166534!important}

/* Components left on literal dark backgrounds by the earlier light theme. */
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.ads-campaign-card,.shadow-resource-card,.shadow-files-card,.shadow-product){background:#fff;color:var(--fm286-ink);border-color:var(--fm286-line)}
body.fm-v286.fm-v262.fm-v270.fm-public-area .notice-shadow{background:#fff5e5;color:#854509;border-color:#ecd0a5}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.info-grid>span,.phase4-kpis>span,.commerce-clicks>span,.phase4-member,.phase4-leader,.commerce-table>a){background:var(--fm286-soft);color:var(--fm286-ink);border-color:var(--fm286-line)}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.rule-list li,.info-grid b,.phase4-kpis b,.commerce-clicks b){color:var(--fm286-ink)}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.info-grid small,.phase4-kpis small,.commerce-clicks small){color:var(--fm286-muted)}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-admin-nav>a.active{color:var(--fm286-accent)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-admin-entry b{color:var(--fm286-muted)}

/* Social navigation, post metadata and discovery rail share the readable light palette. */
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.fm-social-left a,.fm-social-left a.active,.fm-social-feed-tabs a,.fm-social-feed-tabs a.active,.fm-social-composer-tools button,.fm-social-composer-tools button span,.fm-social-rail-head a,.fm-social-about-link em,.fm-social-promo-card>a,.fm-social-mini-avatar,.fm-social-mini-row em){color:var(--fm286-accent)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.fm-social-post-head small,.fm-social-post-head small a,.fm-social-post-head small span,.fm-post-more,.fm-social-post-stats,.fm-live-stat,.fm-social-mini-row small,.fm-social-rail-card small,.fm-social-about-icon){color:var(--fm286-muted)}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.fm-social-about-link small,.fm-social-mini-list small){color:var(--fm286-muted)}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.fm-social-side-nav-muted a,.fm-social-rail-list small,.fm-social-rail-list em,.fm-social-rail-card>a,.fm-live-stat>span){color:var(--fm286-muted)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-social-composer-quick button{color:var(--fm286-accent)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-social-compose-tools button{color:var(--fm286-accent)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-social-about-link em{color:var(--fm286-accent)}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.fm-social-post-head small a,.fm-post-more,.shadow-files-card>em,.community-card-copy small){color:var(--fm286-accent)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area .shadow-files-card>b{color:var(--fm286-accent)}
body.fm-v286.fm-v262.fm-v270.fm-public-area .stage-a-reply :where(a,button,summary){color:var(--fm286-accent)}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-social-promo-card>a:last-child{background:linear-gradient(135deg,#4338a5,#7135ae);color:#fff!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-social-promo-card>a:last-child :where(span,b){color:#fff!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-admin-entry-status.is-good{background:#ecfdf5;color:#166534}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-admin-entry-status.is-neutral{background:#f1f5f9;color:#475569}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-admin-entry-status.is-attention{background:#fff5e5;color:#854509}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-admin-quick-actions>a>b{color:var(--fm286-muted)}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.fm-public-doc li,.fm-public-doc-hero>span,.fm-doc-links a){color:var(--fm286-accent)}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.video-phase5-tabs a,.video-phase5-tabs a.active,.fm-video-side-brand,.shadow-video-empty small){color:var(--fm286-accent)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area .video-phase5-create{background:#4338a5!important;color:#fff!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area .fm-video-title-mark{background:#4338a5;color:#fff}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.shadow-video-empty p,.fm-video-side-brand span){color:var(--fm286-muted)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area .shadow-video-empty p{color:var(--fm286-muted)!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area .shadow-video-empty{background:#fff!important;color:var(--fm286-ink);border-color:var(--fm286-line)}
body.fm-v286.fm-v262.fm-v270 .fm-community-rail-avatar{width:38px;height:38px;overflow:hidden;border-radius:12px;background:#eeecff;color:var(--fm286-accent);flex-shrink:0}
body.fm-v286.fm-v262.fm-v270 .fm-community-rail-avatar :where(img,span){width:100%;height:100%;display:grid;place-items:center}
body.fm-v286.fm-v262.fm-v270 .fm-community-rail-avatar img{object-fit:cover}
body.fm-v286.fm-v262.fm-v270 .fm-community-rail-avatar :where(img,span)[hidden]{display:none!important}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.private-thread-list,.notification-shadow-list,.private-auth-grid>span,.creator-read-grid>div,.creator-community-list>a,.money-card-grid>div,.money-list>div,.commerce-clicks>div,.ads-card-kpis>span,.info-grid>div){background:#fff;color:var(--fm286-ink);border-color:var(--fm286-line)}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.notification-pref-preview>span,.fm-feature-list>span,.money-ledger-head,.money-ledger-row,.money-list>a,.money-card-grid>article){background:var(--fm286-soft);color:var(--fm286-ink);border-color:var(--fm286-line)}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.creator-read-grid b,.creator-community-list strong,.creator-community-list b,.money-card-grid b,.money-list strong,.money-ledger-row strong,.ads-card-kpis b,.info-grid b){color:var(--fm286-ink)}
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.pill,.pill.ok){background:#eef0ff;color:var(--fm286-accent)!important;border-color:#d5d8f4}
body.fm-v286.fm-v262.fm-v270.fm-public-area .pill.warn{background:#fff5e5;color:#854509!important;border-color:#ecd0a5}
body.fm-v286.fm-v262.fm-v270.fm-public-area .pill.bad{background:#fff1f2;color:#9f1239!important;border-color:#fecdd3}

/* Inbox and notifications: readable type, distinct unread state, full-width wrapping. */
body.fm-v286.fm-v262.fm-v270 :where(.private-thread-list,.notification-shadow-list){padding:20px;border:1px solid var(--fm286-line);box-shadow:0 8px 28px #46598c12}
body.fm-v286.fm-v262.fm-v270 .private-panel-head{gap:12px;flex-wrap:wrap;margin-bottom:16px}
body.fm-v286.fm-v262.fm-v270 .private-panel-head h2{font-size:20px;color:var(--fm286-ink)}
body.fm-v286.fm-v262.fm-v270:is(.fm-messages-page,.fm-notifications-page) .eyebrow{font-size:12px}
body.fm-v286.fm-v262.fm-v270:is(.fm-messages-page,.fm-notifications-page) :where(.private-side p,.fm-section-headbar p,.private-hero p){font-size:14px;line-height:1.7}
body.fm-v286.fm-v262.fm-v270 :where(.private-thread-row,.notification-shadow-row){padding:14px;gap:12px;border-radius:12px;color:var(--fm286-ink);background:#fff;border:1px solid var(--fm286-line)}
body.fm-v286.fm-v262.fm-v270 .private-thread-row:hover{background:var(--fm286-soft)}
body.fm-v286.fm-v262.fm-v270 .private-thread-copy{min-width:0}
body.fm-v286.fm-v262.fm-v270 :where(.private-thread-copy strong,.notification-write-copy strong){font-size:15px;line-height:1.65;color:var(--fm286-ink);overflow-wrap:anywhere}
body.fm-v286.fm-v262.fm-v270 :where(.private-thread-copy small,.notification-write-copy>small){font-size:13px;line-height:1.6;color:var(--fm286-muted)}
body.fm-v286.fm-v262.fm-v270 .private-thread-meta>b{background:#4338a5;color:#fff;font-size:12px;min-width:24px;min-height:24px}
body.fm-v286.fm-v262.fm-v270 .notification-shadow-list{gap:10px;align-content:start}
body.fm-v286.fm-v262.fm-v270 .notification-shadow-row.unread{background:#f0efff;border-color:#c5bfea}
body.fm-v286.fm-v262.fm-v270 .notification-shadow-row>b{font-size:12px;color:var(--fm286-accent);align-self:start;margin-top:4px}
body.fm-v286.fm-v262.fm-v270 .notification-shadow-icon{background:#eeecff;color:var(--fm286-accent)}
body.fm-v286.fm-v262.fm-v270 .notification-write-actions{gap:10px;margin-top:10px}
body.fm-v286.fm-v262.fm-v270 .notification-write-actions :where(.btn,.text-link){font-size:13px;min-height:36px}
body.fm-v286.fm-v262.fm-v270 .notification-write-actions .text-link{display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:3px}
body.fm-v286.fm-v262.fm-v270 .notification-pref-preview>span{padding:12px;gap:12px;flex-wrap:wrap}
body.fm-v286.fm-v262.fm-v270 .notification-pref-preview :where(small,b){font-size:13px;line-height:1.6;color:var(--fm286-ink)}
body.fm-v286.fm-v262.fm-v270 .fm-feature-list>span{padding:12px;gap:10px}
body.fm-v286.fm-v262.fm-v270 .fm-feature-list :where(strong,small){font-size:13px;line-height:1.65}
body.fm-v286.fm-v262.fm-v270 .fm-feature-list>span>b{background:#eeecff;color:var(--fm286-accent)}
body.fm-v286.fm-v262.fm-v270:is(.fm-messages-page,.fm-notifications-page) .private-side{padding:20px;position:static}

/* Conversation bubbles, quotations, timestamps and composer use explicit paired colours. */
body.fm-v286.fm-v262.fm-v270 .conversation-shell>.stage-b-read-form{display:none}
body.fm-v286.fm-v262.fm-v270 .message-row>.fm-avatar{width:28px;height:28px;flex:0 0 28px}
body.fm-v286.fm-v262.fm-v270 .conversation-head{grid-template-columns:auto auto minmax(0,1fr) auto}
body.fm-v286.fm-v262.fm-v270 .message-bubble{background:#fff;color:var(--fm286-ink)}
body.fm-v286.fm-v262.fm-v270 .message-bubble p{color:var(--fm286-ink);font-size:15px;line-height:1.7}
body.fm-v286.fm-v262.fm-v270 .message-row.mine .message-bubble{background:#5142ad;color:#fff}
body.fm-v286.fm-v262.fm-v270 .message-row.mine :where(.message-bubble p,.message-time,.fm-chat-reply){color:#fff}
body.fm-v286.fm-v262.fm-v270 :where(.message-time,.fm-chat-reply){font-size:12px;color:var(--fm286-muted)}
body.fm-v286.fm-v262.fm-v270 .fm-chat-reply{color:var(--fm286-accent);min-height:28px;padding:4px 0}
body.fm-v286.fm-v262.fm-v270 .message-reply{background:#f0eef9;border-left-color:#7163ba}
body.fm-v286.fm-v262.fm-v270 .message-reply :where(small,span){font-size:12px;color:var(--fm286-accent)}
body.fm-v286.fm-v262.fm-v270 .message-row.mine .message-reply{background:#3e318b;border-left-color:#c7c1ee}
body.fm-v286.fm-v262.fm-v270 .message-row.mine .message-reply :where(small,span){color:#fff}
body.fm-v286.fm-v262.fm-v270 :where(.fm-chat-peer small,.fm-chat-compose-hint,.fm-chat-disabled){color:var(--fm286-muted);font-size:12px}
body.fm-v286.fm-v262.fm-v270 .fm-chat-peer strong{font-size:15px}
body.fm-v286.fm-v262.fm-v270 .fm-chat-compose-box textarea{font-size:16px!important;line-height:1.6}
body.fm-v286.fm-v262.fm-v270 .stage-b-reply-preview :where(b,small,button){color:var(--fm286-accent);font-size:13px}
body.fm-v286.fm-v262.fm-v270 .stage-b-message-meta{flex-wrap:wrap}
/* Captions sit on a dark scrim over media; they keep a light text pair. */
body.fm-v286.fm-v262.fm-v270.fm-public-area :where(.shadow-video-caption p,.shadow-video-product small,.shadow-video-actions>.shadow-video-action small,.fm-video-reaction-action>.shadow-video-action small){color:#fff}
@media(max-width:700px){
 body.fm-v286.fm-v262.fm-v270.fm-chat-modern .wrap.fm-page{margin:0!important;padding:0!important;width:100%!important}
 body.fm-v286.fm-v262.fm-v270.fm-chat-modern .conversation-shell{width:100%;margin:0;height:calc(100dvh - 58px - env(safe-area-inset-bottom))!important}
 body.fm-v286.fm-v262.fm-v270 :where(.private-thread-list,.notification-shadow-list){padding:12px}
 body.fm-v286.fm-v262.fm-v270 :where(.private-thread-row,.notification-shadow-row){padding:12px;gap:10px}
 body.fm-v286.fm-v262.fm-v270 .notification-shadow-row{grid-template-columns:auto minmax(0,1fr)}
 body.fm-v286.fm-v262.fm-v270 .notification-shadow-row>b{grid-column:2;grid-row:2;margin:0}
 body.fm-v286.fm-v262.fm-v270 .notification-write-actions .btn{padding:8px 10px}
 body.fm-v286.fm-v262.fm-v270:is(.fm-messages-page,.fm-notifications-page) .private-side{padding:16px}
 body.fm-v286.fm-v262.fm-v270 .message-bubble{max-width:82%}
}
