/* Explicit agent-only night skin; member/admin pages keep their own palettes. */
:root[data-agent-theme=night] body:is(.agent-top-layout,.agent-mobile-agent){color-scheme:dark;--desk-ink:#d9e5f4;--desk-muted:#9bafc7;--desk-accent:#91bfff;--desk-line:#304259;background:#101925;color:#d9e5f4}
:root[data-agent-theme=night] body:is(.agent-top-layout,.agent-mobile-agent) *{transition-property:none!important}
:root[data-agent-theme=night] body.agent-top-layout.agent-top-layout>header{background:linear-gradient(110deg,#102033,#213c54)!important}
:root[data-agent-theme=night] body:is(.agent-top-layout,.agent-mobile-agent) :is(.card,.agent-top-navigation,.agent-top-links,.agent-phone-more-group,.agent-phone-mine-identity,.agent-desk-member,.agent-desk-stat,.agent-desk-games,.agent-desk-feedback,.rf-workbench){background:#192638!important;border-color:#304259!important;color:#d9e5f4}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat :is(.sc-conversation,.sc-recipient,.sc-compose,.sc-chat-toolbar,.sc-finance,.sc-inbox-list,.sc-start-chat,.agent-desk-list-footer,.agent-desk-search){background:#192638!important;border-color:#304259!important;color:#c3d3e8}
:root[data-agent-theme=night] body:is(.agent-top-layout,.agent-mobile-agent) :is(h2,h3,.agent-desk-member strong,.agent-desk-stat strong,.agent-desk-section-title strong,.agent-desk-feedback-heading h2,.sc-recipient strong,.sc-inbox-copy strong){color:#dce8f7!important}
:root[data-agent-theme=night] body:is(.agent-top-layout,.agent-mobile-agent) :is(.agent-desk-stat>div>span,.agent-desk-section-title small,.agent-desk-member small,.agent-desk-status,.sc-message>small,.sc-inbox-copy>span,.sc-inbox-copy>small,.muted){color:#a0b4ce!important}
:root[data-agent-theme=night] body.agent-top-layout.agent-top-layout .agent-top-navigation :is(button,.agent-nav-icon){color:#a9c0db}
:root[data-agent-theme=night] body.agent-top-layout.agent-top-layout .agent-nav-icon{background:#263c59}
:root[data-agent-theme=night] body.agent-top-layout.agent-top-layout :is(.active>.agent-nav-icon,[aria-current=page] .agent-nav-icon){background:#426ea5;color:#fff}
:root[data-agent-theme=night] body.agent-top-layout.agent-top-layout :is(.agent-top-links button.active,.agent-top-categories button.active,.agent-desktop-primary>[aria-current=page]){background:#293e59!important;color:#a9ceff!important}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat .sc-messages{background:#121e2d!important}
:root[data-agent-theme=night] body:is(.agent-top-layout,.agent-mobile-agent) #agentSupportChat .sc-message>p{background:#223247!important;border-color:#344a65!important;color:#e1eaf7!important}
:root[data-agent-theme=night] body:is(.agent-top-layout,.agent-mobile-agent) #agentSupportChat .sc-message.is-own>p{background:#25446a!important;border-color:#375d88!important;color:#edf5ff!important}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat .sc-message:not(.is-own)>p::before{border-right-color:#223247}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat .sc-message.is-own>p::after{border-left-color:#25446a}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat .sc-message.is-revoked>p{background:transparent!important;border:0!important;color:#90a5bf!important}
:root[data-agent-theme=night] body:is(.agent-top-layout,.agent-mobile-agent) :is(input,textarea,select){background:#121e2d!important;color:#dce8f7!important;border-color:#3a506c!important}
:root[data-agent-theme=night] body:is(.agent-top-layout,.agent-mobile-agent) :is(input,textarea)::placeholder{color:#8c9fb8}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat :is(.sc-chat-toolbar button,.sc-finance button,.sc-start-chat button,.agent-desk-member>button,.rf-card button){background:#22354d!important;color:#bcd7fc!important;border-color:#3b526f!important}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat :is(.sc-compose button,.rf-card [data-decision=approved]){background:#477fba!important;color:#fff!important;border-color:#588ec7!important}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat .rf-card [data-decision=rejected]{background:#3c2c34!important;color:#f2b7bd!important;border-color:#6b414c!important}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat .agent-desk-switch{background:#162234;border-color:#354b67}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat .agent-desk-switch button{color:#a5bad3}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat .agent-desk-switch button[aria-pressed=true]{background:#304a6b!important;color:#d6e8ff!important}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat .sc-inbox-item:is(.is-selected,:hover){background:#263e5b!important;border-color:#3b587a!important}
:root[data-agent-theme=night] body.agent-top-layout .agent-desk-stat-icon{background:#293c55!important;color:#a7c9f3!important}
:root[data-agent-theme=night] body.agent-top-layout :is(.agent-desk-games th,thead th){background:#22334a!important;color:#b3c6df!important;border-color:#304259!important}
:root[data-agent-theme=night] body.agent-top-layout :is(td,th){border-color:#2e415b!important;color:#c1d2e8}
:root[data-agent-theme=night] body.agent-top-layout :is(.agent-desk-games tbody tr:nth-child(even),.agent-dashboard-metrics>div,.agent-dashboard-funds,.agent-network-grid>div,.agent-dashboard-columns>section,.agent-desk-feedback .portal-feedback-intro,.rf-card,.rf-settings){background:#1d2e44!important;border-color:#304259!important;color:#b5c8e2!important}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat .is-negative{color:#f0a3ac!important}
:root[data-agent-theme=night] body.agent-top-layout .agent-desk-incoming{background:#213d5c;border-color:#4775a6}.agent-desk-incoming[hidden]{display:none!important}
:root[data-agent-theme=night] body.agent-top-layout .agent-desk-incoming :is(strong,span){color:#c4ddfd}
:root[data-agent-theme=night] body.agent-top-layout #agentSupportChat .agent-desk-incoming button{background:#304f72;color:#e0edff;border-color:#537498}
:root[data-agent-theme=night] body.agent-top-layout :is(.sc-message-dock,.sc-notification-list){background:#1b2b40!important;border-color:#38506c!important;color:#c9ddf5!important}
:root[data-agent-theme=night] body.agent-top-layout .sc-message-dock button{color:#c6dcf8}
:root[data-agent-theme=night] body.agent-top-layout .agent-article-ticker{background:#332f25!important;border-color:#62543a!important}.agent-desk-incoming{scroll-margin-top:10px}
:root[data-agent-theme=night] body.agent-top-layout .agent-article-ticker a{color:#e4c991!important}
