/* XMARTS LAB · Neutral controls V3 · 2026-10-20
   Only visual properties: no movement, avatar rendering, LiveKit, WhatsApp
   transport or data logic. The user's existing charcoal palette is the base.
   Keep semantic presence indicators, warnings, errors, receipts and media alive.
   Load AFTER existing panels/stylesheets, without rewriting old modules. */

body.xm-mkt-ui{
 --mk2-main:#202325;--mk2-panel:#292d2f;--mk2-panel2:#34393c;
 --mk2-input:#363c3f;--mk2-border:rgba(255,255,255,.16);
 --mk2-softborder:rgba(255,255,255,.12);--mk2-hover:#42494c;
 --mk2-text:#f1f3f2;--mk2-muted:#b8c0bf;
 --mk2-accent:#50585c;--mk2-accent-text:#f8f9f9;
}

/* 1. BURBUJAS FLOTANTES: opaque charcoal, clear distinction from map. */
html body.xm-mkt-ui #messengerBubbleStack .messenger-mini-bubble,
html body.xm-mkt-ui #chatMiniBubble{
 background:var(--vo-light-surface,#32383c)!important;background-image:none!important;
 border:2px solid #91999e!important;
 box-shadow:0 8px 20px rgba(0,0,0,.50),inset 0 1px 0 rgba(255,255,255,.16)!important;
 color:var(--vo-light-primary,#f5f6f6)!important;opacity:1!important;
 -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
html body.xm-mkt-ui #messengerBubbleStack .messenger-mini-bubble:hover,
html body.xm-mkt-ui #chatMiniBubble:hover{
 background:var(--vo-light-hover,#464d51)!important;border-color:var(--vo-light-border,#bec4c6)!important;
 filter:none!important;
}
html body.xm-mkt-ui #messengerBubbleStack .messenger-mini-bubble::before,
html body.xm-mkt-ui #messengerBubbleStack .messenger-mini-bubble::after{
 background:#303538!important;background-image:none!important;
 border:1px solid #787f83!important;
 color:var(--vo-light-primary,#f3f5f4)!important;box-shadow:0 3px 12px #0008!important;
 opacity:1!important;
}
html body.xm-mkt-ui #messengerBubbleStack .messenger-mini-bubble-general{
 filter:grayscale(1) brightness(1.55)!important;
}
html body.xm-mkt-ui #messengerBubbleStack .messenger-channel-avatar{
 background:var(--vo-light-surface,#454c50)!important;background-image:none!important;
 border-color:var(--vo-light-border,#8a9296)!important;color:var(--vo-light-primary,#fff)!important;
}
html body.xm-mkt-ui #messengerBubbleStack .messenger-mini-bubble .messenger-mini-bubble-badge{
 border-color:var(--vo-light-border,#303538)!important;
}
/* Don't recolor the actual character avatar, image, sticker, or GIF. */

/* 2. CABECERA Y MENÚS: active = charcoal, not bright lime/blue. */
body.xm-mkt-ui .app-header .header-nav>.top-nav.active,
body.xm-mkt-ui .app-header .header-nav>.top-nav[aria-current="page"]{
 background:var(--vo-light-selection,#50565a)!important;background-image:none!important;
 color:var(--vo-light-primary,#f5f6f5)!important;border-color:var(--vo-light-outline,#727a7f)!important;
}
body.xm-mkt-ui .app-header .header-nav>.top-nav:hover:not(.active),
body.xm-mkt-ui .xm-mkt-more-menu button:hover,
body.xm-mkt-ui :is(.xm-mobile-extra-menu,.xm-mobile-status-sheet) button:hover{
 background:var(--vo-light-hover,#42484b)!important;background-image:none!important;color:var(--vo-light-primary,#f4f5f5)!important;
}
body.xm-mkt-ui .xm-mkt-more-menu,
body.xm-mkt-ui .xm-mkt-more-menu button,
body.xm-mkt-ui .presence-dropdown,
body.xm-mkt-ui .presence-menu{
 background-color:var(--vo-light-card,#292d2f)!important;border-color:var(--vo-light-border,#ffffff26)!important;
 color:var(--vo-light-primary,#f3f5f4)!important;
}
body.xm-mkt-ui .xm-mkt-more-menu button{background:transparent!important;}
body.xm-mkt-ui .xm-mkt-more-menu button:hover{background:var(--vo-light-hover,#42484b)!important;}
body.xm-mkt-ui #presenceMenuButton,
body.xm-mkt-ui .header-actions .head-action,
body.xm-mkt-ui .header-actions button:not(.danger){
 border-color:#ffffff29!important;
}

/* 3. MENSAJES, nuevo chat/canal, selector y ventanas flotantes. */
html body.xm-mkt-ui #chatRail.chat-v984 :is(.v984-picker,.v984-picker-head,.v984-picker-list){
 background-color:var(--vo-light-surface,#25292c)!important;border-color:var(--vo-light-border,#ffffff20)!important;
 color:var(--vo-light-primary,#f4f5f5)!important;
}
html body.xm-mkt-ui #chatRail.chat-v984 :is(.v984-picker input,#v984PickerSearch){
 background-color:var(--vo-light-card,#363c3f)!important;border-color:var(--vo-light-border,#ffffff2c)!important;color:var(--vo-light-primary,#f4f5f5)!important;
}
html body.xm-mkt-ui #chatRail.chat-v984 :is(.v984-picker button,.v984-person-row,#v984NewChat,#newChannelBtn):hover{
 background:var(--vo-light-hover,#42494c)!important;background-image:none!important;color:var(--vo-light-primary,#fff)!important;
}
html body.xm-mkt-ui #chatRail.chat-v984 .v984-person-row:is(.active,.is-selected,[aria-current="true"]),
html body.xm-mkt-ui #chatRail.chat-v984 .v984-channel-row:is(.active,.is-selected,[aria-current="true"]){
 background:var(--vo-light-selection,#41484b)!important;background-image:none!important;
 border-color:var(--vo-light-outline,#747e82)!important;box-shadow:inset 3px 0 #989fa2!important;
}
html body.xm-mkt-ui #messengerChatDock .messenger-chat-head,
html body.xm-mkt-ui #messengerChatDock .messenger-chat-compose,
html body.xm-mkt-ui #messengerChatDock .pc-fun-compose{
 background:var(--vo-light-surface,#303639)!important;background-image:none!important;
 border-color:var(--vo-light-border,#ffffff25)!important;
}
html body.xm-mkt-ui #messengerChatDock .messenger-chat-compose button,
html body.xm-mkt-ui #chatRail.chat-v984 .chat-send-btn{
 background:var(--vo-light-card,#535a5e)!important;background-image:none!important;
 border-color:var(--vo-light-border,#92999d)!important;color:var(--vo-light-primary,#fff)!important;
}
html body.xm-mkt-ui #messengerChatDock .messenger-chat-compose button:hover,
html body.xm-mkt-ui #chatRail.chat-v984 .chat-send-btn:hover{
 background:var(--vo-light-hover,#676e72)!important;background-image:none!important;
}

/* New Channel modal had an old bright-blue hardcoded theme. */
html body.xm-mkt-ui .channel-create-box{
 background:var(--vo-light-surface,#25292b)!important;background-image:none!important;
 color:var(--vo-light-primary,#f2f4f3)!important;border-color:var(--vo-light-border,#ffffff2b)!important;
}
html body.xm-mkt-ui .channel-create-box :is(.channel-create-input,input){
 background-color:var(--vo-light-card,#353a3d)!important;border-color:var(--vo-light-border,#737a7e)!important;color:var(--vo-light-primary,#f4f5f5)!important;
}
html body.xm-mkt-ui .channel-create-box :is(.channel-create-head button,.channel-create-actions button){
 background:var(--vo-light-card,#363c3f)!important;background-image:none!important;
 color:var(--vo-light-primary,#f4f5f5)!important;border-color:var(--vo-light-border,#70797d)!important;
}
html body.xm-mkt-ui .channel-create-box .channel-create-actions button.primary{
 background:var(--vo-light-card,#52595d)!important;border-color:var(--vo-light-border,#9da4a6)!important;
 color:var(--vo-light-primary,#fff)!important;
}
html body.xm-mkt-ui .channel-create-box :is(.channel-create-head button,.channel-create-actions button):hover{
 background:var(--vo-light-hover,#4b5256)!important;
}
html body.xm-mkt-ui .channel-create-box .channel-create-input>span{color:var(--vo-light-primary,#e2e5e5)!important;}

/* 4. AVISOS: tabs/action buttons previously lime or teal. */
html body.xm-mkt-ui #notificationPanel.notification-panel{
 background:var(--vo-light-surface,#24282b)!important;border-color:var(--vo-light-border,#ffffff2a)!important;color:var(--vo-light-primary,#f3f5f5)!important;
}
html body.xm-mkt-ui #notificationPanel .notification-tabs button:is(.active,[aria-selected="true"]),
html body.xm-mkt-ui #notificationPanel .notification-actions button.primary{
 background:var(--vo-light-selection,#535a5e)!important;background-image:none!important;
 color:var(--vo-light-primary,#fff)!important;border-color:var(--vo-light-outline,#8b9296)!important;box-shadow:none!important;
}
html body.xm-mkt-ui #notificationPanel .notification-item.unread{
 background:var(--vo-light-surface,#ffffff0b)!important;border-left-color:#8e989b!important;
}
html body.xm-mkt-ui #notificationPanel .notification-head button:hover,
html body.xm-mkt-ui #notificationPanel .notification-actions button:hover{
 color:var(--vo-light-primary,#f4f6f6)!important;background:var(--vo-light-hover,#43494d)!important;
}

/* 5. SETTINGS + BOOKING: grey active state, preserve inputs and text. */
html body.xm-mkt-ui .xm-mkt-modal .xm-mkt-settings-nav button[aria-current="page"],
html body.xm-mkt-ui .xm-mkt-modal :is(.camera-background-actions button,[data-theme-pref]):is(.active,[aria-pressed="true"]),
html body.xm-mkt-ui .xm-mkt-modal #cameraBgPresets>*.active{
 background:var(--vo-light-selection,#545c60)!important;background-image:none!important;
 color:var(--vo-light-primary,#fff)!important;border-color:var(--vo-light-outline,#91999c)!important;
}
html body.xm-mkt-ui #calendarModal :is(.odoo-v55-tabs,.participant-mode-switch) button.active,
html body.xm-mkt-ui #calendarModal #reservationCreate{
 background:var(--vo-light-selection,#545c60)!important;background-image:none!important;
 color:var(--vo-light-primary,#fff)!important;border-color:var(--vo-light-outline,#91999c)!important;
}
html body.xm-mkt-ui .xm-mkt-modal :is(button,select,input):focus-visible,
html body.xm-mkt-ui #calendarModal :is(button,select,input):focus-visible{
 outline:2px solid var(--vo-light-outline,#a3abad)!important;outline-offset:1px!important;
}

/* 6. WHATSAPP interface: controls and selected elements, not receipts/status. */
html body.xm-mkt-ui #chatRail.wa-lab-open :is(.wa-lab-actions button,.wa-lab-queue button,.wa-lab-filter-toggle,.wa-lab-search-clear,.wa-lab-new-chat-fab){
 background-color:var(--vo-light-card,#383e42)!important;background-image:none!important;
 border-color:var(--vo-light-border,#747b7e)!important;color:var(--vo-light-primary,#f4f5f5)!important;
}
html body.xm-mkt-ui #chatRail.wa-lab-open :is(.wa-lab-actions button,.wa-lab-queue button,.wa-lab-filter-toggle):hover{
 background:var(--vo-light-hover,#51595d)!important;color:var(--vo-light-primary,#fff)!important;
}
html body.xm-mkt-ui #chatRail.wa-lab-open .wa-lab-list>button[aria-current="true"]{
 background:var(--vo-light-selection,#41484c)!important;background-image:none!important;
 border-color:var(--vo-light-outline,#8a9396)!important;
}
html body.xm-mkt-ui #chatRail.wa-lab-open :is(.wa-lab-emoji-picker,.wa-lab-sticker-picker,.wa-lab-controls){
 background-color:var(--vo-light-surface,#2e3437)!important;border-color:var(--vo-light-border,#ffffff25)!important;
}

/* 7. FULLSCREEN CONTROLS: leave screen/share/camera visibility logic alone. */
html body.v67-fullscreen #stage.full :is(#fullscreenMediaControls button,#v67MiniBar .v67-mini-button,#v67MiniBar #fsViewMenuBtn,#v67MiniBar #maximize,#v67MiniBar #notificationBtn){
 background:#343a3e!important;background-image:none!important;
 border-color:#747c80!important;color:#f5f6f6!important;
}
html body.v67-fullscreen #stage.full #v67MiniBar button:not(:disabled):hover,
html body.v67-fullscreen #stage.full #fsViewMenu button:hover{
 background:var(--vo-light-media-hover,#4c5458)!important;border-color:#989fa3!important;
}
html body.v67-fullscreen #stage.full #fsViewMenu{
 background:#242a2d!important;border-color:#747c80!important;
}
html body.v67-fullscreen #stage.full #fsViewMenu button:is(.active,[aria-selected="true"]){
 background:#535b5f!important;border-color:#8e989c!important;color:#fff!important;
}

/* 8. ADMINISTRATION: old V66 styles hardcode blue even when marketing UI
   is disabled in admin. Apply only to neutral surfaces, never status chips. */
html:not([data-theme="light"]) #adminPanel.admin-v66{
 background:#202426!important;color:#f3f5f4!important;border-color:#ffffff24!important;
}
html:not([data-theme="light"]) #adminPanel.admin-v66>.admin-top,
html:not([data-theme="light"]) #adminPanel .admin-v66-nav{
 background:#252a2d!important;background-image:none!important;
 border-color:#ffffff25!important;
}
html:not([data-theme="light"]) #adminPanel .admin-v66-nav-heading,
html:not([data-theme="light"]) #adminPanel .admin-v66-pane-head p,
html:not([data-theme="light"]) #adminPanel .admin-v66-quick small{
 color:#b6c0c0!important;
}
html:not([data-theme="light"]) #adminPanel .admin-v66-nav button,
html:not([data-theme="light"]) #adminPanel .admin-v66-subnav button{
 background:#30363a!important;background-image:none!important;
 color:#e4e8e8!important;border-color:#ffffff1d!important;box-shadow:none!important;
}
html:not([data-theme="light"]) #adminPanel .admin-v66-nav button:hover,
html:not([data-theme="light"]) #adminPanel .admin-v66-subnav button:hover{
 background:#41484c!important;
}
html:not([data-theme="light"]) #adminPanel .admin-v66-nav button[aria-selected="true"],
html:not([data-theme="light"]) #adminPanel .admin-v66-subnav button[aria-selected="true"]{
 background:#50585c!important;border-color:#979ea1!important;
 box-shadow:inset 3px 0 #b3b9bb!important;color:#fff!important;
}
html:not([data-theme="light"]) #adminPanel :is(.v66-metric,.v66-note,.v66-two-col>div,.admin-v66-badge){
 background:#2d3235!important;background-image:none!important;
 border-color:#ffffff24!important;color:#e4e8e8!important;
}
html:not([data-theme="light"]) #adminPanel :is(button.v66-quick,.v66-section-actions button){
 background:#353b3f!important;background-image:none!important;
 color:#f3f5f5!important;border-color:#ffffff2a!important;
}
html:not([data-theme="light"]) #adminPanel :is(button.v66-quick,.v66-section-actions button):hover{
 background:#495156!important;border-color:#9da4a6!important;
}

/* Administration: WhatsApp number/QR management, including its portal overlay. */
html:not([data-theme="light"]) #adminPanel #waTenantV16,
html:not([data-theme="light"]) .wa16-overlay .wa16-dialog{
 --wa16-bg:#23282b;--wa16-panel:#32383c;--wa16-line:#747c80;
 --wa16-fg:#f4f6f6;--wa16-muted:#bac1c2;
 background:#272c2f!important;background-image:none!important;
 border-color:#747c80!important;color:#f4f6f6!important;
}
html:not([data-theme="light"]) :is(#waTenantV16,.wa16-overlay) :is(.wa16-metric,.wa16-card,.wa16-people,.wa16-assign,.wa16-info,.wa16-method,.wa16-dialog){
 background:#343a3e!important;background-image:none!important;
 border-color:#747c80!important;color:#f4f6f6!important;
}
html:not([data-theme="light"]) :is(#waTenantV16,.wa16-overlay) :is(.wa16-input,input,select,textarea){
 background:#31373b!important;color:#f4f6f6!important;border-color:#777f83!important;
}
html:not([data-theme="light"]) :is(#waTenantV16,.wa16-overlay) :is(.wa16-primary,.wa16-secondary,.wa16-close,.wa16-tabs button){
 background:#393f43!important;background-image:none!important;
 border-color:#747c80!important;color:#f4f6f6!important;
}
html:not([data-theme="light"]) :is(#waTenantV16,.wa16-overlay) :is(.wa16-primary,.wa16-secondary,.wa16-close,.wa16-tabs button):hover{
 background:#4a5256!important;
}
html:not([data-theme="light"]) :is(#waTenantV16,.wa16-overlay) :is(.wa16-tabs button.wa16-selected,.wa16-method.selected){
 background:#525b5f!important;border-color:#a0a7aa!important;color:#fff!important;
}
/* Preserve delivery-state and error styling, including wa16-bad feedback. */

/* 9. MAP EDITOR/CONSTRUCTION: neutral shell, buttons and selection.
   Do not style canvas/world tiles/room highlight overlays. */
html body.xm-mkt-ui :is(.construction-bar,.construction-inspector,.construction-catalog,.construction-map-panel){
 background:var(--vo-light-surface,#262b2e)!important;background-image:none!important;
 color:var(--vo-light-primary,#f0f3f3)!important;border-color:var(--vo-light-border,#ffffff2a)!important;
}
html body.xm-mkt-ui :is(.construction-bar,.construction-inspector,.construction-catalog,.construction-map-panel)
 :is(button,.construction-toggle,.construction-select,.construction-menu-actions){
 background-color:var(--vo-light-card,#353c3f)!important;background-image:none!important;
 color:var(--vo-light-primary,#eaf0ef)!important;border-color:var(--vo-light-border,#747e80)!important;
}
html body.xm-mkt-ui :is(.construction-bar,.construction-inspector,.construction-catalog,.construction-map-panel)
 :is(button,.construction-toggle):hover{
 background-color:var(--vo-light-hover,#4b5357)!important;
}
html body.xm-mkt-ui :is(.construction-bar,.construction-inspector,.construction-catalog,.construction-map-panel)
 :is(button,.construction-toggle):is(.active,[aria-pressed="true"],[aria-selected="true"]){
 background-color:var(--vo-light-selection,#565f63)!important;color:var(--vo-light-primary,#fff)!important;border-color:var(--vo-light-outline,#a2a9ac)!important;
}
/* 10. REMAINING LEGACY MENUS: space, map navigation and profile sheets. */
html body.xm-mkt-ui #contextRail.context-rail{
 background:var(--vo-light-surface,#262b2e)!important;background-image:none!important;
 border-color:var(--vo-light-border,#ffffff2a)!important;color:var(--vo-light-primary,#f1f4f3)!important;
}
html body.xm-mkt-ui #contextRail :is(.near,.near-card,.room-banner,.private-room-controls){
 background:var(--vo-light-surface,#303639)!important;background-image:none!important;
 border-color:var(--vo-light-border,#ffffff25)!important;color:var(--vo-light-primary,#eef1f0)!important;
}
html body.xm-mkt-ui #contextRail :is(.rail-head-actions button,.private-room-controls button){
 background:var(--vo-light-card,#3b4245)!important;background-image:none!important;
 border-color:var(--vo-light-border,#7a8286)!important;color:var(--vo-light-primary,#fff)!important;
}
html body.xm-mkt-ui #contextRail :is(.rail-head-actions button,.private-room-controls button):hover{
 background:var(--vo-light-hover,#50585c)!important;
}
html body.xm-mkt-ui #app .map-navigation button{
 background:var(--vo-light-card,#363c40)!important;background-image:none!important;
 border-color:var(--vo-light-border,#787f83)!important;color:var(--vo-light-primary,#f2f5f4)!important;
 box-shadow:0 8px 22px #0006!important;
}
html body.xm-mkt-ui #app .map-navigation button:hover{
 background:var(--vo-light-hover,#4b5357)!important;border-color:var(--vo-light-border,#a2aaae)!important;
}
html body.xm-mkt-ui .presence-menu-list{
 background:var(--vo-light-surface,#2a3033)!important;background-image:none!important;
 border-color:var(--vo-light-border,#747c80)!important;color:var(--vo-light-primary,#f4f5f5)!important;
}
html body.xm-mkt-ui .presence-menu-list :is(.presence-menu-item,.presence-sound-toggle){
 background:var(--vo-light-surface,#343a3e)!important;background-image:none!important;
 color:var(--vo-light-primary,#f4f5f5)!important;border-color:var(--vo-light-border,#ffffff25)!important;
}
html body.xm-mkt-ui .presence-menu-list :is(.presence-menu-item,.presence-sound-toggle):hover{
 background:var(--vo-light-hover,#495155)!important;
}
/* Preserve availability hues inside menu status dots and warning tooltips. */
html body.xm-mkt-ui :is(.quick-profile-card,.profile-box,.meeting-room-box,.avatar-picker-box){
 background:var(--vo-light-surface,#262b2e)!important;background-image:none!important;
 border-color:var(--vo-light-border,#ffffff2a)!important;color:var(--vo-light-primary,#f2f4f4)!important;
}
html body.xm-mkt-ui :is(.quick-profile-card,.profile-box,.meeting-room-box,.avatar-picker-box)
 :is(.quick-self-section,.profile-field,.meeting-room-occupants,.meeting-admin,.meeting-invite-panel){
 background:var(--vo-light-card,#31373a)!important;background-image:none!important;
 border-color:var(--vo-light-border,#ffffff23)!important;color:var(--vo-light-primary,#f1f3f2)!important;
}
html body.xm-mkt-ui :is(.quick-profile-card,.profile-box,.meeting-room-box,.avatar-picker-box)
 :is(.quick-self-theme button,.profile-actions button,.meeting-room-actions button,.avatar-choice,.avatar-picker-head button){
 background:var(--vo-light-card,#3a4145)!important;background-image:none!important;
 border-color:var(--vo-light-border,#768084)!important;color:var(--vo-light-primary,#f3f5f4)!important;
}
html body.xm-mkt-ui :is(.quick-profile-card,.profile-box,.meeting-room-box,.avatar-picker-box)
 :is(.quick-self-theme button,.profile-actions button,.meeting-room-actions button,.avatar-choice,.avatar-picker-head button):hover{
 background:var(--vo-light-hover,#50585c)!important;
}
html body.xm-mkt-ui :is(.quick-profile-card,.avatar-picker-box)
 :is(.quick-self-theme button,.avatar-choice):is(.active,.selected,[aria-pressed="true"]){
 background:var(--vo-light-selection,#565e62)!important;border-color:var(--vo-light-outline,#afb6b9)!important;color:var(--vo-light-primary,#fff)!important;
}
/* Profile status selection retains green/yellow/red semantic colors. */
html body.xm-mkt-ui .desk-owner-tooltip{
 background:#292f32!important;background-image:none!important;
 border-color:#ffffff2c!important;color:#eff2f1!important;
}

/* 11. Secondary modal surfaces and toolbar controls still carrying navy. */
html body.xm-mkt-ui :is(.meeting-room-box,.profile-box,.avatar-picker-box)
 :is(input,select,textarea){
 background:var(--vo-light-card,#363c3f)!important;color:var(--vo-light-primary,#f4f6f6)!important;border-color:var(--vo-light-border,#757d81)!important;
}
html body.xm-mkt-ui :is(.meeting-room-box,.profile-box,.avatar-picker-box)
 :is(button,input,select,textarea):focus-visible{
 outline:2px solid var(--vo-light-outline,#a1aaae)!important;outline-offset:1px!important;
}
html body.xm-mkt-ui #app :is(.fullscreen-view-picker button,.fs-view-menu button):not(.danger){
 background:var(--vo-light-card,#383f43)!important;background-image:none!important;
 color:var(--vo-light-primary,#f3f5f4)!important;border-color:#7d8588!important;
}
html body.xm-mkt-ui #app :is(.fullscreen-view-picker button,.fs-view-menu button):hover{
 background:var(--vo-light-hover,#50595d)!important;
}
html body.xm-mkt-ui #app .fs-view-menu{
 background:var(--vo-light-surface,#2b3033)!important;border-color:var(--vo-light-border,#ffffff30)!important;
}
/* Keep badge/status colors, camera live states, and physical map unchanged. */

/* End. State dots (online/available/DND), errors, unread badges, and media
   streaming frames intentionally retain their functional colors. */

