/* Live (database-driven) customer workspace */
.sidebar{overflow-y:auto}
.live-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:28px 16px}
.live-empty>svg{width:40px;height:40px;color:var(--muted)}
.live-empty h2{margin:6px 0 0}
.live-empty p{max-width:420px}
.metrics.two{grid-template-columns:repeat(2,1fr)}
.live-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.dashboard-actions a{min-height:72px;border-radius:10px;background:#f7f9fd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-weight:600;font-size:12px;text-align:center;padding:8px}
.dashboard-actions a svg{color:var(--red)}
.setup-steps{display:flex;flex-direction:column;margin-top:12px}
.setup-step{display:grid;grid-template-columns:22px 1fr 18px;gap:10px;align-items:center;padding:10px 4px;border-bottom:1px solid var(--line);font-weight:600}
.setup-step svg{width:18px;height:18px;color:var(--muted)}
.setup-step.done{color:var(--muted);text-decoration:line-through}
.setup-step.done svg:first-child{color:var(--green)}
.ledger-row>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.ledger-row small{color:var(--muted)}
.info-box{margin:10px 0}
.call-submit{margin-top:14px}
.tabs.chips[data-filter-group]{margin:0 0 10px}
.contact-row .unread{font-style:normal;background:var(--red);color:#fff;border-radius:10px;min-width:20px;height:20px;display:grid;place-items:center;font-size:11px;font-weight:700}
.contact-row.selected{background:var(--pink)}

/* Chat */
.live-chat{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px;align-items:start}
.live-chat .chat-list-panel{display:block;margin:0;border-radius:var(--radius)}
.live-chat .chat-list-panel .search{margin:10px 0}
.live-chat .chat-panel{margin:0;border-radius:var(--radius);display:flex;flex-direction:column;min-height:520px}
.live-chat .chat-top{grid-template-columns:auto auto 1fr auto}
.live-chat .chat-top h2{margin:0}.live-chat .chat-top p{margin:0}
.live-chat .chat-back{display:none}
.live-chat .messages{flex:1;min-height:380px;max-height:60vh;overflow-y:auto;margin:12px 0}
.chat-empty-note{text-align:center;margin:auto}
.bubble.failed p{outline:1px solid var(--red)}

/* Header user menu */
.user-menu{position:relative}
button.user{border:0;background:transparent;padding:0;text-align:left;cursor:pointer}
.user-dropdown{position:absolute;right:0;top:calc(100% + 8px);min-width:190px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:6px;z-index:40;display:flex;flex-direction:column}
.user-dropdown[hidden]{display:none}
.user-dropdown a,.user-dropdown button{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;border:0;background:none;font-weight:600;color:var(--navy);text-align:left;width:100%}
.user-dropdown a:hover,.user-dropdown button:hover{background:var(--soft)}
.user-dropdown svg{width:17px}

/* Dialog lists */
.dialog-list{display:flex;flex-direction:column;max-height:55vh;overflow:auto;margin:10px 0}
.dialog-list>div{padding:10px 0;border-bottom:1px solid var(--line)}
.dialog-list b{display:block}
.dialog-list small{color:var(--muted)}
.dialog-list .unread-item b:before{content:"";display:inline-block;width:8px;height:8px;background:var(--red);border-radius:50%;margin-right:8px}
.dialog-fields{display:flex;flex-direction:column;gap:12px;margin:14px 0}
.detail-grid{display:grid;grid-template-columns:130px 1fr;gap:8px 12px;margin:12px 0}
.detail-grid dt{color:var(--muted)}.detail-grid dd{margin:0;word-break:break-word}

/* Mobile "More" sheet */
.more-nav-sheet{border:0;border-radius:18px 18px 0 0;padding:18px;width:100%;max-width:100%;margin:auto 0 0;position:fixed;bottom:0;max-height:80vh}
.more-nav-sheet::backdrop{background:rgba(5,15,45,.5)}
.more-nav-sheet .section-title{position:relative}
.more-nav-sheet .dialog-close{position:static}
.more-nav-sheet nav{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.more-nav-sheet nav a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;border:1px solid var(--line);border-radius:12px;font-size:12px;font-weight:600;text-align:center}
.more-nav-sheet nav a.active{border-color:var(--red);color:var(--red);background:var(--pink)}
.bottom-nav button{font:inherit;font-size:11px;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:62px;color:#52658f}
.bottom-nav button svg{width:26px;height:26px}
.bottom-nav button.active{color:var(--red);position:relative}.bottom-nav button.active:before{content:"";position:absolute;top:0;left:10px;right:10px;height:3px;background:var(--red);border-radius:4px}
.settings-account .btn{width:100%;margin-top:8px}

@media(max-width:1100px){
  .live-two{grid-template-columns:1fr}
}
@media(max-width:760px){
  .metrics.two{grid-template-columns:1fr 1fr}
  .live-chat{grid-template-columns:1fr}
  .live-chat.has-active .chat-list-panel{display:none}
  .live-chat:not(.has-active) .chat-placeholder{display:none}
  .live-chat .chat-back{display:inline-flex}
  .live-chat .chat-panel{min-height:0}
  .live-chat .messages{max-height:none;min-height:50vh}
  .call-row{grid-template-columns:auto 1fr auto;row-gap:6px}
  .call-row time{grid-column:2}
  .user-dropdown{right:-6px}
  .help{display:none}
  .dashboard-actions{grid-template-columns:repeat(4,1fr)}
  .group-grid{grid-template-columns:1fr}
  .detail-grid{grid-template-columns:1fr}
}
.live-chat .chat-top{display:flex;align-items:center;gap:12px}
.live-chat .chat-top>div{flex:1;min-width:0}
@media(max-width:760px){
  .topbar:before,.topbar:after{content:none!important;display:none!important}
  .topbar,.workspace-topbar{height:72px;min-height:72px;padding-top:10px;align-items:center}
}

/* UI/UX audit fixes */
[hidden]{display:none!important}
.two-col>*,.form-grid>*,.auth-layout>*,.settings-grid>*,.desktop-main-aside>*,.assistant-layout>*,.field{min-width:0}
.field input,.field select,.field textarea{width:100%;max-width:100%}
.search input{height:100%;min-height:40px}
.mini-activity time,.mini-activity small,.contact-row time,.call-row time{font-size:11px}
.login-links button{min-height:40px;padding:8px 12px}
body[data-page="premium"] .plan-banner+.card,body[data-page="premium-usage"] .plan-banner+.card{background-image:none!important;padding-right:18px!important;min-height:0!important}
.live-empty-row{padding:0}
.btn{transition:filter .15s ease,transform .1s ease,background-color .15s ease}
.btn:hover:not(:disabled){filter:brightness(.96)}
.btn:active:not(:disabled){transform:translateY(1px)}
.btn:disabled{opacity:.6;cursor:not-allowed}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media(max-width:1100px){.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .tools-grid{grid-template-columns:1fr}
  .plan-grid{grid-template-columns:1fr}
  .plan-grid .card{min-height:0}
  body[data-page="home"] .top-actions .legal-start,body[data-page="onboarding"] .top-actions .legal-start{display:inline-flex!important;min-height:38px;padding:0 14px;font-size:13px}
  .brand small{display:none}
}
@media(max-width:760px){#toast{left:16px;right:16px;bottom:calc(92px + env(safe-area-inset-bottom));text-align:center}}

/* Login / sign-up card */
.auth-card{align-self:start}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:var(--soft);border:1px solid var(--line);border-radius:12px;margin-bottom:22px}
.auth-tabs button{border:0;background:transparent;border-radius:9px;min-height:44px;font-weight:700;color:var(--muted);cursor:pointer;transition:background-color .15s ease,color .15s ease}
.auth-tabs button.active{background:#fff;color:var(--red);box-shadow:0 2px 8px rgba(19,42,93,.08)}
.auth-panel h2{font-size:24px;margin-bottom:4px}
.auth-panel>p{margin-bottom:18px}
.auth-form{display:flex;flex-direction:column;gap:14px}
.auth-form .btn,.auth-panel .form-grid>.btn{width:100%;min-height:48px;font-size:15px}
.auth-switch{text-align:center;margin:18px 0 0;font-size:14px}
.auth-switch button{border:0;background:none;padding:4px;color:var(--red);font-weight:700;cursor:pointer}
.auth-switch button:hover{text-decoration:underline}
.auth-error{background:#fff1f3;border:1px solid #ffc9d2;color:#c40020;border-radius:10px;padding:11px 14px;margin:0 0 14px;font-weight:600;font-size:13px}
.auth-panel .check{display:flex;gap:10px;align-items:flex-start;font-weight:500;line-height:1.45}
.auth-panel .check input{margin-top:3px;width:18px;height:18px;flex:0 0 auto;accent-color:var(--red)}
.auth-panel .check a{color:var(--red);font-weight:600}
.password-wrap{position:relative;display:block}
.password-wrap input{width:100%;padding-right:64px}
.password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:none;color:var(--muted);font-weight:700;font-size:12px;padding:8px;cursor:pointer}
.password-toggle:hover{color:var(--red)}
@media(max-width:760px){
  body[data-page="login"] .auth-layout{display:flex;flex-direction:column}
  body[data-page="login"] .auth-card{order:-1;margin-bottom:18px}
  body[data-page="login"] .auth-layout .page-hero{margin-top:6px}
  body[data-page="login"] .auth-panel .form-grid{grid-template-columns:1fr}
}

/* PromoChat in-app call */
.pc-call-stage{display:flex;justify-content:center;padding:32px 16px}
.pc-call-card{width:100%;max-width:420px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:36px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.pc-call-avatar{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--blue)}
.pc-call-avatar svg{width:40px;height:40px}
.pc-call-card h1{margin:6px 0 0;font-size:24px}
.pc-call-state{margin:0;color:var(--muted);font-weight:600}
.pc-call-timer{font-size:20px;font-variant-numeric:tabular-nums}
.pc-call-controls{display:flex;gap:18px;margin:18px 0 6px}
.pc-call-btn{min-width:60px;height:60px;border-radius:30px;border:0;display:inline-grid;place-items:center;padding:0 18px;color:#fff;font-weight:700;cursor:pointer;background:var(--navy)}
.pc-call-btn.accept{background:var(--green)}
.pc-call-btn.end{background:var(--red)}
.pc-call-btn.mute.is-off{background:var(--muted)}
.pc-call-btn:disabled{opacity:.6;cursor:default}
.pc-call-note{font-size:13px;color:var(--muted);margin:0;max-width:340px}
.pc-call-note.is-error{color:var(--red)}
.pc-incoming-call{position:fixed;z-index:1000;left:50%;top:16px;transform:translateX(-50%);width:min(420px,calc(100% - 32px));display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px 14px}
.pc-incoming-call div{flex:1;min-width:0}
.pc-incoming-call b,.pc-incoming-call small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-incoming-call small{color:var(--muted)}
.pc-incoming-call .pc-call-btn{height:44px;min-width:0;padding:0 14px;border-radius:22px}

/* PromoChat person-to-person chat: ticks, presence, invite */
.bubble.mine [data-tick]{font-weight:600}
.bubble.mine [data-tick="read"]{color:var(--blue)}
.bubble.mine [data-tick="failed"]{color:var(--red)}
.peer-online{color:var(--green);font-weight:600}
.contact-row.has-unread b{font-weight:800}
.chat-notice{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 0;padding:8px 12px;border-radius:10px;background:var(--soft);color:var(--muted);font-size:13px}
.chat-notice svg{width:16px;height:16px}
.link-button{border:0;background:none;padding:0;color:var(--red);font:inherit;font-weight:700;cursor:pointer}
.chat-invite{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px dashed var(--line);border-radius:14px;background:var(--soft)}
.chat-invite>svg{flex:none;color:var(--muted)}
.chat-invite p{margin:4px 0 10px;color:var(--muted)}
.invite-actions{display:flex;flex-wrap:wrap;gap:8px}
.promochat-badge{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:999px;font-size:11px;font-style:normal;font-weight:700}
.promochat-badge.on{background:#e7f8ee;color:#12803c}
.promochat-badge.off{background:var(--soft);color:var(--muted)}
.promochat-status{margin:8px 0;font-weight:600}
.promochat-status.on{color:var(--green)}.promochat-status.off{color:var(--muted)}
.contact-row .avatar svg,.chat-top .avatar svg,.bubble .avatar svg{width:18px;height:18px}
/* Phone: an open chat fills the screen between the top bar and bottom nav, composer always visible */
@media(max-width:760px){
  body:has(.live-chat.has-active) .desktop-heading{display:none}
  .live-chat.has-active .chat-panel{height:calc(100dvh - 190px - env(safe-area-inset-bottom));min-height:360px;display:flex;flex-direction:column}
  .live-chat.has-active .messages{flex:1;min-height:0;max-height:none}
  .live-chat.has-active .chat-top .chat-back{width:40px;height:40px;padding:0}
  .chat-invite{padding:12px}
  .chat-invite .invite-actions .btn{flex:1 1 auto;justify-content:center}
}
/* (desktop chat height now comes from the full-height chat layout below) */

/* ---------- Smooth navigation between workspace pages ---------- */
/* .content{margin:auto} also centred short pages vertically inside the grid, so the
   heading jumped between ~90px and ~290px from page to page. Pin content to the top. */
.app-shell:not(.public)>.content{margin-block:0}
/* One page-title style everywhere (desktop-heading pages match the ref-heading pages). */
.desktop-heading{margin:2px 0 24px}
.desktop-heading h1{font-size:32px;line-height:1.15;margin:6px 0}
@media(max-width:760px){.desktop-heading{margin-bottom:18px}.desktop-heading h1{font-size:25px}}

/* Cross-document view transitions (Chrome/Edge 126+, Safari 18.2+; others just navigate):
   the top bar, sidebar and bottom nav stay put, only the page body fades. */
@view-transition{navigation:auto}
.workspace-topbar{view-transition-name:pc-topbar}
.app-shell:not(.public)>.sidebar{view-transition-name:pc-sidebar}
.bottom-nav{view-transition-name:pc-bottomnav}
.app-shell:not(.public)>.content{view-transition-name:pc-main}
::view-transition-group(pc-topbar),::view-transition-group(pc-sidebar),::view-transition-group(pc-bottomnav),::view-transition-group(pc-main){animation:none}
::view-transition-old(pc-topbar),::view-transition-old(pc-sidebar),::view-transition-old(pc-bottomnav){animation:none;opacity:0}
::view-transition-new(pc-topbar),::view-transition-new(pc-sidebar),::view-transition-new(pc-bottomnav){animation:none}
::view-transition-old(root),::view-transition-new(root){animation:none}
::view-transition-old(pc-main){animation:pc-page-out .12s ease-in both}
::view-transition-new(pc-main){animation:pc-page-in .22s cubic-bezier(.2,.7,.2,1) both}
@keyframes pc-page-out{to{opacity:0}}
@keyframes pc-page-in{from{opacity:0;transform:translateY(6px)}}
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}}

/* Instant feedback while the next page loads: a thin progress bar under the top bar. */
.nav-progress{position:fixed;left:0;right:0;top:0;height:3px;z-index:2000;pointer-events:none;overflow:hidden;opacity:0;transition:opacity .15s}
.nav-progress:before{content:"";position:absolute;inset:0;width:40%;background:linear-gradient(90deg,transparent,var(--red),transparent);animation:pc-progress 1s ease-in-out infinite}
body.is-navigating .nav-progress{opacity:1;transition-delay:.12s}
@keyframes pc-progress{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
.sidebar a,.bottom-nav a{transition:background-color .15s,color .15s}
/* Call log rows inside a chat ("📞 Missed voice call") */
.bubble.system{justify-content:center;max-width:none;width:100%}
.bubble.system p{background:var(--soft);color:var(--navy);border:1px solid var(--line);border-radius:12px;padding:6px 12px;font-size:13px;text-align:center;max-width:80%}
.bubble.system small{display:block;margin-top:2px;color:var(--muted);font-size:11px}
/* Call screen extras: initials avatar with a pulse while ringing, number, muted chip, after-call actions */
.pc-call-avatar.has-initials{font-size:30px;font-weight:800;color:var(--red);background:var(--pink)}
.pc-call-stage:not(.is-ended) .pc-call-avatar{animation:pc-pulse 1.8s ease-out infinite}
@keyframes pc-pulse{0%{box-shadow:0 0 0 0 rgba(239,10,37,.25)}70%{box-shadow:0 0 0 18px rgba(239,10,37,0)}100%{box-shadow:0 0 0 0 rgba(239,10,37,0)}}
.pc-call-number{margin:-4px 0 0;color:var(--muted);font-size:14px}
.pc-call-number:empty{display:none}
.pc-call-muted{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:12px;font-weight:700}
.pc-call-muted[hidden]{display:none}
.pc-call-muted svg{width:14px;height:14px}
.pc-call-after{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:6px}
.pc-call-after[hidden]{display:none}
.pc-incoming-avatar{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--pink);color:var(--red);font-weight:800}
@media(prefers-reduced-motion:reduce){.pc-call-stage .pc-call-avatar{animation:none}}

/* ---------- Chat page: full-height app layout (like WhatsApp Web) ----------
   No page title or footer; the chat list and the message thread each scroll inside
   their own panel, the page itself never scrolls, and the composer stays at the bottom. */
@media(min-width:761px){
  body[data-page="chat"] .app-shell:not(.public)>.content{height:calc(100dvh - 68px);padding:16px 22px;display:flex;flex-direction:column;overflow:hidden}
  body[data-page="chat"] .content>.desktop-heading,body[data-page="chat"] .page-footer{display:none}
  body[data-page="chat"] .live-chat{flex:1;min-height:0;grid-template-columns:minmax(280px,340px) minmax(0,1fr);align-items:stretch}
  body[data-page="chat"] .live-chat .chat-list-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding-bottom:8px}
  body[data-page="chat"] .live-chat .chat-list-panel .section-title{flex:none}
  body[data-page="chat"] .live-chat .chat-list-panel .search{flex:none}
  body[data-page="chat"] .live-chat .chat-list-panel [data-live-list]{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin-right:-8px;padding-right:8px}
  body[data-page="chat"] .live-chat .chat-panel{min-height:0;height:100%;overflow:hidden}
  body[data-page="chat"] .live-chat .chat-top,body[data-page="chat"] .live-chat .chat-notice,body[data-page="chat"] .live-chat .composer,body[data-page="chat"] .live-chat .chat-invite{flex:none}
  body[data-page="chat"] .live-chat .messages{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;margin:10px 0}
  body[data-page="chat"] .live-chat .chat-placeholder{justify-content:center}
}
/* Phone: the open chat already fills the screen; drop the footer under it too. */
@media(max-width:760px){body:has(.live-chat.has-active) .page-footer{display:none}}
@media(min-width:761px){body[data-page="chat"] .app-shell:not(.public)>.content{max-width:none}}
/* Chat list rows: one-line preview with an ellipsis, like WhatsApp */
.live-chat .chat-list-panel .contact-row>span:nth-child(2){min-width:0}
.live-chat .chat-list-panel .contact-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-chat .chat-list-panel .contact-row b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-chat .chat-list-panel .contact-row{grid-template-columns:45px minmax(0,1fr) auto 20px}
.live-chat .chat-list-panel .contact-row>span:nth-child(2){overflow:hidden}
.live-chat .chat-list-panel .contact-row>span:nth-child(2)>*{min-width:0;max-width:100%}

/* ---------- PromoChat video call ---------- */
.pc-call-info{display:flex;flex-direction:column;align-items:center;gap:10px}
.pc-call-btn.camera.is-off{background:var(--muted)}
.pc-call-btn svg{width:24px;height:24px}
.pc-call-stage.is-video{position:fixed;inset:0;z-index:1500;padding:0;display:block;background:#0b1020}
.pc-video-layer{position:absolute;inset:0;overflow:hidden}
.pc-video-layer[hidden]{display:none}
.pc-remote-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#0b1020;opacity:0;transition:opacity .3s}
.pc-call-stage.has-remote-video:not(.remote-camera-off) .pc-remote-video{opacity:1}
/* Your camera fills the screen while it rings, then shrinks into the corner */
.pc-local-video{position:absolute;z-index:2;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1);background:#111827;transition:inset .35s ease,width .35s ease,height .35s ease,border-radius .35s ease}
.pc-call-stage.has-remote-video .pc-local-video{inset:auto 16px 128px auto;width:clamp(96px,22vw,200px);height:auto;aspect-ratio:3/4;border-radius:14px;border:2px solid rgba(255,255,255,.75);box-shadow:0 10px 28px rgba(0,0,0,.45)}
.pc-call-stage.is-rear-camera .pc-local-video{transform:none}
.pc-call-stage.local-camera-off .pc-local-video{display:none}
.pc-call-stage.is-video .pc-call-card{position:relative;z-index:3;max-width:none;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;justify-content:space-between;padding:32px 16px calc(28px + env(safe-area-inset-bottom));color:#fff;background:linear-gradient(rgba(0,0,0,.5),transparent 28%,transparent 68%,rgba(0,0,0,.6))}
.pc-call-stage.is-video .pc-call-card h1,.pc-call-stage.is-video .pc-call-timer{color:#fff}
.pc-call-stage.is-video .pc-call-number,.pc-call-stage.is-video .pc-call-state{color:rgba(255,255,255,.85)}
.pc-call-stage.is-video .pc-call-info{text-shadow:0 1px 4px rgba(0,0,0,.6)}
.pc-call-stage.is-video.has-remote-video:not(.remote-camera-off) .pc-call-avatar{display:none}
.pc-call-stage.is-video .pc-call-note:not(.is-error){display:none}
.pc-call-stage.is-video .pc-call-note.is-error{color:#fff;background:rgba(239,10,37,.85);padding:8px 12px;border-radius:10px}
.pc-call-stage.is-video .pc-call-controls{margin:0;padding:12px 18px;border-radius:44px;background:rgba(0,0,0,.35);backdrop-filter:blur(10px)}
.pc-call-stage.is-video .pc-call-btn.mute:not(.is-off),.pc-call-stage.is-video .pc-call-btn.camera:not(.is-off),.pc-call-stage.is-video .pc-call-btn.flip{background:rgba(255,255,255,.18)}
.pc-call-stage.is-video .pc-call-muted{background:rgba(0,0,0,.45);color:#fff}
/* Voice/video buttons side by side in the chat header */
.chat-call-actions{display:flex;gap:8px}
@media(prefers-reduced-motion:reduce){.pc-local-video{transition:none}}
html.pc-in-video,html.pc-in-video body{overflow:hidden}
.live-chat .chat-top>.chat-call-actions{flex:none;margin-left:auto}
.pc-ai-transcript{width:min(560px,90%);max-height:180px;overflow:auto;margin:12px auto;padding:10px;border-radius:10px;background:#f6f8fc;text-align:left;font-size:13px}.pc-ai-transcript:empty{display:none}.pc-ai-transcript p{margin:5px 0}.pc-ai-transcript b{color:#5a34b8}.pc-ai-call .pc-call-note.is-error{color:#b4233a}

/* Add Funds: where to pay (Admin › Wallet & Recharges). */.pay-details{margin:0 0 14px;align-items:flex-start}.pay-details dl{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;margin:8px 0 4px}.pay-details dt{color:#60719e}.pay-details dd{margin:0;font-weight:700;word-break:break-all}.pay-details small{display:block;color:#60719e}
/* AI Staff call: icon buttons like the person-to-person call; the Mute/End words stay for screen readers. */
.pc-ai-call .pc-call-btn small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pc-ai-call .pc-call-btn{position:relative}
