/* Vchat Core 0.24 — stability and interface consistency layer.
   Loaded after frontend.css to neutralize legacy theme rules and older release overrides. */

.vchat-frontend-app{
  --vc-control-height:42px;
  --vc-radius-control:12px;
  --vc-radius-card:18px;
  --vc-border-strong:rgba(85,71,154,.22);
  --vc-focus:0 0 0 3px rgba(101,84,184,.15);
  isolation:isolate;
}

.vchat-frontend-app,
.vchat-frontend-app *{
  min-width:0;
}

.vchat-frontend-app button,
.vchat-frontend-app input,
.vchat-frontend-app textarea,
.vchat-frontend-app select{
  max-width:100%;
  line-height:1.25!important;
}

.vchat-frontend-app button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  vertical-align:middle;
  text-decoration:none!important;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

.vchat-frontend-app button:focus-visible,
.vchat-frontend-app input:focus-visible,
.vchat-frontend-app textarea:focus-visible,
.vchat-frontend-app select:focus-visible,
.vchat-frontend-app [tabindex]:focus-visible{
  outline:0!important;
  box-shadow:var(--vc-focus)!important;
}

.vchat-frontend-app button:disabled,
.vchat-frontend-app input:disabled,
.vchat-frontend-app textarea:disabled,
.vchat-frontend-app select:disabled{
  opacity:.5!important;
  cursor:not-allowed!important;
  pointer-events:none!important;
}

/* Shared action buttons */
.vchat-frontend-app .vchat-primary-action,
.vchat-frontend-app .vchat-primary-button,
.vchat-frontend-app .vchat-secondary-action,
.vchat-frontend-app .vchat-secondary-button,
.vchat-frontend-app .vchat-inline-stage-button,
.vchat-frontend-app .vchat-inbox-export-button,
.vchat-frontend-app .vchat-modal-actions button,
.vchat-frontend-app .vchat-inline-actions button,
.vchat-frontend-app .vchat-catalog-form-actions button,
.vchat-frontend-app .vchat-profile-actions button{
  min-height:var(--vc-control-height)!important;
  height:auto!important;
  padding:10px 15px!important;
  border:1px solid var(--vc-border-strong)!important;
  border-radius:var(--vc-radius-control)!important;
  background:#fff!important;
  color:var(--vc-purple)!important;
  font-size:11px!important;
  font-weight:850!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

.vchat-frontend-app .vchat-primary-action,
.vchat-frontend-app .vchat-primary-button,
.vchat-frontend-app .vchat-modal-actions .primary,
.vchat-frontend-app .vchat-modal-actions button.primary,
.vchat-frontend-app .vchat-catalog-form-actions .primary{
  border-color:var(--vc-purple)!important;
  background:var(--vc-purple)!important;
  color:#fff!important;
}

.vchat-frontend-app .vchat-modal-actions .danger,
.vchat-frontend-app .vchat-action-danger,
.vchat-frontend-app .vchat-action-trash{
  border-color:#edb4c0!important;
  background:#fff3f6!important;
  color:#a52f4b!important;
}

.vchat-frontend-app .vchat-icon-button,
.vchat-frontend-app .vchat-mobile-menu,
.vchat-frontend-app .vchat-compose,
.vchat-frontend-app .vchat-chat-actions>button,
.vchat-frontend-app .vchat-card-heading>button,
.vchat-frontend-app .vchat-contact-card-head>button,
.vchat-frontend-app .vchat-tag-admin-row>button{
  flex:0 0 auto!important;
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0!important;
  border:1px solid var(--vc-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--vc-purple)!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}

.vchat-frontend-app .vchat-chat-actions #vchat-claim{
  width:auto!important;
  min-width:64px!important;
  padding:0 12px!important;
}

/* Forms */
.vchat-frontend-app .vchat-form-grid,
.vchat-frontend-app .vchat-settings-grid,
.vchat-frontend-app .vchat-catalog-form{
  align-items:start!important;
}

.vchat-frontend-app label{
  max-width:100%;
}

.vchat-frontend-app .vchat-field-label,
.vchat-frontend-app .vchat-form-grid>label,
.vchat-frontend-app .vchat-settings-grid>label,
.vchat-frontend-app .vchat-catalog-form>label,
.vchat-frontend-app .vchat-confirm-field{
  display:grid!important;
  gap:7px!important;
  color:var(--vc-text)!important;
  font-size:11px!important;
  font-weight:800!important;
}

.vchat-frontend-app input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
.vchat-frontend-app select,
.vchat-frontend-app textarea{
  width:100%!important;
  min-height:var(--vc-control-height)!important;
  margin:0!important;
  padding:10px 13px!important;
  border:1px solid var(--vc-border-strong)!important;
  border-radius:var(--vc-radius-control)!important;
  background:#fff!important;
  color:var(--vc-text)!important;
  font-size:12px!important;
  font-weight:500!important;
  box-shadow:none!important;
}

.vchat-frontend-app textarea{
  min-height:94px!important;
  resize:vertical!important;
  line-height:1.5!important;
}

.vchat-frontend-app select{
  padding-right:38px!important;
  background-color:#fff!important;
  background-image:linear-gradient(45deg,transparent 50%,var(--vc-purple) 50%),linear-gradient(135deg,var(--vc-purple) 50%,transparent 50%)!important;
  background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%!important;
  background-size:5px 5px,5px 5px!important;
  background-repeat:no-repeat!important;
}

.vchat-frontend-app input::placeholder,
.vchat-frontend-app textarea::placeholder{
  color:#9995aa!important;
  opacity:1!important;
}

.vchat-frontend-app input[type="checkbox"],
.vchat-frontend-app input[type="radio"]{
  flex:0 0 auto!important;
  appearance:auto!important;
  -webkit-appearance:auto!important;
  accent-color:var(--vc-purple)!important;
}

/* Cards and rows */
.vchat-frontend-app .vchat-app-card,
.vchat-frontend-app .vchat-contact-card,
.vchat-frontend-app .vchat-data-row,
.vchat-frontend-app .vchat-task-card,
.vchat-frontend-app .vchat-department-card,
.vchat-frontend-app .vchat-queue-card,
.vchat-frontend-app .vchat-role-card,
.vchat-frontend-app .vchat-team-member,
.vchat-frontend-app .vchat-team-member-v2,
.vchat-frontend-app .vchat-catalog-card,
.vchat-frontend-app .vchat-pipeline-conversation-card{
  max-width:100%!important;
  overflow:hidden!important;
  border:1px solid var(--vc-border)!important;
  border-radius:var(--vc-radius-card)!important;
  background:#fff!important;
}

.vchat-frontend-app .vchat-card-heading,
.vchat-frontend-app .vchat-contact-card-head,
.vchat-frontend-app .vchat-contact-card-head,
.vchat-frontend-app .vchat-heading-row{
  min-width:0!important;
}

.vchat-frontend-app .vchat-card-heading h2,
.vchat-frontend-app .vchat-card-heading p,
.vchat-frontend-app .vchat-contact-card-head strong,
.vchat-frontend-app .vchat-data-row strong,
.vchat-frontend-app .vchat-data-row small,
.vchat-frontend-app .vchat-task-card *,
.vchat-frontend-app .vchat-catalog-card *,
.vchat-frontend-app .vchat-pipeline-conversation-card *{
  max-width:100%;
  overflow-wrap:anywhere;
}

.vchat-frontend-app .vchat-data-row{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  min-height:72px!important;
  padding:14px 16px!important;
}

.vchat-frontend-app .vchat-data-row>span:last-child{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
}

.vchat-frontend-app .vchat-data-row button{
  min-height:38px!important;
  padding:8px 12px!important;
  border:1px solid var(--vc-border)!important;
  border-radius:11px!important;
  background:#f8f7fc!important;
  color:var(--vc-purple)!important;
  font-size:10px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}

/* Inbox stability */
.vchat-frontend-app .vchat-inbox-shell,
.vchat-frontend-app .vchat-inbox-list,
.vchat-frontend-app .vchat-chat-panel,
.vchat-frontend-app .vchat-contact-panel{
  min-height:0!important;
  min-width:0!important;
}

.vchat-frontend-app .vchat-conversation-list{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overflow-anchor:none!important;
  scroll-behavior:auto!important;
}

.vchat-frontend-app .vchat-conversation-item{
  min-height:72px!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  margin:0 0 5px!important;
  padding:11px 10px!important;
  border:1px solid transparent!important;
  border-radius:15px!important;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease!important;
}

.vchat-frontend-app .vchat-conversation-item::after{
  content:none!important;
  display:none!important;
}

.vchat-frontend-app .vchat-conversation-item:hover{
  border-color:rgba(85,71,154,.10)!important;
  background:#fff!important;
}

.vchat-frontend-app .vchat-conversation-item.is-active{
  border-color:rgba(85,71,154,.28)!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(31,28,56,.08)!important;
}

.vchat-frontend-app .vchat-conversation-item.is-active::before{
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width:3px;
  border-radius:0 4px 4px 0;
  background:var(--vc-purple);
}

.vchat-frontend-app .vchat-conversation-item>b{
  position:static!important;
  min-width:22px!important;
  height:22px!important;
  padding:0 6px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  background:var(--vc-purple)!important;
  color:#fff!important;
  font-size:8px!important;
}

.vchat-frontend-app .vchat-conversation-copy>span:first-child{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
}

.vchat-frontend-app .vchat-conversation-copy strong,
.vchat-frontend-app .vchat-conversation-copy small{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.vchat-frontend-app .vchat-conversation-state-row{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  margin-top:6px!important;
}

.vchat-frontend-app .vchat-conversation-state-row>em,
.vchat-frontend-app .vchat-conversation-pipeline-chip{
  margin:0!important;
  max-width:130px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.vchat-frontend-app .vchat-inbox-folders button,
.vchat-frontend-app .vchat-quick-filters button,
.vchat-frontend-app .vchat-status-filter-grid button{
  min-height:36px!important;
  height:auto!important;
  padding:8px 9px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.vchat-frontend-app .vchat-advanced-filters{
  overscroll-behavior:contain!important;
}

.vchat-frontend-app .vchat-advanced-filters section,
.vchat-frontend-app .vchat-inbox-smart-filters{
  min-width:0!important;
}

.vchat-frontend-app .vchat-inbox-smart-filters label,
.vchat-frontend-app .vchat-inbox-smart-filters button{
  min-width:0!important;
  max-width:100%!important;
}

/* Chat header, toolbar and composer */
.vchat-frontend-app .vchat-chat-panel{
  grid-template-rows:auto auto auto auto minmax(0,1fr) auto!important;
}

.vchat-frontend-app .vchat-chat-head{
  min-height:68px!important;
  height:auto!important;
  gap:12px!important;
  padding:10px 14px!important;
}

.vchat-frontend-app .vchat-chat-person{
  flex:1 1 auto!important;
  overflow:hidden!important;
}

.vchat-frontend-app .vchat-chat-person>div{
  min-width:0!important;
}

.vchat-frontend-app .vchat-chat-person strong{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.vchat-frontend-app .vchat-chat-actions{
  flex:0 0 auto!important;
  flex-wrap:nowrap!important;
}

.vchat-frontend-app .vchat-chat-toolbar{
  min-height:46px!important;
  height:auto!important;
  overflow:hidden!important;
}

.vchat-frontend-app .vchat-chat-quick-actions{
  min-width:0!important;
  overflow-x:auto!important;
  overscroll-behavior-x:contain!important;
}

.vchat-frontend-app .vchat-chat-quick-actions button{
  flex:0 0 auto!important;
  min-height:34px!important;
  height:auto!important;
  padding:8px 10px!important;
  white-space:nowrap!important;
}

.vchat-frontend-app .vchat-sla-bar{
  min-height:54px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x proximity!important;
}

.vchat-frontend-app .vchat-sla-item{
  flex:0 0 150px!important;
  min-height:42px!important;
  scroll-snap-align:start!important;
}

.vchat-frontend-app .vchat-chat-timeline{
  overflow-anchor:none!important;
  scroll-behavior:auto!important;
}

.vchat-frontend-app .vchat-message{
  min-width:80px!important;
  max-width:min(76%,680px)!important;
}

.vchat-frontend-app .vchat-message>div:first-child{
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}

.vchat-frontend-app .vchat-message-meta{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  margin-top:4px!important;
}

.vchat-frontend-app .vchat-message-meta time{
  line-height:1.3!important;
}

.vchat-frontend-app .vchat-composer-wrap{
  min-width:0!important;
  overflow:visible!important;
}

.vchat-frontend-app .vchat-composer-tools{
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  scrollbar-width:none!important;
}

.vchat-frontend-app .vchat-composer-tools::-webkit-scrollbar{
  display:none!important;
}

.vchat-frontend-app .vchat-composer-tools button{
  flex:0 0 auto!important;
  min-height:32px!important;
  height:auto!important;
  padding:7px 10px!important;
  white-space:nowrap!important;
}

.vchat-frontend-app .vchat-composer{
  min-width:0!important;
  align-items:flex-end!important;
}

.vchat-frontend-app .vchat-composer textarea{
  min-height:42px!important;
  max-height:150px!important;
  padding:9px 8px!important;
  border:0!important;
  background:transparent!important;
  resize:none!important;
}

.vchat-frontend-app .vchat-composer>button{
  flex:0 0 auto!important;
  min-width:82px!important;
  height:42px!important;
  padding:0 16px!important;
  border:0!important;
  border-radius:12px!important;
  background:var(--vc-purple)!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:850!important;
}

/* Emoji picker */
.vchat-frontend-app .vchat-emoji-picker{
  z-index:1000010!important;
  border:1px solid var(--vc-border-strong)!important;
  background:#fff!important;
}

.vchat-frontend-app .vchat-emoji-picker header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}

.vchat-frontend-app .vchat-emoji-picker header>button{
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  padding:0!important;
  border:1px solid var(--vc-border)!important;
  border-radius:10px!important;
  background:#f8f7fc!important;
  color:var(--vc-purple)!important;
}

.vchat-frontend-app .vchat-emoji-grid{
  display:grid!important;
  min-height:180px!important;
}

.vchat-frontend-app .vchat-emoji-grid button{
  width:100%!important;
  aspect-ratio:1!important;
  min-height:38px!important;
  padding:0!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  background:transparent!important;
}

.vchat-frontend-app .vchat-emoji-grid button:hover,
.vchat-frontend-app .vchat-emoji-grid button:focus-visible{
  border-color:var(--vc-border)!important;
  background:#f3f1fb!important;
}

/* Contact drawer */
.vchat-frontend-app .vchat-contact-panel{
  overflow-x:hidden!important;
}

.vchat-frontend-app .vchat-contact-tabs{
  position:sticky!important;
  top:0!important;
  z-index:4!important;
  background:#efedf7!important;
}

.vchat-frontend-app .vchat-contact-profile>div{
  display:flex!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}

.vchat-frontend-app .vchat-contact-profile>div button{
  min-height:36px!important;
  padding:8px 12px!important;
  border:1px solid var(--vc-border)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--vc-purple)!important;
  font-size:9px!important;
  font-weight:800!important;
}

.vchat-frontend-app .vchat-contact-card{
  padding:14px!important;
}

.vchat-frontend-app .vchat-contact-card-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
}

.vchat-frontend-app .vchat-contact-card-head>button{
  width:auto!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0 9px!important;
  font-size:8px!important;
}

.vchat-frontend-app .vchat-contact-card dl div{
  grid-template-columns:minmax(70px,.7fr) minmax(0,1.3fr)!important;
  gap:10px!important;
}

.vchat-frontend-app .vchat-contact-card dd{
  overflow-wrap:anywhere!important;
  text-align:right!important;
}

/* Pipeline */
.vchat-frontend-app .vchat-kanban{
  align-items:start!important;
}

.vchat-frontend-app .vchat-kanban-column{
  min-width:260px!important;
  overflow:hidden!important;
}

.vchat-frontend-app .vchat-kanban-column>header{
  min-width:0!important;
}

.vchat-frontend-app .vchat-pipeline-conversation-card{
  border-left:4px solid var(--stage-color,var(--vc-purple))!important;
}

.vchat-frontend-app .vchat-pipeline-mobile-stage{
  width:100%!important;
  min-height:40px!important;
  padding:8px 11px!important;
  border:1px solid var(--vc-border)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--vc-text)!important;
  font-size:11px!important;
}

/* Tags admin */
.vchat-frontend-app .vchat-tag-stats{
  align-items:stretch!important;
}

.vchat-frontend-app .vchat-tag-stats article{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-height:106px!important;
  padding:16px!important;
}

.vchat-frontend-app .vchat-tag-admin-row{
  min-height:66px!important;
  grid-template-columns:10px minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px 12px!important;
}

.vchat-frontend-app .vchat-tag-admin-row>.vchat-tag-chip{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Modal and drawer stacking */
.vchat-frontend-app .vchat-modal{
  z-index:1000020!important;
}

.vchat-frontend-app .vchat-modal-dialog{
  overflow:hidden!important;
  border:1px solid var(--vc-border)!important;
}

.vchat-frontend-app .vchat-modal-body{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}

.vchat-frontend-app .vchat-modal-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:9px!important;
}

.vchat-frontend-app .vchat-mobile-overlay{
  pointer-events:none!important;
}

.vchat-frontend-app .vchat-mobile-overlay.is-open{
  pointer-events:auto!important;
}

/* Responsive breakpoints */
@media (max-width:1200px){
  .vchat-frontend-app .vchat-app-section:not(.vchat-inbox-section){
    padding:24px 20px 44px!important;
  }
  .vchat-frontend-app .vchat-kpi-grid,
  .vchat-frontend-app .vchat-catalog-stats,
  .vchat-frontend-app .vchat-analytics-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .vchat-frontend-app .vchat-catalog-grid,
  .vchat-frontend-app .vchat-department-grid,
  .vchat-frontend-app .vchat-queue-grid,
  .vchat-frontend-app .vchat-role-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media (max-width:860px){
  .vchat-frontend-app{
    --vc-control-height:46px;
  }

  .vchat-frontend-app .vchat-app-section:not(.vchat-inbox-section){
    padding:20px 16px max(26px,env(safe-area-inset-bottom))!important;
  }

  .vchat-frontend-app input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
  .vchat-frontend-app select,
  .vchat-frontend-app textarea{
    font-size:16px!important;
  }

  .vchat-frontend-app .vchat-contact-tabs{
    top:52px!important;
  }

  .vchat-frontend-app .vchat-page-heading h1{
    font-size:32px!important;
    line-height:1.05!important;
  }

  .vchat-frontend-app .vchat-heading-row,
  .vchat-frontend-app .vchat-page-heading-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
  }

  .vchat-frontend-app .vchat-heading-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .vchat-frontend-app .vchat-heading-actions button{
    width:100%!important;
  }

  .vchat-frontend-app .vchat-chat-head{
    min-height:64px!important;
    padding:8px!important;
  }

  .vchat-frontend-app .vchat-chat-actions{
    gap:4px!important;
  }

  .vchat-frontend-app .vchat-chat-actions>button,
  .vchat-frontend-app .vchat-mobile-contact-button,
  .vchat-frontend-app .vchat-open-conversations{
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
  }

  .vchat-frontend-app .vchat-chat-toolbar{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:7px!important;
    padding:6px 8px!important;
  }

  .vchat-frontend-app .vchat-chat-quick-actions{
    justify-content:flex-start!important;
  }

  .vchat-frontend-app .vchat-message{
    max-width:88%!important;
  }

  .vchat-frontend-app .vchat-emoji-picker{
    width:100%!important;
    max-height:min(72dvh,620px)!important;
  }

  .vchat-frontend-app .vchat-emoji-grid{
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
  }

  .vchat-frontend-app .vchat-modal-dialog{
    width:calc(100% - 20px)!important;
    max-height:calc(var(--vchat-visual-height,100dvh) - 20px)!important;
  }

  .vchat-frontend-app .vchat-catalog-grid,
  .vchat-frontend-app .vchat-department-grid,
  .vchat-frontend-app .vchat-queue-grid,
  .vchat-frontend-app .vchat-role-grid{
    grid-template-columns:1fr!important;
  }
}

@media (max-width:560px){
  .vchat-frontend-app .vchat-app-header{
    padding:0 12px!important;
  }

  .vchat-frontend-app .vchat-header-user>div{
    display:none!important;
  }

  .vchat-frontend-app .vchat-inbox-list-head{
    padding:14px 12px 9px!important;
  }

  .vchat-frontend-app .vchat-inbox-folders{
    margin:0 8px 8px!important;
  }

  .vchat-frontend-app .vchat-inbox-folders button{
    padding:7px 5px!important;
  }

  .vchat-frontend-app .vchat-inbox-folders button span{
    display:none!important;
  }

  .vchat-frontend-app .vchat-inbox-folders button b{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:8px!important;
  }

  .vchat-frontend-app .vchat-inbox-search{
    margin-left:8px!important;
    margin-right:8px!important;
  }

  .vchat-frontend-app .vchat-inbox-quickbar{
    padding-left:8px!important;
    padding-right:8px!important;
  }

  .vchat-frontend-app .vchat-quick-filters button{
    padding:7px 5px!important;
    font-size:8px!important;
  }

  .vchat-frontend-app .vchat-chat-person .vchat-avatar{
    width:36px!important;
    height:36px!important;
  }

  .vchat-frontend-app .vchat-chat-person-meta>#vchat-active-presence{
    display:none!important;
  }

  .vchat-frontend-app .vchat-channel-pill b{
    display:none!important;
  }

  .vchat-frontend-app .vchat-chat-actions #vchat-claim,
  .vchat-frontend-app .vchat-chat-actions #vchat-assign{
    display:none!important;
  }

  .vchat-frontend-app .vchat-reply-mode button{
    padding:7px 8px!important;
    font-size:8px!important;
  }

  .vchat-frontend-app .vchat-chat-quick-actions button{
    width:36px!important;
    min-width:36px!important;
    padding:0!important;
  }

  .vchat-frontend-app .vchat-chat-quick-actions button span,
  .vchat-frontend-app .vchat-chat-quick-actions button b{
    display:none!important;
  }

  .vchat-frontend-app .vchat-composer-tools button{
    min-width:34px!important;
    min-height:34px!important;
    padding:7px 9px!important;
  }

  .vchat-frontend-app .vchat-composer{
    gap:6px!important;
  }

  .vchat-frontend-app .vchat-composer textarea{
    min-height:44px!important;
    font-size:16px!important;
  }

  .vchat-frontend-app .vchat-composer>button{
    width:46px!important;
    min-width:46px!important;
    height:46px!important;
    padding:0!important;
  }

  .vchat-frontend-app .vchat-send-label{
    display:none!important;
  }

  .vchat-frontend-app .vchat-send-icon{
    display:inline!important;
  }

  .vchat-frontend-app .vchat-emoji-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }

  .vchat-frontend-app .vchat-kpi-grid,
  .vchat-frontend-app .vchat-catalog-stats,
  .vchat-frontend-app .vchat-analytics-kpis,
  .vchat-frontend-app .vchat-tag-stats{
    grid-template-columns:1fr!important;
  }

  .vchat-frontend-app .vchat-data-row{
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
  }

  .vchat-frontend-app .vchat-data-row>span:last-child{
    width:100%!important;
    justify-content:stretch!important;
  }

  .vchat-frontend-app .vchat-data-row>span:last-child button{
    flex:1 1 auto!important;
  }

  .vchat-frontend-app .vchat-tag-admin-row{
    grid-template-columns:8px minmax(0,1fr) 38px 38px!important;
  }

  .vchat-frontend-app .vchat-modal-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
  }

  .vchat-frontend-app .vchat-modal-actions button{
    width:100%!important;
  }
}

/* ================================================================
   Vchat Core 0.24 — atomic inbox + lifecycle action center
   ================================================================ */

.vchat-frontend-app{
  --vc-action-font:12px;
  --vc-action-muted:10px;
}

/* Keep the selected chat visually stable while data synchronizes. */
.vchat-frontend-app .vchat-chat-timeline{
  position:relative!important;
  min-height:0!important;
  contain:layout style!important;
  background-color:#fbfaff!important;
}

.vchat-frontend-app .vchat-chat-loading{
  width:min(420px,calc(100% - 32px));
  min-height:132px;
  margin:auto;
  padding:22px;
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  align-items:center;
  gap:14px;
  border:1px solid rgba(85,71,154,.14);
  border-radius:20px;
  background:#fff;
  box-shadow:0 18px 44px rgba(31,28,56,.08);
}
.vchat-frontend-app .vchat-chat-loading-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:#f0edfb;
  color:var(--vc-purple);
  font-size:22px;
}
.vchat-frontend-app .vchat-chat-loading strong,
.vchat-frontend-app .vchat-chat-loading small{display:block;overflow-wrap:anywhere}
.vchat-frontend-app .vchat-chat-loading strong{font-size:14px;color:var(--vc-text)}
.vchat-frontend-app .vchat-chat-loading small{margin-top:4px;color:var(--vc-muted);font-size:11px}
.vchat-frontend-app .vchat-chat-loading>i{
  grid-column:1/-1;
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg,#efedf8 25%,#ddd8f2 50%,#efedf8 75%);
  background-size:200% 100%;
  animation:vchatLoadingShimmer 1.15s linear infinite;
}
.vchat-frontend-app .vchat-chat-loading>i:nth-last-child(2){width:82%}
.vchat-frontend-app .vchat-chat-loading>i:nth-last-child(1){width:58%}
@keyframes vchatLoadingShimmer{to{background-position:-200% 0}}

.vchat-frontend-app .vchat-chat-error button{
  min-height:40px!important;
  margin-top:12px!important;
  padding:9px 14px!important;
  border:1px solid var(--vc-border-strong)!important;
  border-radius:11px!important;
  background:#fff!important;
  color:var(--vc-purple)!important;
  font-size:11px!important;
  font-weight:850!important;
}

/* Conversation lifecycle is now a first-class action, not a hidden submenu. */
.vchat-frontend-app #vchat-lifecycle-menu{
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0!important;
  border:1px solid var(--vc-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--vc-purple)!important;
  font-size:15px!important;
  font-weight:900!important;
}
.vchat-frontend-app #vchat-lifecycle-menu:hover{
  border-color:rgba(85,71,154,.30)!important;
  background:#f4f1fc!important;
}

.vchat-frontend-app .vchat-conversation-actions-sheet{
  display:grid!important;
  gap:18px!important;
}
.vchat-frontend-app .vchat-action-section{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  padding:14px!important;
  border:1px solid var(--vc-border)!important;
  border-radius:18px!important;
  background:#faf9fd!important;
}
.vchat-frontend-app .vchat-action-section>header{
  grid-column:1/-1!important;
  display:block!important;
  padding:0 2px 3px!important;
}
.vchat-frontend-app .vchat-action-section>header strong,
.vchat-frontend-app .vchat-action-section>header small{display:block!important}
.vchat-frontend-app .vchat-action-section>header strong{
  color:var(--vc-text)!important;
  font-size:13px!important;
  line-height:1.25!important;
}
.vchat-frontend-app .vchat-action-section>header small{
  margin-top:3px!important;
  color:var(--vc-muted)!important;
  font-size:10px!important;
  line-height:1.4!important;
}
.vchat-frontend-app .vchat-action-section>button{
  width:100%!important;
  min-height:66px!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:11px!important;
  padding:11px 12px!important;
  border:1px solid rgba(85,71,154,.14)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:var(--vc-text)!important;
  text-align:left!important;
  white-space:normal!important;
  box-shadow:none!important;
}
.vchat-frontend-app .vchat-action-section>button:hover{
  border-color:rgba(85,71,154,.30)!important;
  background:#f7f5fd!important;
  transform:none!important;
}
.vchat-frontend-app .vchat-action-section>button>span{
  width:38px!important;
  height:38px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:11px!important;
  background:#f0edfb!important;
  color:var(--vc-purple)!important;
  font-size:11px!important;
  font-weight:900!important;
}
.vchat-frontend-app .vchat-action-section>button>div{
  min-width:0!important;
}
.vchat-frontend-app .vchat-action-section>button b,
.vchat-frontend-app .vchat-action-section>button small{
  display:block!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}
.vchat-frontend-app .vchat-action-section>button b{
  color:inherit!important;
  font-size:var(--vc-action-font)!important;
  line-height:1.25!important;
}
.vchat-frontend-app .vchat-action-section>button small{
  margin-top:3px!important;
  color:var(--vc-muted)!important;
  font-size:var(--vc-action-muted)!important;
  line-height:1.35!important;
}
.vchat-frontend-app .vchat-action-section>button.vchat-action-archive>span,
.vchat-frontend-app .vchat-action-section>button.vchat-action-restore>span{
  background:#eef8f2!important;
  color:#2f8f61!important;
}
.vchat-frontend-app .vchat-action-section>button.vchat-action-trash,
.vchat-frontend-app .vchat-action-section>button.vchat-action-danger{
  border-color:#efc1cb!important;
  background:#fff7f8!important;
  color:#a52f4b!important;
}
.vchat-frontend-app .vchat-action-section>button.vchat-action-trash>span,
.vchat-frontend-app .vchat-action-section>button.vchat-action-danger>span{
  background:#fde7ec!important;
  color:#b33251!important;
}

/* Folder navigation must remain explicit on every screen size. */
.vchat-frontend-app .vchat-inbox-folders{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
}
.vchat-frontend-app .vchat-inbox-folders button{
  min-width:0!important;
  min-height:44px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:6px!important;
  padding:8px 9px!important;
  border:1px solid transparent!important;
  border-radius:12px!important;
  background:transparent!important;
  color:#77728b!important;
}
.vchat-frontend-app .vchat-inbox-folders button b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10px!important;
}
.vchat-frontend-app .vchat-inbox-folders button em{
  min-width:20px!important;
  height:20px!important;
  display:grid!important;
  place-items:center!important;
  padding:0 5px!important;
  border-radius:999px!important;
  background:#e9e6f4!important;
  color:#5b527f!important;
  font-size:8px!important;
  font-style:normal!important;
  font-weight:900!important;
}
.vchat-frontend-app .vchat-inbox-folders button.is-active{
  border-color:rgba(85,71,154,.20)!important;
  background:#fff!important;
  color:var(--vc-purple)!important;
  box-shadow:0 6px 18px rgba(31,28,56,.06)!important;
}
.vchat-frontend-app .vchat-inbox-folders button.is-active em{
  background:var(--vc-purple)!important;
  color:#fff!important;
}

/* Clearer, larger controls in the active conversation. */
.vchat-frontend-app .vchat-chat-actions>button{
  font-size:11px!important;
  font-weight:850!important;
}
.vchat-frontend-app .vchat-chat-quick-actions button,
.vchat-frontend-app .vchat-reply-mode button,
.vchat-frontend-app .vchat-composer-tools button,
.vchat-frontend-app .vchat-quick-filters button,
.vchat-frontend-app .vchat-filter-toggle{
  font-size:10px!important;
  font-weight:800!important;
}
.vchat-frontend-app .vchat-conversation-item{
  cursor:pointer!important;
}
.vchat-frontend-app .vchat-conversation-item.is-active{
  border-color:rgba(85,71,154,.38)!important;
  background:#fff!important;
  box-shadow:0 10px 26px rgba(31,28,56,.10)!important;
}
.vchat-frontend-app .vchat-conversation-item.is-active .vchat-conversation-copy strong{
  color:#2a2645!important;
}

/* Do not let a hidden overlay intercept controls or cause phantom lifecycle clicks. */
.vchat-frontend-app .vchat-mobile-overlay:not(.is-open){
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.vchat-frontend-app .vchat-modal[hidden],
.vchat-frontend-app .vchat-emoji-picker[hidden],
.vchat-frontend-app .vchat-lifecycle-banner[hidden],
.vchat-frontend-app .vchat-advanced-filters[hidden]{
  display:none!important;
  pointer-events:none!important;
}

@media (max-width:860px){
  .vchat-frontend-app .vchat-action-section{
    grid-template-columns:1fr!important;
    padding:12px!important;
  }
  .vchat-frontend-app .vchat-chat-loading{
    width:calc(100% - 24px)!important;
    min-height:118px!important;
    padding:18px!important;
  }
  .vchat-frontend-app #vchat-lifecycle-menu{
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
  }
}

@media (max-width:560px){
  .vchat-frontend-app .vchat-inbox-folders{
    margin:0 8px 9px!important;
    gap:5px!important;
  }
  .vchat-frontend-app .vchat-inbox-folders button{
    min-height:48px!important;
    grid-template-columns:1fr auto!important;
    grid-template-areas:"label count" "icon count"!important;
    align-content:center!important;
    gap:1px 5px!important;
    padding:7px 8px!important;
  }
  .vchat-frontend-app .vchat-inbox-folders button span{
    display:block!important;
    grid-area:icon!important;
    justify-self:start!important;
    font-size:9px!important;
  }
  .vchat-frontend-app .vchat-inbox-folders button b{
    display:block!important;
    grid-area:label!important;
    font-size:9px!important;
    line-height:1.1!important;
  }
  .vchat-frontend-app .vchat-inbox-folders button em{
    grid-area:count!important;
    align-self:center!important;
  }
  .vchat-frontend-app .vchat-chat-actions{
    max-width:204px!important;
    overflow-x:auto!important;
    scrollbar-width:none!important;
  }
  .vchat-frontend-app .vchat-chat-actions::-webkit-scrollbar{display:none!important}
  .vchat-frontend-app .vchat-action-section>button{
    min-height:70px!important;
  }
  .vchat-frontend-app .vchat-action-section>button b{
    font-size:13px!important;
  }
  .vchat-frontend-app .vchat-action-section>button small{
    font-size:11px!important;
  }
}

/* =========================================================
   Vchat Core 0.28.0 — Inbox visual stabilization
   ========================================================= */
.vchat-frontend-app .vchat-chat-panel{
  height:100%;
  min-height:0;
  overflow:hidden;
  display:grid!important;
  grid-template-rows:auto auto auto minmax(0,1fr) auto!important;
}
.vchat-frontend-app .vchat-chat-head,
.vchat-frontend-app .vchat-chat-toolbar,
.vchat-frontend-app .vchat-sla-bar,
.vchat-frontend-app .vchat-composer-wrap{
  position:relative;
  z-index:3;
  flex:none;
}
.vchat-frontend-app .vchat-chat-timeline{
  min-height:0!important;
  height:auto!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
}
.vchat-frontend-app .vchat-composer-wrap{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  transform:none!important;
  margin:0!important;
  background:#fff!important;
  border-top:1px solid var(--vc-border)!important;
  box-shadow:0 -10px 28px rgba(31,28,56,.045)!important;
}
.vchat-frontend-app .vchat-composer{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  width:100%!important;
  min-height:58px!important;
}
.vchat-frontend-app .vchat-composer textarea{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  min-height:42px!important;
  max-height:132px!important;
  margin:0!important;
  outline:0!important;
}
.vchat-frontend-app .vchat-message{
  display:flex!important;
  flex-direction:column!important;
  width:fit-content!important;
  min-width:0!important;
  max-width:min(76%,720px)!important;
  margin:10px 0!important;
}
.vchat-frontend-app .vchat-message.outgoing{
  align-items:flex-end!important;
  margin-left:auto!important;
}
.vchat-frontend-app .vchat-message.incoming,
.vchat-frontend-app .vchat-message.internal{
  align-items:flex-start!important;
  margin-right:auto!important;
}
.vchat-frontend-app .vchat-message .vchat-message-bubble{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  min-height:0!important;
  padding:12px 15px!important;
  border-radius:16px!important;
  font-size:12px!important;
  line-height:1.5!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  box-shadow:0 8px 24px rgba(31,28,56,.05)!important;
}
.vchat-frontend-app .vchat-message.incoming .vchat-message-bubble{
  border:1px solid var(--vc-border)!important;
  border-bottom-left-radius:6px!important;
  background:#fff!important;
  color:var(--vc-text)!important;
}
.vchat-frontend-app .vchat-message.outgoing .vchat-message-bubble{
  border:0!important;
  border-bottom-right-radius:6px!important;
  background:linear-gradient(135deg,var(--vc-purple),var(--vc-violet))!important;
  color:#fff!important;
}
.vchat-frontend-app .vchat-message.internal .vchat-message-bubble{
  border:1px dashed rgba(85,71,154,.35)!important;
  background:#fff8db!important;
  color:#6f5a13!important;
}
.vchat-frontend-app .vchat-message .vchat-message-meta{
  display:flex!important;
  align-items:center!important;
  min-height:15px!important;
  width:auto!important;
  max-width:100%!important;
  margin:4px 4px 0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--vc-muted)!important;
  box-shadow:none!important;
  font-size:8px!important;
  line-height:1.2!important;
}
.vchat-frontend-app .vchat-message.outgoing .vchat-message-meta{justify-content:flex-end!important;text-align:right!important}
.vchat-frontend-app .vchat-message .vchat-message-meta time{
  display:inline!important;
  margin:0!important;
  padding:0!important;
  color:var(--vc-muted)!important;
  font-size:8px!important;
  line-height:1.2!important;
}
.vchat-frontend-app .vchat-message>.vchat-message-meta,
.vchat-frontend-app .vchat-message.outgoing>.vchat-message-meta,
.vchat-frontend-app .vchat-message.incoming>.vchat-message-meta{
  background:transparent!important;
  box-shadow:none!important;
}
.vchat-frontend-app .vchat-inbox-folders{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
  padding:5px!important;
  border:1px solid var(--vc-border)!important;
  border-radius:15px!important;
  background:#f0eef8!important;
}
.vchat-frontend-app .vchat-inbox-folders button{
  position:relative!important;
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  height:44px!important;
  padding:5px 8px!important;
  border:1px solid transparent!important;
  border-radius:11px!important;
  background:transparent!important;
  color:var(--vc-muted)!important;
}
.vchat-frontend-app .vchat-inbox-folders button.is-active{
  border-color:rgba(85,71,154,.18)!important;
  background:#fff!important;
  color:var(--vc-purple)!important;
  box-shadow:0 6px 18px rgba(31,28,56,.06)!important;
}
.vchat-frontend-app .vchat-folder-icon{
  display:grid!important;
  place-items:center!important;
  width:28px!important;
  height:28px!important;
  border-radius:9px!important;
  background:rgba(85,71,154,.08)!important;
}
.vchat-frontend-app .vchat-inbox-folders button.is-active .vchat-folder-icon{background:var(--vc-purple)!important;color:#fff!important}
.vchat-frontend-app .vchat-folder-icon svg{
  width:15px!important;
  height:15px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.vchat-frontend-app .vchat-inbox-folders b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:9px!important;
}
.vchat-frontend-app .vchat-inbox-folders em{
  display:grid!important;
  place-items:center!important;
  min-width:20px!important;
  height:20px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  background:#e7e3f4!important;
  color:var(--vc-purple)!important;
  font-size:8px!important;
  font-style:normal!important;
  font-weight:850!important;
}
.vchat-frontend-app .vchat-inbox-folders button.is-active em{background:var(--vc-purple)!important;color:#fff!important}
.vchat-frontend-app .vchat-inbox-search{
  position:relative!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 32px!important;
  align-items:center!important;
  width:100%!important;
  min-height:48px!important;
  padding:0!important;
  border:1px solid var(--vc-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 3px 12px rgba(31,28,56,.025)!important;
}
.vchat-frontend-app .vchat-inbox-search:focus-within{
  border-color:rgba(85,71,154,.52)!important;
  box-shadow:0 0 0 3px rgba(85,71,154,.10)!important;
}
.vchat-frontend-app .vchat-search-icon{display:grid!important;place-items:center!important;color:var(--vc-purple)!important}
.vchat-frontend-app .vchat-search-icon svg{width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important}
.vchat-frontend-app .vchat-inbox-search input{
  width:100%!important;
  height:46px!important;
  min-width:0!important;
  margin:0!important;
  padding:0 4px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:11px!important;
}
.vchat-frontend-app #vchat-clear-conversation-search{
  width:28px!important;
  height:28px!important;
  padding:0!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:var(--vc-muted)!important;
  font-size:16px!important;
}
.vchat-frontend-app #vchat-clear-conversation-search:hover{background:#f0eef8!important;color:var(--vc-purple)!important}

@media(max-width:1100px){
  .vchat-frontend-app .vchat-inbox-folders button{grid-template-columns:28px auto!important;justify-content:center!important}
  .vchat-frontend-app .vchat-inbox-folders b{display:none!important}
}
@media(max-width:760px){
  .vchat-frontend-app .vchat-chat-panel{grid-template-rows:auto auto auto minmax(0,1fr) auto!important}
  .vchat-frontend-app .vchat-message{max-width:88%!important}
  .vchat-frontend-app .vchat-message .vchat-message-bubble{font-size:14px!important;padding:11px 13px!important}
  .vchat-frontend-app .vchat-composer-wrap{padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
  .vchat-frontend-app .vchat-inbox-folders button{height:46px!important}
}

/* ================================================================
   Vchat Core 0.28.0 — UX refinement: icon folders, contact editing,
   compact pipeline cards and spacing rhythm.
   ================================================================ */
.vchat-frontend-app .vchat-inbox-folders{
  grid-template-columns:repeat(3,1fr)!important;
  gap:10px!important;
  padding:7px!important;
}
.vchat-frontend-app .vchat-inbox-folders button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  height:52px!important;
  padding:5px 9px!important;
}
.vchat-frontend-app .vchat-inbox-folders button b{display:none!important}
.vchat-frontend-app .vchat-inbox-folders .vchat-folder-icon{
  width:36px!important;
  height:36px!important;
  border-radius:11px!important;
}
.vchat-frontend-app .vchat-inbox-folders .vchat-folder-icon svg{
  width:19px!important;
  height:19px!important;
}
.vchat-frontend-app .vchat-inbox-folders em{
  position:static!important;
  min-width:23px!important;
  height:23px!important;
  font-size:9px!important;
}
.vchat-frontend-app #vchat-open-contact{
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:14px!important;
}
.vchat-frontend-app #vchat-open-contact b{display:none!important}
.vchat-frontend-app #vchat-open-contact span{
  display:block!important;
  font-size:21px!important;
  line-height:1!important;
}

/* Contact profile editing */
.vchat-frontend-app .vchat-profile-hero{
  position:relative!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:18px!important;
  padding:24px!important;
}
.vchat-frontend-app .vchat-profile-hero-edit{
  align-self:start!important;
  min-height:40px!important;
  padding:0 16px!important;
  border:1px solid var(--vc-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--vc-purple)!important;
  font-weight:800!important;
}
.vchat-frontend-app .vchat-profile-actions{gap:10px!important;flex-wrap:wrap!important}

/* Pipeline cards should size to their content, never stretch to the column. */
.vchat-frontend-app .vchat-kanban-dropzone{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
  align-content:flex-start!important;
  gap:12px!important;
}
.vchat-frontend-app .vchat-kanban-empty{flex:0 0 auto!important}
.vchat-frontend-app .vchat-pipeline-conversation-card{
  flex:0 0 auto!important;
  align-self:stretch!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:13px!important;
  border-left:4px solid var(--stage-color,#6554b8)!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(31,28,56,.055)!important;
  overflow:visible!important;
}
.vchat-frontend-app .vchat-pipeline-card-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0 0 11px!important;
}
.vchat-frontend-app .vchat-pipeline-stage-pill{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  max-width:calc(100% - 38px)!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  background:var(--stage-soft,#f1effc)!important;
  color:var(--stage-color,#6554b8)!important;
  font-size:8px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
.vchat-frontend-app .vchat-pipeline-stage-pill i{
  width:7px!important;
  height:7px!important;
  border-radius:50%!important;
  background:var(--stage-color,#6554b8)!important;
}
.vchat-frontend-app .vchat-pipeline-card-head button{
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid var(--vc-border)!important;
  border-radius:10px!important;
  background:#faf9fe!important;
  color:var(--vc-purple)!important;
}
.vchat-frontend-app .vchat-pipeline-card-identity{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  min-width:0!important;
}
.vchat-frontend-app .vchat-pipeline-card-identity>div{min-width:0!important}
.vchat-frontend-app .vchat-pipeline-card-identity h3{
  margin:0 0 2px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12px!important;
}
.vchat-frontend-app .vchat-pipeline-card-identity small{
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:8px!important;
}
.vchat-frontend-app .vchat-pipeline-card-context{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  margin:10px 0!important;
  color:var(--vc-muted)!important;
  font-size:9px!important;
  line-height:1.45!important;
}
.vchat-frontend-app .vchat-pipeline-card-bottom{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:7px!important;
  padding-top:10px!important;
  border-top:1px solid rgba(85,71,154,.09)!important;
}
.vchat-frontend-app .vchat-pipeline-card-bottom span{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:var(--vc-muted)!important;
  font-size:8px!important;
}
.vchat-frontend-app .vchat-pipeline-card-bottom strong{font-size:9px!important}
.vchat-frontend-app .vchat-pipeline-card-bottom em{
  padding:4px 6px!important;
  border-radius:999px!important;
  background:var(--stage-soft,#f1effc)!important;
  color:var(--stage-color,#6554b8)!important;
  font-size:8px!important;
  font-style:normal!important;
  font-weight:850!important;
}
.vchat-frontend-app .vchat-pipeline-stage-badge,
.vchat-frontend-app .vchat-pipeline-card-top,
.vchat-frontend-app .vchat-pipeline-card-meta,
.vchat-frontend-app .vchat-pipeline-conversation-card>footer{display:none!important}

/* Consistent breathing room across operational screens. */
.vchat-frontend-app .vchat-view:not(.vchat-inbox-view){padding:28px 30px 42px!important}
.vchat-frontend-app .vchat-view-header{margin-bottom:24px!important}
.vchat-frontend-app .vchat-section-card,
.vchat-frontend-app .vchat-profile-card,
.vchat-frontend-app .vchat-contact-card{padding:18px!important}
.vchat-frontend-app .vchat-kanban{gap:14px!important}
.vchat-frontend-app .vchat-kanban-column{padding:12px!important}

@media(max-width:760px){
  .vchat-frontend-app .vchat-inbox-folders{gap:7px!important}
  .vchat-frontend-app .vchat-inbox-folders button{height:48px!important}
  .vchat-frontend-app .vchat-inbox-folders .vchat-folder-icon{width:33px!important;height:33px!important}
  .vchat-frontend-app .vchat-profile-hero{grid-template-columns:auto minmax(0,1fr)!important;padding:18px!important}
  .vchat-frontend-app .vchat-profile-hero-edit{grid-column:1/-1!important;width:100%!important}
  .vchat-frontend-app .vchat-view:not(.vchat-inbox-view){padding:22px 16px 34px!important}
  .vchat-frontend-app .vchat-pipeline-conversation-card{padding:12px!important}
}

/* =========================================================
   Vchat Core 0.28.0 — emoji stability, contact avatars,
   tag search/pagination and precision controls
   ========================================================= */

/* Emoji category switches must never collapse the picker. */
.vchat-emoji-picker.is-open{display:flex!important;pointer-events:auto!important}
.vchat-emoji-picker[hidden]{display:none!important}
.vchat-emoji-categories button,.vchat-emoji-grid button{touch-action:manipulation}
.vchat-emoji-categories button{position:relative;z-index:2}
.vchat-emoji-grid{overscroll-behavior:contain}

/* Contact avatars: channel image takes priority, manual image is fallback. */
.vchat-avatar.has-image,.vchat-mini-avatar.has-image,.vchat-profile-hero>span.has-image,.vchat-avatar-editor-preview.has-image{padding:0!important;overflow:hidden;background:#ece9fa!important}
.vchat-avatar img,.vchat-mini-avatar img,.vchat-profile-hero>span img,.vchat-avatar-editor-preview img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.vchat-contact-row-identity{display:flex!important;align-items:center!important;gap:11px!important;min-width:0}
.vchat-contact-row-identity>span:last-child{min-width:0}
.vchat-mini-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:13px;background:#ece9fa;color:#594ba1;font-size:10px;font-weight:900}
.vchat-avatar-editor{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:16px;margin-bottom:18px;padding:16px;border:1px solid #e1ddef;border-radius:18px;background:#faf9fe}
.vchat-avatar-editor-preview{display:grid;place-items:center;width:76px;height:76px;border-radius:24px;background:#ece9fa;color:#594ba1;font-size:18px;font-weight:900}
.vchat-avatar-editor>div:last-child{min-width:0}.vchat-avatar-editor strong,.vchat-avatar-editor small{display:block}.vchat-avatar-editor strong{font-size:12px}.vchat-avatar-editor small{margin-top:4px;color:#7c7891;font-size:9px;line-height:1.5;overflow-wrap:anywhere}
.vchat-avatar-upload-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-height:38px!important;margin-top:10px!important;padding:0 14px!important;border:1px solid #dcd7ec!important;border-radius:11px!important;background:#fff!important;color:#55479a!important;font-size:9px!important;font-weight:850!important;cursor:pointer!important}

/* Tag catalogue tools. */
.vchat-tag-admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px}
.vchat-tag-admin-toolbar>small{flex:0 0 auto;color:#79758d;font-size:10px;font-weight:750}
.vchat-tag-search{display:grid!important;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;flex:1;max-width:520px;min-height:46px;margin:0!important;padding:0 5px!important;border:1px solid #ded9ed!important;border-radius:14px!important;background:#fff!important;box-shadow:0 8px 24px rgba(33,30,59,.035)}
.vchat-tag-search>span{display:grid;place-items:center;color:#594ba1;font-size:18px}
.vchat-tag-search input{width:100%!important;min-width:0!important;height:42px!important;margin:0!important;padding:0 6px!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#211e3b!important;font-size:12px!important}
.vchat-tag-search button{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;min-width:30px!important;padding:0!important;border:0!important;border-radius:9px!important;background:#f1eff8!important;color:#6554b8!important;font-size:16px!important;line-height:1!important}
.vchat-tag-search button[hidden]{display:none!important}
.vchat-tag-search:focus-within{border-color:#8a7bd1!important;box-shadow:0 0 0 3px rgba(101,84,184,.12)!important}
.vchat-tag-admin-row{grid-template-columns:16px minmax(0,1fr) auto auto!important;min-height:70px!important;padding:13px 15px!important;gap:12px!important}
.vchat-tag-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.vchat-tag-icon-action{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;border:1px solid #e1ddec!important;border-radius:12px!important;background:#f7f5fc!important;color:#594ba1!important;line-height:1!important;box-shadow:none!important}
.vchat-tag-icon-action span{display:block;transform:none!important;font-size:15px!important;line-height:1!important}
.vchat-tag-icon-action.is-delete{background:#fff7f9!important;color:#cf4764!important;border-color:#f3dbe1!important}
.vchat-tag-icon-action:hover{transform:translateY(-1px);border-color:#bfb7df!important;background:#f0edfb!important}
.vchat-tag-icon-action.is-delete:hover{background:#fff0f4!important;border-color:#e8bdc8!important}
.vchat-tag-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:16px}
.vchat-tag-pagination:empty{display:none}
.vchat-tag-pagination button{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;border:1px solid #ddd8ec!important;border-radius:12px!important;background:#fff!important;color:#55479a!important;font-size:20px!important;font-weight:800!important}
.vchat-tag-pagination button:disabled{opacity:.38!important;cursor:not-allowed!important}
.vchat-tag-pagination span{color:#77738a;font-size:10px}.vchat-tag-pagination b{color:#211e3b}

/* Reliable tag color selection. */
.vchat-color-field{margin:14px 0 0;padding:14px;border:1px solid #e0dced;border-radius:16px;background:#faf9fe}
.vchat-color-field legend{padding:0 5px;color:#211e3b;font-size:10px;font-weight:850}
.vchat-color-palette{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}
.vchat-color-palette button{display:grid!important;place-items:center!important;width:100%!important;aspect-ratio:1!important;min-width:0!important;min-height:38px!important;padding:5px!important;border:2px solid transparent!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important}
.vchat-color-palette button span{display:block;width:100%;height:100%;min-height:27px;border-radius:8px;background:var(--swatch)}
.vchat-color-palette button.is-selected{border-color:#55479a!important;box-shadow:0 0 0 3px rgba(101,84,184,.12)!important}
.vchat-custom-color{display:grid!important;grid-template-columns:minmax(0,1fr) 52px auto;align-items:center;gap:10px;margin-top:13px!important;padding-top:13px!important;border-top:1px solid #e5e1ef}
.vchat-custom-color input[type="color"]{display:block!important;width:52px!important;height:40px!important;min-height:40px!important;margin:0!important;padding:3px!important;border:1px solid #d8d3e7!important;border-radius:11px!important;background:#fff!important;cursor:pointer!important;appearance:auto!important;-webkit-appearance:auto!important;opacity:1!important;pointer-events:auto!important}
.vchat-custom-color output{min-width:70px;color:#5d5870;font-size:10px;font-weight:800;text-align:right}

@media(max-width:760px){
  .vchat-tag-admin-toolbar{align-items:stretch;flex-direction:column;gap:8px}.vchat-tag-search{max-width:none;width:100%}.vchat-tag-admin-toolbar>small{text-align:right}
  .vchat-tag-admin-row{grid-template-columns:14px minmax(0,1fr) auto!important}.vchat-tag-admin-row>.vchat-tag-chip{display:none!important}
  .vchat-tag-row-actions{gap:6px}.vchat-tag-icon-action{width:40px!important;height:40px!important;min-width:40px!important}
}
@media(max-width:560px){
  .vchat-avatar-editor{grid-template-columns:62px minmax(0,1fr);gap:12px;padding:13px}.vchat-avatar-editor-preview{width:62px;height:62px;border-radius:20px}
  .vchat-color-palette{grid-template-columns:repeat(4,1fr)}.vchat-custom-color{grid-template-columns:1fr 48px}.vchat-custom-color output{grid-column:1/-1;text-align:left}
  .vchat-tag-admin-row{padding:11px 10px!important;gap:8px!important}.vchat-tag-icon-action{width:38px!important;height:38px!important;min-width:38px!important;font-size:0!important}.vchat-tag-icon-action span{font-size:15px!important}
}
.vchat-tag-icon-action::before{content:none!important;display:none!important}

/* ================================================================
   Vchat Core 0.29.0 — Archived lifecycle layout + message sounds
   ================================================================ */

/* When the lifecycle banner is visible it becomes a real grid row. Without
   this six-row template the SLA strip inherited the flexible timeline row and
   stretched into tall cards. */
.vchat-frontend-app[data-conversation-lifecycle="archived"] .vchat-chat-panel,
.vchat-frontend-app[data-conversation-lifecycle="trashed"] .vchat-chat-panel{
  grid-template-rows:var(--vc-chat-head,66px) auto auto auto minmax(0,1fr) auto!important;
}
.vchat-frontend-app[data-conversation-lifecycle="archived"] .vchat-sla-bar,
.vchat-frontend-app[data-conversation-lifecycle="trashed"] .vchat-sla-bar{
  flex:none!important;
  height:auto!important;
  min-height:54px!important;
  max-height:68px!important;
  align-self:start!important;
  align-items:stretch!important;
}
.vchat-frontend-app[data-conversation-lifecycle="archived"] .vchat-sla-item,
.vchat-frontend-app[data-conversation-lifecycle="trashed"] .vchat-sla-item{
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  align-self:center!important;
}
.vchat-frontend-app[data-conversation-lifecycle="archived"] .vchat-chat-timeline,
.vchat-frontend-app[data-conversation-lifecycle="trashed"] .vchat-chat-timeline{
  min-height:0!important;
  height:auto!important;
}

.vchat-sound-settings-card .vchat-card-heading{margin-bottom:18px!important}
.vchat-sound-settings-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  padding:16px 0!important;
  border-top:1px solid var(--vc-border,#e6e2f1)!important;
  border-bottom:1px solid var(--vc-border,#e6e2f1)!important;
}
.vchat-sound-settings-grid>label{display:grid!important;gap:8px!important;min-width:0!important}
.vchat-sound-settings-grid>label>span{font-size:12px!important;font-weight:800!important;color:var(--vc-text,#24213d)!important}
.vchat-sound-settings-grid>label>div{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;gap:8px!important;align-items:center!important}
.vchat-sound-settings-grid select{
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  margin:0!important;
  padding:0 38px 0 12px!important;
  border:1px solid var(--vc-border,#ded9ed)!important;
  border-radius:12px!important;
  background-color:#fff!important;
  color:var(--vc-text,#24213d)!important;
  font-size:12px!important;
  font-weight:700!important;
}
.vchat-sound-settings-grid button{
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--vc-border,#ded9ed)!important;
  border-radius:12px!important;
  background:#f4f2fb!important;
  color:var(--vc-purple,#55479a)!important;
  font-size:14px!important;
  cursor:pointer!important;
}
.vchat-sound-settings-grid button:hover{background:#ebe7fa!important;border-color:#bdb4df!important}
.vchat-sound-settings-grid>label>small{color:var(--vc-muted,#77748d)!important;font-size:10px!important;line-height:1.45!important}
.vchat-preference-list-secondary{margin-top:14px!important}

@media(max-width:760px){
  .vchat-sound-settings-grid{grid-template-columns:1fr!important}
  .vchat-frontend-app[data-conversation-lifecycle="archived"] .vchat-chat-panel,
  .vchat-frontend-app[data-conversation-lifecycle="trashed"] .vchat-chat-panel{
    grid-template-rows:58px auto auto auto minmax(0,1fr) auto!important;
  }
  .vchat-frontend-app[data-conversation-lifecycle="archived"] .vchat-sla-bar,
  .vchat-frontend-app[data-conversation-lifecycle="trashed"] .vchat-sla-bar{
    max-height:58px!important;
  }
}

/* Vchat 0.36.6 — polished outbound feedback */
.vchat-frontend-app #vchat-send-message{position:relative;transition:transform .16s ease,opacity .16s ease,box-shadow .16s ease!important}
.vchat-frontend-app #vchat-send-message:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(85,71,154,.22)!important}
.vchat-frontend-app #vchat-send-message.is-sending{cursor:wait!important;opacity:.82!important;box-shadow:none!important}
.vchat-frontend-app #vchat-send-message.is-sending .vchat-send-icon{animation:vchatSendPulse .8s ease-in-out infinite alternate}
@keyframes vchatSendPulse{from{transform:translateX(0);opacity:.65}to{transform:translateX(3px);opacity:1}}


/* 0.36.7 — Premium public auth + mobile icon hardening */
.vchat-auth-page,.vchat-auth-page *{box-sizing:border-box}
.vchat-auth-page{position:fixed!important;inset:0!important;z-index:999998!important;display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(440px,.92fr)!important;width:100vw!important;height:100dvh!important;overflow:hidden!important;background:#f5f3fb!important;color:#211f38!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.vchat-auth-story{position:relative!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;min-width:0!important;padding:clamp(34px,5vw,72px)!important;overflow:hidden!important;background:linear-gradient(150deg,#17152f 0%,#27204d 56%,#604db0 100%)!important;color:#fff!important}
.vchat-auth-story::before{content:"";position:absolute;inset:-20%;background:radial-gradient(circle at 25% 20%,rgba(151,129,255,.34),transparent 28%),radial-gradient(circle at 80% 68%,rgba(255,255,255,.10),transparent 22%);pointer-events:none}
.vchat-auth-story::after{content:"";position:absolute;right:-15%;bottom:-22%;width:68%;aspect-ratio:1;border:1px solid rgba(255,255,255,.13);border-radius:50%;box-shadow:0 0 0 54px rgba(255,255,255,.025),0 0 0 108px rgba(255,255,255,.02);pointer-events:none}
.vchat-auth-story>*{position:relative;z-index:1}
.vchat-public-brand{display:flex!important;align-items:center!important;gap:13px!important}
.vchat-public-brand>span{display:grid!important;place-items:center!important;width:50px!important;height:50px!important;border-radius:16px!important;background:#fff!important;color:#55479a!important;font-size:24px!important;font-weight:950!important;box-shadow:0 12px 34px rgba(0,0,0,.16)!important}
.vchat-public-brand strong{font-size:22px!important;line-height:1!important;letter-spacing:-.7px!important}.vchat-public-brand small{display:block!important;margin-top:5px!important;font-size:8px!important;letter-spacing:2px!important;opacity:.62!important}
.vchat-auth-copy{max-width:660px!important}.vchat-auth-pill,.vchat-eyebrow{display:inline-flex!important;align-items:center!important;min-height:31px!important;padding:0 12px!important;border:1px solid rgba(101,84,184,.18)!important;border-radius:999px!important;background:#eeebff!important;color:#55479a!important;font-size:10px!important;font-weight:900!important;letter-spacing:.06em!important}
.vchat-auth-story .vchat-auth-pill{border-color:rgba(255,255,255,.18)!important;background:rgba(255,255,255,.09)!important;color:#fff!important;backdrop-filter:blur(10px)!important}
.vchat-auth-copy h1{max-width:650px!important;margin:24px 0 18px!important;color:#fff!important;font-size:clamp(42px,5vw,76px)!important;line-height:.96!important;letter-spacing:-.055em!important;font-weight:800!important}
.vchat-auth-copy p{max-width:600px!important;margin:0!important;color:rgba(255,255,255,.72)!important;font-size:clamp(15px,1.3vw,19px)!important;line-height:1.65!important}
.vchat-auth-proof{display:inline-flex!important;align-items:center!important;gap:9px!important;width:max-content!important;max-width:100%!important;color:rgba(255,255,255,.76)!important;font-size:12px!important;font-weight:750!important}.vchat-auth-proof span{display:grid!important;place-items:center!important;width:27px!important;height:27px!important;border-radius:50%!important;background:rgba(255,255,255,.12)!important;color:#fff!important}
.vchat-auth-panel{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;padding:clamp(30px,5vw,72px)!important;overflow:auto!important;background:linear-gradient(180deg,#fbfaff,#f3f1fb)!important}
.vchat-auth-card{width:min(100%,520px)!important;margin:auto!important;padding:clamp(28px,4vw,46px)!important;border:1px solid rgba(85,71,154,.13)!important;border-radius:30px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 28px 80px rgba(37,31,74,.12)!important;backdrop-filter:blur(18px)!important}
.vchat-auth-card h2{margin:16px 0 8px!important;color:#211f38!important;font-size:clamp(34px,4vw,52px)!important;line-height:1!important;letter-spacing:-.045em!important;font-weight:790!important}.vchat-form-intro{margin:0 0 28px!important;color:#77748d!important;font-size:14px!important;line-height:1.6!important}
.vchat-auth-form{display:grid!important;gap:17px!important}.vchat-auth-form>label,.vchat-two-columns>label{display:grid!important;gap:7px!important;margin:0!important;color:#2b2840!important;font-size:11px!important;font-weight:850!important}
.vchat-auth-form input[type=email],.vchat-auth-form input[type=password],.vchat-auth-form input[type=text]{width:100%!important;height:52px!important;margin:0!important;padding:0 15px!important;border:1px solid rgba(85,71,154,.19)!important;border-radius:14px!important;background:#fff!important;color:#211f38!important;font:inherit!important;font-size:15px!important;box-shadow:0 1px 0 rgba(255,255,255,.7) inset!important;outline:0!important;transition:border-color .18s ease,box-shadow .18s ease!important}
.vchat-auth-form input:focus{border-color:#6554b8!important;box-shadow:0 0 0 4px rgba(101,84,184,.12)!important}
.vchat-auth-form label>small{margin-top:-2px!important;color:#908ca4!important;font-size:9px!important;font-weight:650!important}
.vchat-two-columns{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.vchat-form-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;min-width:0!important}.vchat-form-row>a,.vchat-switch a{color:#55479a!important;text-decoration:none!important;font-size:11px!important;font-weight:850!important}.vchat-form-row>a:hover,.vchat-switch a:hover{text-decoration:underline!important}
.vchat-check{display:flex!important;grid-template-columns:none!important;align-items:center!important;gap:9px!important;min-width:0!important;color:#6f6b80!important;font-size:11px!important;font-weight:700!important;cursor:pointer!important}.vchat-check input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;width:19px!important;height:19px!important;min-width:19px!important;margin:0!important;border:1.5px solid #bbb6ca!important;border-radius:6px!important;background:#fff!important;display:grid!important;place-items:center!important}.vchat-check input[type=checkbox]:checked{border-color:#6554b8!important;background:#6554b8!important}.vchat-check input[type=checkbox]:checked::after{content:"";width:8px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translateY(-1px)}
.vchat-auth-form .vchat-primary-button{width:100%!important;min-height:54px!important;margin-top:2px!important;border:0!important;border-radius:15px!important;background:linear-gradient(135deg,#55479a,#6d5cc3)!important;color:#fff!important;font-size:14px!important;font-weight:900!important;box-shadow:0 12px 28px rgba(85,71,154,.24)!important;transition:transform .18s ease,box-shadow .18s ease!important}.vchat-auth-form .vchat-primary-button:hover{transform:translateY(-1px)!important;box-shadow:0 16px 34px rgba(85,71,154,.3)!important}
.vchat-switch{margin:22px 0 0!important;text-align:center!important;color:#77748d!important;font-size:11px!important}.vchat-alert{margin:0 0 18px!important;padding:12px 14px!important;border:1px solid #f2c4cf!important;border-radius:13px!important;background:#fff2f5!important;color:#9b2c48!important;font-size:11px!important;font-weight:750!important;line-height:1.5!important}
.vchat-ui-icon{display:inline-grid!important;place-items:center!important;width:18px!important;height:18px!important;line-height:0!important}.vchat-ui-icon svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}

@media(max-width:860px){
  .vchat-auth-page{position:fixed!important;grid-template-columns:1fr!important;overflow:auto!important;background:#f5f3fb!important}
  .vchat-auth-story{display:none!important}
  .vchat-auth-panel{min-height:100dvh!important;align-items:flex-start!important;padding:max(24px,env(safe-area-inset-top)) 18px max(32px,env(safe-area-inset-bottom))!important;background:radial-gradient(circle at 100% 0,rgba(108,88,194,.12),transparent 31%),linear-gradient(180deg,#f8f7fd,#f2f0fa)!important}
  .vchat-auth-card{width:100%!important;max-width:520px!important;margin:auto!important;padding:28px 22px!important;border-radius:24px!important;box-shadow:0 18px 52px rgba(37,31,74,.10)!important}
  .vchat-auth-card::before{content:"VCHAT";display:block;margin-bottom:28px;color:#211f38;font-size:17px;font-weight:950;letter-spacing:-.4px}
  .vchat-auth-card h2{font-size:38px!important;margin-top:15px!important}.vchat-form-intro{margin-bottom:24px!important;font-size:13px!important}
  .vchat-two-columns{grid-template-columns:1fr!important}
  .vchat-form-row{align-items:flex-start!important;flex-wrap:wrap!important}
  .vchat-auth-form input[type=email],.vchat-auth-form input[type=password],.vchat-auth-form input[type=text]{height:50px!important}
  .vchat-advanced-filters + *{}
  .vchat-filter-toggle .vchat-ui-icon,.vchat-inbox-export-button .vchat-ui-icon{width:19px!important;height:19px!important}
  .vchat-filter-toggle .vchat-ui-icon svg,.vchat-inbox-export-button .vchat-ui-icon svg{width:19px!important;height:19px!important}
  .vchat-inbox-list-footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom))!important}
  .vchat-inbox-export-button{width:100%!important;min-height:42px!important;height:42px!important;gap:8px!important;border-radius:13px!important;font-size:9px!important}
  .vchat-inbox-export-button b{display:inline!important;font-size:9px!important}
}
@media(max-width:420px){.vchat-auth-panel{padding-left:14px!important;padding-right:14px!important}.vchat-auth-card{padding:24px 18px!important;border-radius:22px!important}.vchat-auth-card h2{font-size:34px!important}}


/* ================================================================
   Vchat Core 0.36.8 — mobile conversation actions + folder centering
   ================================================================ */
/* Keep the bottom-sheet and every action in its interactive layer on iOS. */
.vchat-frontend-app #vchat-modal.is-open,
.vchat-frontend-app #vchat-modal.is-open .vchat-modal-dialog,
.vchat-frontend-app #vchat-modal.is-open .vchat-modal-head,
.vchat-frontend-app #vchat-modal.is-open .vchat-modal-body,
.vchat-frontend-app #vchat-modal.is-open .vchat-conversation-actions-sheet,
.vchat-frontend-app #vchat-modal.is-open .vchat-action-section,
.vchat-frontend-app #vchat-modal.is-open .vchat-action-section>button{
  pointer-events:auto!important;
}
.vchat-frontend-app #vchat-modal.is-open .vchat-action-section>button{
  position:relative!important;
  z-index:3!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
  cursor:pointer!important;
}
.vchat-frontend-app #vchat-modal.is-open .vchat-action-section>button>*{
  pointer-events:none!important;
}

/* The folder glyph itself is geometrically centered in each third.
   The numeric badge is positioned independently so it cannot push the icon. */
.vchat-frontend-app .vchat-inbox-folders button{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
}
.vchat-frontend-app .vchat-inbox-folders .vchat-folder-icon{
  margin:0!important;
  display:grid!important;
  place-items:center!important;
}
.vchat-frontend-app .vchat-inbox-folders .vchat-folder-icon svg{
  display:block!important;
  margin:auto!important;
  transform:none!important;
}
.vchat-frontend-app .vchat-inbox-folders em{
  position:absolute!important;
  left:calc(50% + 27px)!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;
}
@media(max-width:420px){
  .vchat-frontend-app .vchat-inbox-folders em{left:calc(50% + 25px)!important}
}


/* ================================================================
   Vchat Core 0.36.9 — branded authentication experience
   ================================================================ */
.vchat-auth-page{background:#f6f4fc!important}
.vchat-auth-story{isolation:isolate!important;background:linear-gradient(145deg,#15122f 0%,#251c4c 48%,#5c48ad 100%)!important}
.vchat-auth-story::before{inset:0!important;background:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px)!important;background-size:48px 48px!important;mask-image:linear-gradient(to bottom,rgba(0,0,0,.9),transparent 90%)!important;opacity:.55!important}
.vchat-auth-story::after{right:-16%!important;bottom:-36%!important;width:78%!important;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018)!important}
.vchat-auth-ambient{position:absolute!important;border-radius:999px!important;filter:blur(12px)!important;opacity:.7!important;pointer-events:none!important;z-index:-1!important;animation:vchatAuthFloat 9s ease-in-out infinite!important}
.vchat-auth-ambient-a{width:240px!important;height:240px!important;top:9%!important;right:8%!important;background:radial-gradient(circle,rgba(132,110,255,.46),transparent 70%)!important}
.vchat-auth-ambient-b{width:300px!important;height:300px!important;bottom:5%!important;left:-8%!important;background:radial-gradient(circle,rgba(220,207,255,.18),transparent 70%)!important;animation-delay:-4s!important}
@keyframes vchatAuthFloat{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(0,-18px,0) scale(1.05)}}
.vchat-auth-copy{margin-top:auto!important;margin-bottom:28px!important}
.vchat-auth-pill i{width:7px!important;height:7px!important;border-radius:50%!important;background:#b8a9ff!important;box-shadow:0 0 0 5px rgba(184,169,255,.12)!important;animation:vchatAuthPulse 1.8s ease-in-out infinite!important}
@keyframes vchatAuthPulse{50%{box-shadow:0 0 0 9px rgba(184,169,255,0)}}
.vchat-auth-demo{position:relative!important;width:min(100%,620px)!important;margin:0 0 24px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:26px!important;background:rgba(255,255,255,.075)!important;box-shadow:0 24px 70px rgba(6,4,25,.2)!important;backdrop-filter:blur(22px)!important;overflow:hidden!important}
.vchat-auth-demo-top{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:14px 17px!important;border-bottom:1px solid rgba(255,255,255,.1)!important;color:rgba(255,255,255,.72)!important;font-size:10px!important;font-weight:800!important}.vchat-auth-demo-top span{display:flex!important;align-items:center!important;gap:8px!important}.vchat-auth-demo-top span i{width:7px!important;height:7px!important;border-radius:50%!important;background:#b6a7ff!important;box-shadow:0 0 0 4px rgba(182,167,255,.12)!important}.vchat-auth-demo-top b{padding:6px 9px!important;border-radius:999px!important;background:rgba(255,255,255,.1)!important;color:#fff!important;font-size:9px!important}
.vchat-auth-demo-chat{display:grid!important;gap:12px!important;padding:18px!important}.vchat-auth-bubble{max-width:82%!important;padding:12px 14px!important;border-radius:17px!important;animation:vchatBubbleIn .55s both!important}.vchat-auth-bubble span{display:flex!important;align-items:center!important;gap:6px!important;margin-bottom:5px!important;font-size:8px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.06em!important}.vchat-auth-bubble p{margin:0!important;font-size:11px!important;line-height:1.45!important}.vchat-auth-bubble.is-contact{justify-self:start!important;background:#fff!important;color:#28223f!important;border-bottom-left-radius:6px!important}.vchat-auth-bubble.is-contact span{color:#8a849f!important}.vchat-auth-bubble.is-ai{justify-self:end!important;background:linear-gradient(135deg,#725fd0,#56439f)!important;color:#fff!important;border:1px solid rgba(255,255,255,.14)!important;border-bottom-right-radius:6px!important;animation-delay:1.4s!important}.vchat-auth-bubble.is-ai span{color:#dfd8ff!important}.vchat-auth-ai-thinking{display:flex!important;align-items:center!important;gap:4px!important;padding-left:10px!important;color:rgba(255,255,255,.62)!important;font-size:8px!important;animation:vchatThinking 4.4s infinite!important}.vchat-auth-ai-thinking i{width:5px!important;height:5px!important;border-radius:50%!important;background:#c7bcff!important;animation:vchatDot 1.1s infinite alternate!important}.vchat-auth-ai-thinking i:nth-child(2){animation-delay:.18s!important}.vchat-auth-ai-thinking i:nth-child(3){animation-delay:.36s!important}.vchat-auth-ai-thinking small{margin-left:5px!important;font-size:8px!important}.vchat-auth-demo-signal{display:flex!important;gap:7px!important;padding:0 18px 17px!important;flex-wrap:wrap!important}.vchat-auth-demo-signal span{padding:6px 9px!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:999px!important;background:rgba(255,255,255,.06)!important;color:rgba(255,255,255,.68)!important;font-size:8px!important;font-weight:800!important}
@keyframes vchatBubbleIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}@keyframes vchatDot{to{opacity:.25;transform:translateY(-2px)}}@keyframes vchatThinking{0%,18%{opacity:0}25%,82%{opacity:1}90%,100%{opacity:.25}}
.vchat-auth-panel{position:relative!important;background:radial-gradient(circle at 100% 0,rgba(110,88,199,.11),transparent 26%),linear-gradient(180deg,#fbfaff,#f2f0fa)!important}
.vchat-auth-panel::before{content:"";position:absolute;left:9%;top:10%;width:10px;height:10px;border-radius:3px;background:#7562c9;box-shadow:0 0 0 8px rgba(117,98,201,.06);transform:rotate(45deg);animation:vchatAuthFloat 7s ease-in-out infinite reverse}
.vchat-auth-card{position:relative!important;overflow:hidden!important;padding:42px!important;border-radius:28px!important;background:rgba(255,255,255,.88)!important;box-shadow:0 30px 90px rgba(37,31,74,.13)!important}
.vchat-auth-card::after{content:"";position:absolute;right:-80px;top:-90px;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,rgba(117,98,201,.10),transparent 70%);pointer-events:none}
.vchat-auth-card h2{font-size:clamp(38px,4vw,50px)!important}
.vchat-auth-form input[type=email],.vchat-auth-form input[type=password],.vchat-auth-form input[type=text]{height:55px!important;border-radius:15px!important;background:#fbfaff!important}
.vchat-auth-form .vchat-primary-button{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 18px 0 20px!important;min-height:56px!important;border-radius:16px!important;overflow:hidden!important}.vchat-auth-form .vchat-primary-button b{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:10px!important;background:rgba(255,255,255,.14)!important;font-size:18px!important;transition:transform .2s ease!important}.vchat-auth-form .vchat-primary-button:hover b{transform:translateX(3px)!important}
.vchat-auth-security{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;margin:14px 0 0!important;color:#8a8699!important;font-size:9px!important;font-weight:750!important}.vchat-auth-security i{display:grid!important;place-items:center!important;width:15px!important;height:15px!important;border-radius:50%!important;background:#f0edfb!important;color:#6554b8!important;font-style:normal!important;font-size:8px!important}
.vchat-auth-mobile-brand,.vchat-auth-mobile-orbit{display:none!important}

@media(max-width:860px){
  .vchat-auth-page{min-height:100dvh!important;background:linear-gradient(180deg,#f7f4ff,#f2effa)!important}
  .vchat-auth-story{display:none!important}
  .vchat-auth-panel{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:14px!important;min-height:100dvh!important;padding:max(26px,env(safe-area-inset-top)) 16px max(28px,env(safe-area-inset-bottom))!important;overflow:hidden!important}
  .vchat-auth-panel::before{left:auto!important;right:8%!important;top:9%!important}
  .vchat-auth-mobile-brand{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;margin:0 auto 4px!important;position:relative!important;z-index:2!important}.vchat-auth-mobile-brand>span{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;border-radius:13px!important;background:linear-gradient(145deg,#57449f,#7967d8)!important;color:#fff!important;font-size:20px!important;font-weight:950!important;box-shadow:0 10px 26px rgba(85,71,154,.2)!important}.vchat-auth-mobile-brand strong{font-size:17px!important;line-height:1!important;color:#27213e!important;letter-spacing:-.5px!important}.vchat-auth-mobile-brand small{display:block!important;margin-top:4px!important;color:#8b859c!important;font-size:6px!important;letter-spacing:1.6px!important}
  .vchat-auth-mobile-orbit{display:grid!important;place-items:center!important;position:relative!important;width:82px!important;height:48px!important;margin:0 auto -4px!important}.vchat-auth-mobile-orbit>span{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:13px!important;background:#fff!important;color:#6654b8!important;box-shadow:0 10px 30px rgba(67,53,126,.12)!important;animation:vchatAuthPulseMobile 2.5s ease-in-out infinite!important}.vchat-auth-mobile-orbit i{position:absolute!important;width:7px!important;height:7px!important;border-radius:50%!important;background:#8b79d8!important;opacity:.45!important}.vchat-auth-mobile-orbit i:nth-child(2){left:7px!important;top:7px!important}.vchat-auth-mobile-orbit i:nth-child(3){right:3px!important;top:19px!important}.vchat-auth-mobile-orbit i:nth-child(4){left:16px!important;bottom:2px!important}@keyframes vchatAuthPulseMobile{50%{transform:translateY(-4px);box-shadow:0 16px 34px rgba(67,53,126,.17)}}
  .vchat-auth-card{width:100%!important;max-width:520px!important;margin:0 auto!important;padding:27px 22px!important;border-radius:25px!important;background:rgba(255,255,255,.9)!important;box-shadow:0 20px 60px rgba(37,31,74,.11)!important}
  .vchat-auth-card::before{content:none!important}
  .vchat-auth-card h2{font-size:34px!important;line-height:1.02!important;margin:13px 0 7px!important;text-align:center!important}.vchat-auth-card>.vchat-eyebrow{display:flex!important;width:max-content!important;margin:0 auto!important}.vchat-form-intro{text-align:center!important;margin-bottom:22px!important}
  .vchat-auth-form{gap:14px!important}.vchat-auth-form input[type=email],.vchat-auth-form input[type=password],.vchat-auth-form input[type=text]{height:51px!important}
}
@media(max-width:420px){.vchat-auth-card{padding:24px 18px!important}.vchat-auth-card h2{font-size:31px!important}.vchat-form-row{gap:8px!important}.vchat-form-row>a,.vchat-check{font-size:10px!important}}

/* Center folder glyph independently from its count badge. */
.vchat-frontend-app .vchat-inbox-folders>button{position:relative!important;display:grid!important;place-items:center!important}
.vchat-frontend-app .vchat-inbox-folders>button>.vchat-folder-icon{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;margin:0!important}
.vchat-frontend-app .vchat-inbox-folders>button>em{position:absolute!important;left:calc(50% + 34px)!important;top:50%!important;transform:translateY(-50%)!important;margin:0!important}


/* ================================================================
   Vchat Core 0.36.10 — folder controls: icon + count stay together.
   Do not center the glyph independently; the badge is part of the same
   visual control and must never sit against / outside the button edge.
   ================================================================ */
.vchat-frontend-app .vchat-inbox-folders>button{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:0 10px!important;
  overflow:hidden!important;
}
.vchat-frontend-app .vchat-inbox-folders>button>.vchat-folder-icon{
  position:static!important;
  left:auto!important;
  top:auto!important;
  transform:none!important;
  flex:0 0 auto!important;
  margin:0!important;
}
.vchat-frontend-app .vchat-inbox-folders>button>em{
  position:static!important;
  left:auto!important;
  top:auto!important;
  transform:none!important;
  flex:0 0 auto!important;
  margin:0!important;
  min-width:22px!important;
  height:22px!important;
}
@media(max-width:420px){
  .vchat-frontend-app .vchat-inbox-folders>button{gap:6px!important;padding:0 7px!important}
  .vchat-frontend-app .vchat-inbox-folders>button>.vchat-folder-icon{width:34px!important;height:34px!important}
  .vchat-frontend-app .vchat-inbox-folders>button>em{min-width:20px!important;height:20px!important;font-size:8px!important}
}

/* ============================================================
   Vchat Core 0.36.29-alpha — Contacts Workspace redesign
   ============================================================ */
.vchat-frontend-app [data-vchat-panel="contacts"]{max-width:1440px!important;margin:0 auto!important}
.vchat-frontend-app .vchat-contacts-heading{align-items:flex-end!important;margin-bottom:18px!important}
.vchat-frontend-app .vchat-contact-overview{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 14px!important}
.vchat-frontend-app .vchat-contact-overview>button{position:relative!important;display:grid!important;gap:4px!important;min-width:0!important;padding:16px!important;text-align:left!important;border:1px solid #ebe8f4!important;border-radius:18px!important;background:#fff!important;color:#24203a!important;box-shadow:0 8px 28px rgba(45,37,84,.04)!important;cursor:pointer!important}
.vchat-frontend-app .vchat-contact-overview>button:hover,.vchat-frontend-app .vchat-contact-overview>button.is-active{border-color:#cfc7ef!important;background:linear-gradient(180deg,#fff,#faf8ff)!important;box-shadow:0 10px 32px rgba(91,73,164,.08)!important}
.vchat-frontend-app .vchat-contact-overview small{font-size:9px!important;font-weight:800!important;color:#77728d!important}
.vchat-frontend-app .vchat-contact-overview strong{font-size:24px!important;line-height:1.05!important;letter-spacing:-.04em!important;color:#241e43!important}
.vchat-frontend-app .vchat-contact-overview span{font-size:8px!important;color:#9a95aa!important}
.vchat-frontend-app .vchat-contact-toolbar{display:grid!important;grid-template-columns:minmax(280px,1fr) auto!important;gap:10px!important;align-items:center!important;padding:11px!important;border:1px solid #ebe8f4!important;border-radius:17px!important;background:#fff!important}
.vchat-frontend-app .vchat-contact-toolbar .vchat-search{margin:0!important}
.vchat-frontend-app .vchat-contact-toolbar-actions{display:flex!important;gap:8px!important;align-items:center!important}
.vchat-frontend-app .vchat-contact-toolbar-actions select{min-width:150px!important;height:38px!important;border:1px solid #e4e0ee!important;border-radius:11px!important;background:#faf9fc!important;color:#39354c!important;font-size:9px!important;font-weight:700!important}
.vchat-frontend-app .vchat-contact-segments,.vchat-frontend-app .vchat-contact-category-strip{display:flex!important;gap:7px!important;overflow-x:auto!important;padding:10px 2px 3px!important;scrollbar-width:none!important}
.vchat-frontend-app .vchat-contact-segments::-webkit-scrollbar,.vchat-frontend-app .vchat-contact-category-strip::-webkit-scrollbar{display:none!important}
.vchat-frontend-app .vchat-contact-segments button,.vchat-frontend-app .vchat-contact-category-strip button{flex:0 0 auto!important;min-height:30px!important;padding:7px 11px!important;border:1px solid #e7e3f0!important;border-radius:999px!important;background:#fff!important;color:#706b82!important;font-size:8px!important;font-weight:800!important;white-space:nowrap!important}
.vchat-frontend-app .vchat-contact-segments button.is-active,.vchat-frontend-app .vchat-contact-category-strip button.is-active{border-color:#6554b8!important;background:#6554b8!important;color:#fff!important}
.vchat-frontend-app .vchat-contact-workspace{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(310px,.75fr)!important;gap:14px!important;align-items:start!important;margin-top:12px!important}
.vchat-frontend-app .vchat-contact-list-shell,.vchat-frontend-app .vchat-contact-preview{border:1px solid #ebe8f4!important;border-radius:20px!important;background:#fff!important;box-shadow:0 12px 34px rgba(46,38,83,.045)!important;overflow:hidden!important}
.vchat-frontend-app .vchat-contact-list-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:15px 16px!important;border-bottom:1px solid #f0edf5!important}
.vchat-frontend-app .vchat-contact-list-head span{font-size:11px!important;font-weight:900!important;color:#292541!important}
.vchat-frontend-app .vchat-contact-list-head small{font-size:8px!important;color:#8c879b!important}
.vchat-frontend-app .vchat-contact-list{display:grid!important;gap:0!important}
.vchat-frontend-app .vchat-contact-list-item{position:relative!important;display:grid!important;grid-template-columns:minmax(210px,1.3fr) minmax(220px,1fr) minmax(130px,.7fr) auto!important;gap:14px!important;align-items:center!important;padding:14px 16px!important;border-bottom:1px solid #f1eef6!important;background:#fff!important;cursor:pointer!important;transition:background .16s ease,border-color .16s ease!important;outline:none!important}
.vchat-frontend-app .vchat-contact-list-item:last-of-type{border-bottom:0!important}
.vchat-frontend-app .vchat-contact-list-item:hover,.vchat-frontend-app .vchat-contact-list-item:focus-visible,.vchat-frontend-app .vchat-contact-list-item.is-selected{background:#faf9fe!important}
.vchat-frontend-app .vchat-contact-list-item.is-selected:before{content:""!important;position:absolute!important;left:0!important;top:9px!important;bottom:9px!important;width:3px!important;border-radius:0 4px 4px 0!important;background:#6554b8!important}
.vchat-frontend-app .vchat-contact-list-primary{display:flex!important;align-items:center!important;gap:11px!important;min-width:0!important}
.vchat-frontend-app .vchat-contact-list-primary>div{min-width:0!important}
.vchat-frontend-app .vchat-contact-list-primary strong,.vchat-frontend-app .vchat-contact-list-primary small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.vchat-frontend-app .vchat-contact-list-primary strong{font-size:10px!important;color:#292541!important}
.vchat-frontend-app .vchat-contact-list-primary small{margin-top:3px!important;font-size:8px!important;color:#8c879b!important}
.vchat-frontend-app .vchat-contact-list-badges{display:flex!important;gap:5px!important;flex-wrap:wrap!important;margin-top:6px!important}
.vchat-frontend-app .vchat-contact-list-badges i,.vchat-frontend-app .vchat-contact-list-categories i,.vchat-frontend-app .vchat-contact-preview-chips i{display:inline-flex!important;align-items:center!important;min-height:20px!important;padding:3px 7px!important;border-radius:999px!important;background:#f0edf9!important;color:#6253a4!important;font-size:7px!important;font-weight:800!important;font-style:normal!important}
.vchat-frontend-app .vchat-contact-list-badges i.is-channel{background:#f3f5f8!important;color:#666c78!important}
.vchat-frontend-app .vchat-contact-list-context{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;min-width:0!important}
.vchat-frontend-app .vchat-contact-list-context span{min-width:0!important}
.vchat-frontend-app .vchat-contact-list-context small,.vchat-frontend-app .vchat-contact-list-context b{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.vchat-frontend-app .vchat-contact-list-context small{font-size:7px!important;color:#9a95aa!important}
.vchat-frontend-app .vchat-contact-list-context b{margin-top:3px!important;font-size:8px!important;color:#403b55!important}
.vchat-frontend-app .vchat-contact-list-categories{display:flex!important;gap:4px!important;flex-wrap:wrap!important;min-width:0!important}
.vchat-frontend-app .vchat-contact-list-categories i.is-muted,.vchat-frontend-app .vchat-contact-preview-chips i.is-muted{background:#f7f6f9!important;color:#9d99a8!important}
.vchat-frontend-app .vchat-contact-list-open{min-height:32px!important;padding:7px 10px!important;border:1px solid #ddd7ec!important;border-radius:10px!important;background:#fff!important;color:#5c4da6!important;font-size:8px!important;font-weight:900!important;white-space:nowrap!important}
.vchat-frontend-app .vchat-contact-list-open:hover{background:#f3f0fb!important;border-color:#cfc6e9!important}
.vchat-frontend-app .vchat-contact-preview{position:sticky!important;top:18px!important;min-height:360px!important}
.vchat-frontend-app .vchat-contact-preview-empty{display:grid!important;place-items:center!important;align-content:center!important;gap:8px!important;min-height:360px!important;padding:30px!important;text-align:center!important}
.vchat-frontend-app .vchat-contact-preview-empty>span{display:grid!important;place-items:center!important;width:48px!important;height:48px!important;border-radius:16px!important;background:#f2effb!important;color:#6554b8!important;font-size:22px!important}
.vchat-frontend-app .vchat-contact-preview-empty strong{font-size:12px!important;color:#302b48!important}
.vchat-frontend-app .vchat-contact-preview-empty p{max-width:260px!important;margin:0!important;font-size:8px!important;line-height:1.55!important;color:#8b8797!important}
.vchat-frontend-app .vchat-contact-preview-card>header{display:grid!important;grid-template-columns:auto 1fr auto!important;gap:12px!important;align-items:center!important;padding:18px!important;border-bottom:1px solid #f0edf5!important;background:linear-gradient(180deg,#fcfbff,#fff)!important}
.vchat-frontend-app .vchat-contact-preview-avatar{display:grid!important;place-items:center!important;width:52px!important;height:52px!important;border-radius:17px!important;background:#ece8f8!important;color:#6554b8!important;font-size:13px!important;font-weight:900!important;overflow:hidden!important}
.vchat-frontend-app .vchat-contact-preview-avatar img{width:100%!important;height:100%!important;object-fit:cover!important}
.vchat-frontend-app .vchat-contact-preview-card header small{font-size:7px!important;font-weight:900!important;color:#7c71b4!important;text-transform:uppercase!important;letter-spacing:.05em!important}
.vchat-frontend-app .vchat-contact-preview-card header h2{margin:2px 0!important;font-size:16px!important;line-height:1.1!important;color:#28223f!important}
.vchat-frontend-app .vchat-contact-preview-card header p{margin:0!important;font-size:8px!important;color:#8c879b!important}
.vchat-frontend-app .vchat-contact-preview-card header>button{width:32px!important;height:32px!important;padding:0!important;border:1px solid #e1ddec!important;border-radius:10px!important;background:#fff!important;color:#6554b8!important}
.vchat-frontend-app .vchat-contact-preview-actions{display:flex!important;gap:7px!important;padding:12px 16px!important;border-bottom:1px solid #f0edf5!important}
.vchat-frontend-app .vchat-contact-preview-actions button,.vchat-frontend-app .vchat-contact-preview-actions a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:32px!important;padding:7px 10px!important;border:1px solid #ddd7ec!important;border-radius:10px!important;background:#fff!important;color:#5c4da6!important;font-size:8px!important;font-weight:900!important;text-decoration:none!important}
.vchat-frontend-app .vchat-contact-preview-actions button:first-child{background:#6554b8!important;border-color:#6554b8!important;color:#fff!important}
.vchat-frontend-app .vchat-contact-preview-card>section{padding:15px 16px!important;border-bottom:1px solid #f0edf5!important}
.vchat-frontend-app .vchat-contact-preview-card>section>strong{display:block!important;margin-bottom:9px!important;font-size:9px!important;color:#332e49!important}
.vchat-frontend-app .vchat-contact-preview-card dl{margin:0!important}
.vchat-frontend-app .vchat-contact-preview-card dl>div{display:flex!important;justify-content:space-between!important;gap:10px!important;padding:6px 0!important}
.vchat-frontend-app .vchat-contact-preview-card dt,.vchat-frontend-app .vchat-contact-preview-card dd{margin:0!important;font-size:8px!important}
.vchat-frontend-app .vchat-contact-preview-card dt{color:#9691a3!important}
.vchat-frontend-app .vchat-contact-preview-card dd{max-width:62%!important;text-align:right!important;color:#484258!important;overflow-wrap:anywhere!important}
.vchat-frontend-app .vchat-contact-preview-chips{display:flex!important;gap:5px!important;flex-wrap:wrap!important}
.vchat-frontend-app .vchat-contact-preview-commercial>div{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
.vchat-frontend-app .vchat-contact-preview-commercial span{padding:9px!important;border-radius:11px!important;background:#f8f7fb!important}
.vchat-frontend-app .vchat-contact-preview-commercial small,.vchat-frontend-app .vchat-contact-preview-commercial b{display:block!important}
.vchat-frontend-app .vchat-contact-preview-commercial small{font-size:7px!important;color:#9a95aa!important}
.vchat-frontend-app .vchat-contact-preview-commercial b{margin-top:3px!important;font-size:8px!important;color:#3f3955!important;overflow-wrap:anywhere!important}
.vchat-frontend-app .vchat-contact-pagination{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:12px 15px!important;border-top:1px solid #f0edf5!important;background:#fcfbfd!important}
.vchat-frontend-app .vchat-contact-pagination>div{display:flex!important;align-items:center!important;gap:5px!important}
.vchat-frontend-app .vchat-contact-pagination button{min-width:30px!important;height:30px!important;padding:0 8px!important;border:1px solid #e1ddec!important;border-radius:9px!important;background:#fff!important;color:#625b74!important;font-size:8px!important;font-weight:800!important}
.vchat-frontend-app .vchat-contact-pagination button.is-active{background:#6554b8!important;border-color:#6554b8!important;color:#fff!important}
.vchat-frontend-app .vchat-contact-pagination em{font-size:8px!important;color:#9d98aa!important;font-style:normal!important}
@media(max-width:1180px){
 .vchat-frontend-app .vchat-contact-workspace{grid-template-columns:1fr!important}
 .vchat-frontend-app .vchat-contact-preview{position:static!important;display:none!important}
 .vchat-frontend-app .vchat-contact-list-item{grid-template-columns:minmax(220px,1.2fr) minmax(230px,1fr) auto!important}
 .vchat-frontend-app .vchat-contact-list-categories{display:none!important}
}
@media(max-width:760px){
 .vchat-frontend-app [data-vchat-panel="contacts"]{padding-left:0!important;padding-right:0!important}
 .vchat-frontend-app .vchat-contacts-heading{align-items:flex-start!important;padding:0 2px!important}
 .vchat-frontend-app .vchat-contacts-heading .vchat-heading-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
 .vchat-frontend-app .vchat-contact-overview{grid-template-columns:1fr 1fr!important;gap:8px!important}
 .vchat-frontend-app .vchat-contact-overview>button{padding:13px!important;border-radius:15px!important}
 .vchat-frontend-app .vchat-contact-overview strong{font-size:19px!important}
 .vchat-frontend-app .vchat-contact-toolbar{grid-template-columns:1fr!important;padding:9px!important;border-radius:15px!important}
 .vchat-frontend-app .vchat-contact-toolbar-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
 .vchat-frontend-app .vchat-contact-toolbar-actions select{width:100%!important;min-width:0!important}
 .vchat-frontend-app .vchat-contact-segments,.vchat-frontend-app .vchat-contact-category-strip{padding-left:1px!important;padding-right:1px!important}
 .vchat-frontend-app .vchat-contact-list-shell{border-radius:16px!important}
 .vchat-frontend-app .vchat-contact-list-head{padding:13px!important}
 .vchat-frontend-app .vchat-contact-list-item{display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important;padding:13px!important}
 .vchat-frontend-app .vchat-contact-list-primary{grid-column:1/2!important}
 .vchat-frontend-app .vchat-contact-list-context{grid-column:1/-1!important;grid-template-columns:repeat(3,1fr)!important;padding:9px!important;border-radius:12px!important;background:#f8f7fb!important}
 .vchat-frontend-app .vchat-contact-list-categories{display:flex!important;grid-column:1/-1!important}
 .vchat-frontend-app .vchat-contact-list-open{grid-column:2/3!important;grid-row:1/2!important;align-self:center!important;font-size:0!important;width:34px!important;padding:0!important}
 .vchat-frontend-app .vchat-contact-list-open:after{content:"›"!important;font-size:18px!important;line-height:1!important}
 .vchat-frontend-app .vchat-contact-pagination{flex-direction:column!important;align-items:stretch!important}
 .vchat-frontend-app .vchat-contact-pagination>div{justify-content:center!important}
}
