/* V105 | XMARTS · Estados consistentes y avatar con nombre+estado.
   Interfaz solamente: no modifica presencia, movimiento, perfiles ni LiveKit. */
html body.xm-mkt-ui{
  --vo-state-surface:#1d2021;
  --vo-state-raised:#2b3030;
  --vo-state-hover:#343a39;
  --vo-state-selected:#303d32;
  --vo-state-edge:#474f4b;
  --vo-state-text:#f1f4ef;
  --vo-state-muted:#a2aaa4;
}
/* Círculos verdaderamente sólidos, sin emoji, brillo, halo o gradiente. */
html body .vo-state-dot{
  display:inline-block!important;flex:0 0 11px!important;
  box-sizing:border-box!important;vertical-align:middle!important;
  width:11px!important;height:11px!important;
  border:0!important;border-radius:50%!important;
  background-image:none!important;box-shadow:none!important;
  text-shadow:none!important;filter:none!important;
  background-color:var(--st-off,#6b726d)!important;
}
html body .vo-state-dot.disponible{background-color:var(--st-free,#4cc76a)!important}
html body .vo-state-dot.ocupado{background-color:var(--st-busy,#f2c94c)!important}
html body .vo-state-dot.comunicacion{background-color:var(--st-call,#4f9ff2)!important}
html body .vo-state-dot.reunion{background-color:var(--st-meet,#f29a3c)!important}
html body .vo-state-dot.nodisturb{background-color:var(--st-dnd,#e5534b)!important}
html body .vo-state-dot.offline{
  background-color:transparent!important;border:2px solid var(--st-off,#6b726d)!important;
}
/* Presencia en cabecera: los estados reales, con superficies planas. */
html body.xm-mkt-ui .header-profile-card #presenceMenuButton.presence-menu-btn{
  display:flex!important;gap:5px!important;align-items:center!important;
  color:var(--vo-state-text)!important;box-shadow:none!important;
  text-shadow:none!important;background:transparent!important;
}
html body.xm-mkt-ui .header-profile-card #presenceMenuButton .vo-presence-text{
  font:inherit!important;white-space:nowrap!important;
}
html body.xm-mkt-ui .header-profile-card #presenceMenuButton .vo-presence-chevron{
  color:var(--vo-state-muted)!important;font-size:0.625rem!important;
}
html body.xm-mkt-ui #presenceMenuList.presence-menu-list{
  background:var(--vo-state-surface)!important;
  background-image:none!important;border:1px solid var(--vo-state-edge)!important;
  color:var(--vo-state-text)!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html body.xm-mkt-ui #presenceMenuList .presence-menu-item{
  display:flex!important;align-items:center!important;gap:9px!important;
  min-height:33px!important;color:var(--vo-state-text)!important;
  background:transparent!important;background-image:none!important;
  border-radius:8px!important;border:1px solid transparent!important;
  box-shadow:none!important;text-shadow:none!important;filter:none!important;
}
html body.xm-mkt-ui #presenceMenuList .presence-menu-item:hover,
html body.xm-mkt-ui #presenceMenuList .presence-menu-item:focus-visible{
  background:var(--vo-state-hover)!important;border-color:transparent!important;
}
html body.xm-mkt-ui #presenceMenuList .presence-menu-item.active{
  background:var(--vo-state-selected)!important;border-color:var(--accent,#93c362)!important;
}
html body.xm-mkt-ui #presenceMenuList .presence-menu-item.disabled{
  opacity:.88!important;color:var(--vo-state-muted)!important;cursor:help!important;
}
html body.xm-mkt-ui #presenceMenuList .presence-sound-setting{
  background:var(--vo-state-surface)!important;
  background-image:none!important;border-color:var(--vo-state-edge)!important;
  box-shadow:none!important;
}
html body.xm-mkt-ui #presenceMenuList .presence-sound-toggle{
  background:var(--vo-state-raised)!important;background-image:none!important;
  border-color:var(--vo-state-edge)!important;box-shadow:none!important;
}
html body.xm-mkt-ui #presenceMenuList .presence-sound-toggle:hover{
  background:var(--vo-state-hover)!important;
}
html body.xm-mkt-ui #presenceMenuList .presence-meeting-tooltip{
  background:var(--vo-state-raised)!important;background-image:none!important;
  border:1px solid var(--vo-state-edge)!important;
  color:var(--vo-state-text)!important;box-shadow:none!important;
}
/* Tarjeta de perfil rápida y perfil extendido:
   mismos controles sólidos y el indicador semántico en cada botón. */
html body.xm-mkt-ui #quickProfileCard.quick-profile-card,
html body.xm-mkt-ui #profileModal .employee-profile-box{
  background:var(--vo-state-surface)!important;background-image:none!important;
  color:var(--vo-state-text)!important;border-color:var(--vo-state-edge)!important;
}
html body.xm-mkt-ui #quickProfileCard .quick-profile-status{
  display:flex!important;align-items:center!important;gap:7px!important;
  color:var(--vo-state-text)!important;
}
html body.xm-mkt-ui :is(#quickProfileCard,#profileModal) :is(.quick-self-section,.self-status-actions){
  background:var(--vo-state-raised)!important;background-image:none!important;
  border:1px solid var(--vo-state-edge)!important;box-shadow:none!important;
}
html body.xm-mkt-ui #quickProfileCard .quick-self-statuses button,
html body.xm-mkt-ui #profileModal .self-status-buttons button{
  display:inline-flex!important;align-items:center!important;
  justify-content:center!important;gap:5px!important;
  min-height:34px!important;
  color:var(--vo-state-text)!important;
  background:var(--vo-state-raised)!important;background-image:none!important;
  border:1px solid var(--vo-state-edge)!important;
  box-shadow:none!important;text-shadow:none!important;filter:none!important;
}
html body.xm-mkt-ui #quickProfileCard .quick-self-statuses button:hover,
html body.xm-mkt-ui #profileModal .self-status-buttons button:hover{
  background:var(--vo-state-hover)!important;
}
html body.xm-mkt-ui #quickProfileCard .quick-self-statuses button.active,
html body.xm-mkt-ui #profileModal .self-status-buttons button.active{
  background:var(--vo-state-selected)!important;
  color:var(--vo-state-text)!important;border-color:var(--accent,#93c362)!important;
  box-shadow:none!important;
}
html body.xm-mkt-ui #quickProfileCard .quick-self-theme button,
html body.xm-mkt-ui #quickProfileCard .quick-full-link,
html body.xm-mkt-ui #profileModal .theme-choice button{
  background:var(--vo-state-raised)!important;
  background-image:none!important;box-shadow:none!important;
  border-color:var(--vo-state-edge)!important;
}
html body.xm-mkt-ui #quickProfileCard .quick-self-theme button.active,
html body.xm-mkt-ui #profileModal .theme-choice button.active{
  background:var(--vo-state-selected)!important;
  border-color:var(--accent,#93c362)!important;color:var(--vo-state-text)!important;
}
html body.xm-mkt-ui #quickProfileCard :is(.quick-self-note,.quick-self-title,.quick-self-title-row),
html body.xm-mkt-ui #profileModal :is(.self-status-note,.self-status-title){
  text-shadow:none!important;box-shadow:none!important;
}
html body.xm-mkt-ui :is(#quickProfileCard,#profileModal) :is(.quick-self-note,.self-status-note) .vo-state-dot{
  width:8px!important;height:8px!important;flex-basis:8px!important;
}
/* Nombre del avatar tipo píldora de la referencia: estado real + nombre.
   No afecta hitboxes, posición del avatar ni interpolación de movimiento. */
html body #office .avatar .tag.vo-avatar-tag{
  --vo-name-state:var(--st-off,#6b726d);
  box-sizing:border-box!important;
  position:absolute!important;
  left:50%!important;right:auto!important;
  top:-18px!important;bottom:auto!important;
  transform:translateX(-50%) scale(var(--vo-avatar-name-counter-zoom,1))!important;
  transform-origin:50% 50%!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:6px!important;flex-wrap:nowrap!important;
  width:max-content!important;min-width:max-content!important;
  max-width:190px!important;
  padding:3px 8px!important;
  border-radius:999px!important;
  border:2px solid var(--vo-name-state)!important;
  background:#1c2420!important;background-image:none!important;
  color:#f1f4ef!important;font-family:var(--font,Manrope),system-ui,sans-serif!important;
  font-size:0.625rem!important;font-weight:800!important;line-height:1.15!important;
  letter-spacing:0!important;white-space:nowrap!important;
  box-shadow:none!important;text-shadow:none!important;
  filter:none!important;pointer-events:none!important;
  z-index:16!important;
}
html body #office .avatar .tag.vo-avatar-tag .vo-tag-dot{
  flex:0 0 9px!important;display:block!important;
  width:9px!important;height:9px!important;
  border:0!important;border-radius:50%!important;
  background:var(--vo-name-state)!important;
  box-shadow:none!important;
}
html body #office .avatar .tag.vo-avatar-tag .vo-tag-name{
  display:inline-block!important;min-width:0!important;
  max-width:160px!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
}
/* Invitados: empresa arriba y nombre + distintivo debajo, en una píldora compacta. */
html body #office .avatar .tag.vo-avatar-tag.vo-avatar-tag-guest{
  top:-36px!important;
  display:grid!important;
  grid-template-columns:9px minmax(0,auto) auto!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;justify-content:center!important;
  column-gap:5px!important;row-gap:2px!important;
  border-radius:11px!important;
  min-width:0!important;
  max-width:min(198px,calc(100vw - 16px))!important;
  padding:3px 7px!important;
}
html body #office .avatar .tag.vo-avatar-tag.vo-avatar-tag-guest .vo-tag-company{
  grid-column:1/-1!important;grid-row:1!important;
  justify-self:center!important;min-width:0!important;
  display:block!important;max-width:174px!important;
  color:#becdc1!important;
  font-size:0.5625rem!important;font-weight:700!important;line-height:1.1!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
html body #office .avatar .tag.vo-avatar-tag.vo-avatar-tag-guest .vo-tag-dot{
  grid-column:1!important;grid-row:2!important;
}
html body #office .avatar .tag.vo-avatar-tag.vo-avatar-tag-guest .vo-tag-name{
  grid-column:2!important;grid-row:2!important;
  max-width:100px!important;
}
html body #office .avatar .tag.vo-avatar-tag.vo-avatar-tag-guest .vo-tag-guest-label{
  grid-column:3!important;grid-row:2!important;
}
html body #office .avatar .tag.vo-avatar-tag.vo-avatar-tag-guest:not(:has(.vo-tag-company)){
  display:inline-flex!important;top:-18px!important;
}
html body #office .avatar .tag.vo-avatar-tag .vo-tag-guest-label{
  display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;
  padding:2px 5px!important;border-radius:4px!important;
  background:#334138!important;color:#e7f0e9!important;
  font-size:0.5625rem!important;font-weight:800!important;line-height:1!important;
}
html body #office .avatar .tag.vo-state-disponible{--vo-name-state:var(--st-free,#4cc76a)}
html body #office .avatar .tag.vo-state-ocupado{--vo-name-state:var(--st-busy,#f2c94c)}
html body #office .avatar .tag.vo-state-comunicacion{--vo-name-state:var(--st-call,#4f9ff2)}
html body #office .avatar .tag.vo-state-reunion{--vo-name-state:var(--st-meet,#f29a3c)}
html body #office .avatar .tag.vo-state-reunionexterna{--vo-name-state:#a78bfa}
html body #office .avatar .tag.vo-state-nodisturb{--vo-name-state:var(--st-dnd,#e5534b)}
html body #office .avatar .tag.vo-state-offline{--vo-name-state:var(--st-off,#6b726d)}
html body #office .avatar:has(>.vo-avatar-tag)>.status-dot{
  display:none!important;
}
html body #office .avatar .tag.vo-state-offline .vo-tag-dot{
  background:transparent!important;border:2px solid var(--vo-name-state)!important;
}
/* Claro: superficies sólidas adecuadas al tema, sin introducir azul legado. */
html[data-theme="light"] body.xm-mkt-ui{
  --vo-state-surface:#fbfcfa;
  --vo-state-raised:#edf1eb;
  --vo-state-hover:#e5ebe3;
  --vo-state-selected:#e0ecd8;
  --vo-state-edge:#cbd3cb;
  --vo-state-text:#17201a;
  --vo-state-muted:#56605a;
}
