
/* Vchat Core 0.34 · Meta Connection Foundation */
.vchat-meta-foundation{display:grid;gap:16px;margin:0 0 20px}.vchat-meta-readiness{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid #dfdcef;border-radius:22px;background:linear-gradient(135deg,#fff 0%,#f7f5ff 100%)}.vchat-meta-readiness>div{display:flex;align-items:center;gap:14px;min-width:0}.vchat-meta-readiness small,.vchat-meta-readiness strong{display:block}.vchat-meta-readiness small{font-size:11px;color:#817c96;margin-bottom:4px}.vchat-meta-readiness strong{font-size:15px;color:#211e3b}.vchat-meta-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#211e3b;color:#fff;font-weight:800}.vchat-meta-diagnostics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.vchat-meta-diagnostics>div{padding:16px 18px;border:1px solid #e2dfef;border-radius:18px;background:#fff;min-width:0}.vchat-meta-diagnostics small,.vchat-meta-diagnostics strong,.vchat-meta-diagnostics span{display:block}.vchat-meta-diagnostics small{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#8b87a0}.vchat-meta-diagnostics strong{margin:6px 0 4px;font-size:14px;color:#26223d}.vchat-meta-diagnostics span{font-size:11px;color:#77728d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vchat-meta-channel-grid article{position:relative}.vchat-meta-channel-grid article.is-connected{border-color:#9cdec0;background:#f7fffb}.vchat-meta-channel-grid article.is-connected button{display:none}.vchat-meta-channel-grid article>em{position:absolute;right:16px;top:50%;transform:translateY(-50%)}.vchat-meta-channel-grid .is-wa{background:#e9fbf0!important;color:#178a4d!important}.vchat-meta-channel-grid .is-ig{background:#fff0f7!important;color:#c13a79!important}.vchat-meta-channel-grid .is-fb{background:#edf4ff!important;color:#2470d7!important}@media(max-width:900px){.vchat-meta-diagnostics{grid-template-columns:1fr}.vchat-meta-readiness{align-items:flex-start}.vchat-meta-channel-grid article>em{position:static;transform:none;margin-left:auto}}@media(max-width:640px){.vchat-meta-readiness{padding:16px;border-radius:18px}.vchat-meta-readiness .vchat-pill{flex:0 0 auto}.vchat-meta-diagnostics>div{padding:14px}.vchat-heading-row #vchat-meta-connect-all{width:100%}}


/* 0.36.2 Meta OAuth diagnostics */
.vchat-meta-oauth-debug{margin-top:14px;padding:16px 18px;border:1px solid rgba(89,73,164,.18);border-radius:18px;background:rgba(255,255,255,.72)}
.vchat-meta-oauth-debug header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.vchat-meta-oauth-debug header div{display:grid;gap:2px}.vchat-meta-oauth-debug header small{color:#8b87a6;font-size:11px;text-transform:uppercase;letter-spacing:.08em}.vchat-meta-oauth-debug header strong{color:#211e3b}.vchat-meta-oauth-debug header button{border:1px solid #ded9f2;background:#fff;color:#55479a;border-radius:10px;padding:8px 11px;font-weight:700;cursor:pointer}
.vchat-meta-debug-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.vchat-meta-debug-grid>div{min-width:0;padding:10px 12px;background:#f8f7fc;border-radius:12px}.vchat-meta-debug-grid small{display:block;color:#8b87a6;font-size:10px;text-transform:uppercase;letter-spacing:.07em;margin-bottom:5px}.vchat-meta-debug-grid code{display:block;white-space:normal;overflow-wrap:anywhere;color:#2d2948;font:600 11px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace}
@media(max-width:760px){.vchat-meta-debug-grid{grid-template-columns:1fr}.vchat-meta-oauth-debug header{align-items:flex-start;flex-direction:column}}

/* v0.36.14 — robust mobile selectors + non-redundant conversation actions */
.vchat-frontend-app .vchat-tag-selector .vchat-tag-option{
  width:100%!important;min-height:52px!important;margin:0!important;padding:10px 12px!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;
  border:1px solid #e1deee!important;border-radius:14px!important;background:#fbfaff!important;
  color:var(--vc-text)!important;text-align:left!important;box-shadow:none!important;cursor:pointer!important;
  touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important;
}
.vchat-frontend-app .vchat-tag-selector .vchat-tag-option.is-selected{
  border-color:rgba(85,71,154,.46)!important;background:#f1eeff!important;
  box-shadow:inset 0 0 0 1px rgba(85,71,154,.10)!important;
}
.vchat-frontend-app .vchat-tag-selector .vchat-tag-checkbox{
  box-sizing:border-box!important;display:grid!important;place-items:center!important;flex:0 0 22px!important;
  width:22px!important;height:22px!important;padding:0!important;border:2px solid #d6d2e7!important;
  border-radius:7px!important;background:#fff!important;color:transparent!important;font-size:11px!important;
  line-height:1!important;font-weight:950!important;pointer-events:none!important;
}
.vchat-frontend-app .vchat-tag-selector .vchat-tag-option.is-selected .vchat-tag-checkbox{
  border-color:var(--vc-purple)!important;background:var(--vc-purple)!important;color:#fff!important;
}
.vchat-frontend-app .vchat-tag-selector .vchat-tag-chip{
  display:inline-flex!important;align-items:center!important;width:auto!important;max-width:calc(100% - 32px)!important;
  margin:0!important;padding:6px 10px!important;border:1px solid color-mix(in srgb,var(--tag-color) 65%,#fff)!important;
  border-radius:999px!important;background:color-mix(in srgb,var(--tag-color) 8%,#fff)!important;
  color:var(--tag-color)!important;font-size:10px!important;font-weight:850!important;pointer-events:none!important;
}

.vchat-frontend-app .vchat-catalog-assignment-check{
  width:100%!important;min-width:0!important;min-height:52px!important;margin:0!important;padding:8px!important;
  display:grid!important;grid-template-columns:24px 10px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;
  border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;
  color:var(--vc-text)!important;text-align:left!important;cursor:pointer!important;touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
}
.vchat-frontend-app .vchat-catalog-assignment-check:hover,
.vchat-frontend-app .vchat-catalog-assignment-check.is-selected{background:#f5f2ff!important;border-color:#d8d1f5!important}
.vchat-frontend-app .vchat-catalog-assignment-check>i{
  box-sizing:border-box!important;display:grid!important;place-items:center!important;width:22px!important;height:22px!important;
  border:2px solid #d6d2e7!important;border-radius:7px!important;background:#fff!important;color:transparent!important;
  font-style:normal!important;font-size:11px!important;font-weight:950!important;
}
.vchat-frontend-app .vchat-catalog-assignment-check.is-selected>i{border-color:var(--vc-purple)!important;background:var(--vc-purple)!important;color:#fff!important}
.vchat-frontend-app .vchat-catalog-assignment-check>span{width:10px!important;height:34px!important;border-radius:999px!important;background:var(--item-color,#6554b8)!important}
.vchat-frontend-app .vchat-catalog-assignment-check>div{min-width:0!important}
.vchat-frontend-app .vchat-catalog-assignment-check strong,.vchat-frontend-app .vchat-catalog-assignment-check small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.vchat-frontend-app .vchat-catalog-assignment-list>article:not(.is-selected) select,
.vchat-frontend-app .vchat-catalog-assignment-list>article:not(.is-selected) input[type="radio"]{opacity:.45!important}
@media(max-width:760px){
  .vchat-frontend-app .vchat-tag-selector .vchat-tag-option{min-height:58px!important;padding:11px 12px!important}
  .vchat-frontend-app .vchat-catalog-assignment-check{min-height:58px!important;padding:9px 8px!important}
}

/* 0.36.16 — Notification Center: compact, closable, responsive and paginated */
.vchat-notification-backdrop{
  background:rgba(22,19,47,.46)!important;
  -webkit-backdrop-filter:blur(8px)!important;backdrop-filter:blur(8px)!important;
}
.vchat-notification-drawer{
  width:min(460px,calc(100vw - 24px))!important;height:min(760px,calc(100dvh - 28px))!important;
  top:14px!important;right:14px!important;bottom:auto!important;border:1px solid rgba(87,72,158,.14)!important;
  border-radius:26px!important;background:#fbfaff!important;box-shadow:0 32px 90px rgba(25,20,61,.28)!important;
}
.vchat-notification-drawer>header{
  min-height:auto!important;padding:20px 20px 16px!important;border-bottom:1px solid #e9e6f3!important;
  background:linear-gradient(180deg,#fff 0%,#fcfbff 100%)!important;
}
.vchat-notification-drawer>header>div{min-width:0!important}
.vchat-notification-drawer>header small{margin:0 0 4px!important;color:#867f9a!important;font-size:10px!important;font-weight:850!important;letter-spacing:.08em!important;text-transform:uppercase!important}
.vchat-notification-drawer>header strong{font-size:24px!important;letter-spacing:-.7px!important}
.vchat-notification-drawer>header span{display:block!important;margin-top:5px!important;color:#8c879c!important;font-size:11px!important;font-weight:600!important}
.vchat-notification-drawer>header button{
  flex:0 0 44px!important;width:44px!important;height:44px!important;border:1px solid #e3dff0!important;border-radius:14px!important;background:#f3f1fa!important;
  color:#5a49a3!important;box-shadow:none!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important;
}
.vchat-notification-drawer>header button svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important}
.vchat-notification-content{flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:#f8f7fc!important}
#vchat-notification-list{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;padding:14px 14px 8px!important;background:transparent!important}
.vchat-notification-row{
  grid-template-columns:42px minmax(0,1fr)!important;gap:12px!important;margin:0 0 9px!important;padding:14px!important;
  border:1px solid #e5e1ef!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 24px rgba(34,28,75,.045)!important;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease!important;touch-action:manipulation!important;
}
.vchat-notification-row:active{transform:scale(.988)!important}
.vchat-notification-row.is-unread{border-color:#cec5ee!important;background:linear-gradient(135deg,#f6f3ff,#fff)!important;box-shadow:0 10px 26px rgba(85,71,154,.09)!important}
.vchat-notification-type{width:42px!important;height:42px!important;border-radius:14px!important;background:#eeeafc!important;color:#5847a3!important;font-size:16px!important;font-weight:900!important}
.vchat-notification-row-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;min-width:0!important}
.vchat-notification-row-head strong{min-width:0!important;color:#26213f!important;font-size:13px!important;font-weight:850!important;line-height:1.35!important}
.vchat-notification-row-head i{flex:0 0 auto!important;padding:4px 7px!important;border-radius:999px!important;background:#5a49a3!important;color:#fff!important;font-size:8px!important;font-style:normal!important;font-weight:900!important;letter-spacing:.03em!important;text-transform:uppercase!important}
.vchat-notification-row p{margin:5px 0 7px!important;color:#716c81!important;font-size:11px!important;line-height:1.5!important}
.vchat-notification-row small{color:#a09bad!important;font-size:9px!important;font-weight:650!important}
.vchat-notification-more-wrap{flex:0 0 auto!important;padding:10px 14px 14px!important;border-top:1px solid #e8e4f2!important;background:rgba(251,250,255,.96)!important}
.vchat-notification-more-wrap[hidden]{display:none!important}
#vchat-notification-more{width:100%!important;min-height:46px!important;margin:0!important;border:1px solid #d8d1ed!important;border-radius:14px!important;background:#fff!important;color:#5948a2!important;font-size:11px!important;font-weight:850!important;cursor:pointer!important;touch-action:manipulation!important}
#vchat-notification-more:disabled{opacity:.6!important;cursor:wait!important}
.vchat-notification-more-wrap small{display:block!important;margin-top:7px!important;color:#9994a7!important;font-size:9px!important;text-align:center!important}
.vchat-notification-empty,.vchat-notification-loading{min-height:260px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;padding:34px 20px!important;text-align:center!important;color:#716c82!important}
.vchat-notification-empty>span{width:52px!important;height:52px!important;display:grid!important;place-items:center!important;margin-bottom:14px!important;border-radius:17px!important;background:#eeeafc!important;color:#5948a2!important;font-size:20px!important;font-weight:900!important}
.vchat-notification-empty strong{color:#292440!important;font-size:15px!important}.vchat-notification-empty p{max-width:280px!important;margin:6px 0 0!important;color:#8b8698!important;font-size:11px!important;line-height:1.5!important}
.vchat-notification-loading{gap:12px!important}.vchat-notification-loading i{width:28px!important;height:28px!important;border:3px solid #ddd7ee!important;border-top-color:#5a49a3!important;border-radius:50%!important;animation:vchat-notification-spin .8s linear infinite!important}.vchat-notification-loading span{font-size:11px!important;font-weight:750!important}
@keyframes vchat-notification-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){
  .vchat-notification-drawer{
    width:calc(100vw - 20px)!important;height:min(82dvh,760px)!important;top:auto!important;right:10px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;
    border-radius:28px!important;transform:translateY(calc(100% + 28px))!important;opacity:0!important;
  }
  .vchat-notification-drawer.is-open{transform:translateY(0)!important;opacity:1!important}
  .vchat-notification-drawer>header{padding:18px 18px 14px!important}.vchat-notification-drawer>header strong{font-size:22px!important}.vchat-notification-drawer>header button{width:46px!important;height:46px!important;flex-basis:46px!important}
  #vchat-notification-list{padding:12px 12px 8px!important}.vchat-notification-more-wrap{padding:10px 12px 12px!important}
  .vchat-notification-row{grid-template-columns:40px minmax(0,1fr)!important;padding:13px!important;border-radius:17px!important}.vchat-notification-type{width:40px!important;height:40px!important}
}
@media(max-width:390px){.vchat-notification-drawer{width:calc(100vw - 12px)!important;right:6px!important;bottom:max(6px,env(safe-area-inset-bottom))!important;border-radius:24px!important}.vchat-notification-drawer>header{padding:16px 15px 13px!important}.vchat-notification-drawer>header span{font-size:10px!important}}

/* 0.36.17 — Notification management: filters, selection and bulk actions */
.vchat-notification-toolbar{flex:0 0 auto!important;padding:12px 14px 10px!important;border-bottom:1px solid #e9e5f2!important;background:linear-gradient(180deg,#fbfaff,#f7f5fc)!important}
.vchat-notification-filters{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;padding:4px!important;border:1px solid #e2ddec!important;border-radius:14px!important;background:#eeebf7!important}
.vchat-notification-filters button{min-height:36px!important;margin:0!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#777188!important;font-size:10px!important;font-weight:850!important;cursor:pointer!important;touch-action:manipulation!important}
.vchat-notification-filters button.is-active{background:#fff!important;color:#55449d!important;box-shadow:0 4px 12px rgba(62,49,121,.09)!important}
.vchat-notification-tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:8px!important}
.vchat-notification-tools button,.vchat-notification-selection button{min-height:36px!important;margin:0!important;padding:7px 9px!important;border:1px solid #ddd7eb!important;border-radius:11px!important;background:#fff!important;color:#5a4a9d!important;font-size:9px!important;font-weight:850!important;line-height:1.15!important;cursor:pointer!important;touch-action:manipulation!important}
.vchat-notification-tools button.is-active{border-color:#bdb3df!important;background:#eee9ff!important;color:#49388f!important}
.vchat-notification-tools button.is-danger,.vchat-notification-selection button.is-danger{border-color:#efc6cf!important;background:#fff6f8!important;color:#a73e55!important}
.vchat-notification-selection{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-top:9px!important;padding:9px 10px!important;border:1px solid #d9d2eb!important;border-radius:13px!important;background:#fff!important}
.vchat-notification-selection[hidden]{display:none!important}
.vchat-notification-selection strong{flex:0 0 auto!important;color:#2f294b!important;font-size:10px!important;font-weight:900!important}
.vchat-notification-selection>div{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:5px!important}
.vchat-notification-selection button{min-height:31px!important;padding:6px 8px!important;font-size:8px!important}
.vchat-notification-row{display:block!important;padding:0!important;overflow:hidden!important}
.vchat-notification-row:active{transform:none!important}
.vchat-notification-open{width:100%!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:12px!important;align-items:start!important;margin:0!important;padding:14px!important;border:0!important;background:transparent!important;text-align:left!important;color:inherit!important;cursor:pointer!important;touch-action:manipulation!important}
.vchat-notification-check{display:none!important;position:absolute!important;z-index:2!important;left:10px!important;top:50%!important;transform:translateY(-50%)!important;width:30px!important;height:30px!important;margin:0!important;padding:0!important;border:1px solid #cfc7e7!important;border-radius:10px!important;background:#fff!important;box-shadow:0 3px 10px rgba(50,39,100,.08)!important;cursor:pointer!important;touch-action:manipulation!important}
.vchat-notification-check span{width:14px!important;height:14px!important;display:block!important;margin:auto!important;border:2px solid #b7adcf!important;border-radius:5px!important;background:#fff!important;position:relative!important}
.vchat-notification-check.is-selected span{border-color:#5a49a3!important;background:#5a49a3!important}
.vchat-notification-check.is-selected span:after{content:'✓'!important;position:absolute!important;inset:-4px 0 0!important;color:#fff!important;font-size:10px!important;font-weight:900!important;text-align:center!important}
#vchat-notification-list.is-selecting .vchat-notification-row{position:relative!important}
#vchat-notification-list.is-selecting .vchat-notification-check{display:grid!important;place-items:center!important}
#vchat-notification-list.is-selecting .vchat-notification-open{padding-left:52px!important}
@media(max-width:700px){
  .vchat-notification-toolbar{padding:10px 12px 9px!important}
  .vchat-notification-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .vchat-notification-tools button{min-height:40px!important;font-size:9px!important}
  .vchat-notification-selection{align-items:flex-start!important;flex-direction:column!important}
  .vchat-notification-selection>div{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .vchat-notification-selection button{min-height:36px!important}
  .vchat-notification-open{grid-template-columns:40px minmax(0,1fr)!important;padding:13px!important}
  #vchat-notification-list.is-selecting .vchat-notification-open{padding-left:50px!important}
}

/* Vchat 0.36.23 · Meta reconnect affordance */
.vchat-meta-channel-grid article{grid-template-columns:46px minmax(0,1fr) auto auto!important;cursor:default!important}
.vchat-meta-channel-grid article>em{position:static!important;right:auto!important;top:auto!important;transform:none!important;pointer-events:none!important;justify-self:end!important}
.vchat-meta-channel-grid article.is-attention{border-color:#ead8a8!important;background:linear-gradient(135deg,#fffdf7,#fffaf0)!important}
.vchat-meta-channel-grid article.is-attention button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:88px!important;min-height:38px!important;border-color:#cfc6ee!important;background:#fff!important;color:#55479a!important;cursor:pointer!important;position:relative!important;z-index:2!important}
.vchat-meta-channel-grid article.is-attention button:hover{background:#f3efff!important;border-color:#ad9de2!important}
.vchat-meta-channel-grid article.is-attention .vchat-meta-status-badge{background:#fff4d8!important;border-color:#ecd89c!important;color:#8d6a18!important}
.vchat-meta-channel-grid article[data-meta-reconnect]{cursor:pointer!important}
@media(max-width:900px){.vchat-meta-channel-grid article{grid-template-columns:46px minmax(0,1fr) auto!important}.vchat-meta-channel-grid article>em{grid-column:2/3;justify-self:start!important;margin-top:6px!important}.vchat-meta-channel-grid article button{grid-column:3;grid-row:1/3}}
@media(max-width:560px){.vchat-meta-channel-grid article{grid-template-columns:44px minmax(0,1fr)!important;align-items:start!important}.vchat-meta-channel-grid article button{grid-column:1/-1!important;grid-row:auto!important;width:100%!important;margin-top:4px!important;min-height:44px!important}.vchat-meta-channel-grid article>em{grid-column:2!important;grid-row:auto!important}.vchat-meta-channel-grid article[data-meta-reconnect]{padding-bottom:14px!important}}
