:root{color-scheme:light;font-family:Avenir Next,Century Gothic,Segoe UI,sans-serif;--bg: linear-gradient(135deg, #fff5eb 0%, #f4f9ff 100%);--panel: #ffffff;--text: #1d2433;--muted: #667085;--brand: #0f9d6e;--brand-strong: #0a7b57;--line: #d7dee9;--inbound: #f4f7fb;--outbound: #dff7ec;--topbar-height: 74px;--app-height: 100vh;--keyboard-inset: 0px;--viewport-offset-top: 0px}@supports (height: 100dvh){:root{--app-height: 100dvh}}*{box-sizing:border-box}html,body{height:100%;overscroll-behavior:none}body{margin:0;min-height:var(--app-height);background:var(--bg);color:var(--text);overflow:hidden}a{color:inherit;text-decoration:none}.crm-shell{display:grid;grid-template-columns:320px minmax(0,1fr);height:var(--app-height);min-height:var(--app-height);overflow:hidden;overscroll-behavior:contain}.crm-sidebar{display:flex;flex-direction:column;min-height:0;overflow:hidden;border-right:1px solid var(--line);background:#ffffffbf;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.crm-title-bar{display:flex;align-items:center;justify-content:space-between;gap:.6rem;height:var(--topbar-height);padding:0 .78rem 0 1rem;border-bottom:1px solid #1f2a38;background:#111b21;color:#f8fafc}.crm-title-wrap{min-width:0;display:grid;gap:.12rem}.crm-title{margin:0;font-size:1.15rem;letter-spacing:.02em}.crm-user-pill{margin:0;font-size:.72rem;font-weight:600;color:#9fb0c2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-menu{position:relative}.sidebar-menu-toggle{width:36px;height:36px;border:none;border-radius:999px;background:transparent;color:#d0d8e2;cursor:pointer;display:grid;place-items:center}.sidebar-menu-toggle:hover{background:#ffffff24}.sidebar-menu-toggle svg{width:17px;height:17px;fill:currentColor}.sidebar-menu-dropdown{position:absolute;right:0;top:calc(100% + .42rem);z-index:40;min-width:220px;border:1px solid #dbe4f0;border-radius:12px;background:#fff;box-shadow:0 18px 44px #0f172a2e;padding:.3rem;display:grid;gap:.2rem}.sidebar-menu-item{width:100%;border:none;border-radius:8px;background:transparent;color:#1d2433;cursor:pointer;font:inherit;font-size:.84rem;text-align:left;padding:.55rem .62rem}.sidebar-menu-item:hover{background:#f5f8fc}.sidebar-menu-item:disabled{color:#98a2b3;cursor:not-allowed}.sidebar-menu-item:disabled:hover{background:transparent}.sidebar-menu-item-danger{color:#b42318}.sidebar-menu-form{margin:0}.sidebar-copy-status{margin:0;padding:.38rem 1rem .55rem;font-size:.74rem;color:#344054;border-bottom:1px solid var(--line)}.crm-main{display:grid;grid-template-rows:auto 1fr auto;height:100%;min-height:0;overflow:hidden}.crm-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:var(--topbar-height);padding:0 1.25rem;border-bottom:1px solid var(--line);background:#ffffffd1;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);position:relative;z-index:20;isolation:isolate}.chat-header-main{display:flex;align-items:center;gap:.62rem;min-width:0;flex:1 1 auto}.chat-header-text{min-width:0;flex:1 1 auto}.chat-header-main h2,.chat-header-main p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-header h2{margin:0;font-size:1rem}.crm-header p{margin:.2rem 0 0;color:var(--muted);font-size:.84rem}.header-actions{display:flex;align-items:center;min-width:0;gap:.6rem;flex:0 0 auto}.chat-bot-switch-form{margin:0}.chat-bot-switch{border:1px solid #d3dbe7;border-radius:999px;background:#fff;color:#1f2937;cursor:pointer;display:inline-flex;align-items:center;gap:.48rem;padding:.28rem .42rem .28rem .52rem;min-height:34px}.chat-bot-switch:disabled{cursor:not-allowed;opacity:.7}.chat-bot-switch-label{font-size:.74rem;font-weight:700;line-height:1;white-space:nowrap}.chat-bot-switch-track{width:34px;height:20px;border-radius:999px;background:#d0d5dd;border:1px solid #c8ced8;display:inline-flex;align-items:center;padding:1px;transition:background .12s ease}.chat-bot-switch-track.active{background:#22a06b;border-color:#158a58}.chat-bot-switch-thumb{width:16px;height:16px;border-radius:999px;background:#fff;box-shadow:0 1px 2px #10182840;transform:translate(0);transition:transform .12s ease}.chat-bot-switch-track.active .chat-bot-switch-thumb{transform:translate(14px)}.push-status-btn{border:1px solid #d3dbe7;border-radius:999px;background:#fff7ed;color:#9a3412;padding:.34rem .72rem;min-height:34px;font-size:.74rem;font-weight:700;line-height:1;cursor:pointer;white-space:nowrap}.push-status-btn:disabled{cursor:not-allowed;opacity:.7}.push-status-btn.is-ready{background:#edf9f3;color:#0f5132;border-color:#b7dec9}.access-summary{position:relative;display:flex;align-items:center;gap:.34rem;max-width:min(420px,44vw);overflow:hidden}.access-chip{flex:0 1 auto;min-width:0;max-width:165px;border:1px solid #ccead9;border-radius:999px;background:#edf9f3;color:#0f5132;font-size:.72rem;font-weight:700;line-height:1;padding:.24rem .5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.access-more-btn{flex:0 0 auto;border:1px solid #d3dbe7;border-radius:999px;background:#fff;color:#334155;cursor:pointer;font-size:.72rem;font-weight:700;line-height:1;padding:.24rem .48rem}.access-more-btn:hover{background:#f8fbff}.access-popover{position:absolute;left:0;top:calc(100% + .42rem);z-index:34;width:min(340px,calc(100vw - 3rem));border:1px solid #dbe4f0;border-radius:12px;background:#fff;box-shadow:0 18px 44px #0f172a2e;padding:.52rem}.access-popover h4{margin:0 0 .4rem;font-size:.8rem}.access-popover ul{margin:0;padding:0;list-style:none;display:grid;gap:.3rem;max-height:220px;overflow-y:auto}.access-popover li{border:1px solid #e7edf6;border-radius:8px;padding:.42rem .5rem;display:grid;gap:.1rem}.access-popover li span{font-size:.8rem;font-weight:700}.access-popover li small{color:#667085;font-size:.72rem}.chat-menu{position:relative;z-index:2}.chat-menu-toggle{width:34px;height:34px;border:1px solid #d3dbe7;border-radius:999px;background:#fff;color:#475467;cursor:pointer;display:grid;place-items:center;flex:0 0 auto}.chat-menu-toggle:hover{background:#f8fbff}.chat-menu-toggle svg{width:15px;height:15px;fill:currentColor}.chat-menu-dropdown{position:absolute;right:0;top:calc(100% + .38rem);z-index:80;min-width:180px;border:1px solid #dbe4f0;border-radius:12px;background:#fff;box-shadow:0 18px 44px #0f172a2e;padding:.3rem}.chat-menu-item{width:100%;border:none;border-radius:8px;background:transparent;color:#1d2433;cursor:pointer;font:inherit;font-size:.84rem;text-align:left;padding:.55rem .62rem}.chat-menu-item:hover{background:#f5f8fc}.chat-menu-item-active{background:#edf9f3;color:#0f5132;font-weight:700}.chat-menu-item-active:hover{background:#e2f5eb}.chat-menu-item:disabled{color:#98a2b3;cursor:not-allowed}.chat-menu-item:disabled:hover{background:transparent}.chat-menu-item-danger{color:#b42318}.chat-menu-item-danger:hover{background:#fef3f2}.chat-menu-form{margin:0}.mobile-back-btn{width:34px;height:34px;border:1px solid #d3dbe7;border-radius:999px;background:#fff;color:#334155;cursor:pointer;display:grid;place-items:center;font-size:1.05rem;line-height:1;padding:0;flex:0 0 auto}.mobile-back-btn:hover{background:#f8fbff}@keyframes ui-spin{to{transform:rotate(360deg)}}.ui-spinner{display:inline-block;flex:none;width:15px;height:15px;border-radius:50%;border:2px solid rgba(15,157,110,.25);border-top-color:#0f9d6e;animation:ui-spin .6s linear infinite}.ui-spinner-light{border-color:#ffffff59;border-top-color:#fff}.btn-loadable{position:relative}.btn-loadable.is-loading{cursor:progress}.btn-loadable .btn-loadable-content{display:inline-flex;align-items:center;gap:.35rem;transition:opacity .15s ease}.btn-loadable.is-loading .btn-loadable-content{opacity:.3}.btn-spinner{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center}.btn-spinner:after{content:"";width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-top-color:transparent;animation:ui-spin .6s linear infinite}.global-busy-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90;display:grid;place-items:center;background:#0f172a2e}.global-busy-card{display:flex;align-items:center;gap:.6rem;background:#fff;border:1px solid #dbe4f0;border-radius:12px;padding:.7rem 1rem;box-shadow:0 18px 50px #0f172a2e;font-size:.85rem;font-weight:600;color:#334155}.stats-loading{display:flex;align-items:center;gap:.5rem}@supports (-webkit-touch-callout: none){@media (pointer: coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select{font-size:16px!important}}}.conversation-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;padding:.75rem .8rem .6rem;border-bottom:1px solid var(--line);background:#ffffffe0}.conversation-filters{display:flex;align-items:flex-start;gap:.6rem;padding:.7rem .8rem .8rem;border-bottom:1px solid var(--line);background:#fffffff0}.country-filter{position:relative;flex:1 1 auto;min-width:0}.country-filter-trigger{width:100%;border:1px solid #d7dee9;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff);color:#1d2433;cursor:pointer;display:grid;gap:.14rem;padding:.72rem .85rem;text-align:left;transition:border-color .12s ease,box-shadow .12s ease,transform .12s ease}.country-filter-trigger:hover{border-color:#bfd2e6;box-shadow:0 10px 24px #0f172a0f}.country-filter-trigger:focus-visible,.country-filter-clear:focus-visible,.country-filter-option:focus-within{outline:2px solid rgba(15,157,110,.24);outline-offset:2px}.country-filter-label{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#667085}.country-filter-value{font-size:.92rem;font-weight:800;color:#101828}.country-filter-caption{display:block;font-size:.76rem;line-height:1.35;color:#667085;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.country-filter-dropdown{position:absolute;top:calc(100% + .48rem);left:0;right:0;z-index:35;display:grid;gap:.42rem;border:1px solid #dbe4f0;border-radius:16px;background:#fff;box-shadow:0 22px 54px #0f172a2e;padding:.55rem}.country-filter-options{display:grid;gap:.34rem;max-height:min(320px,48vh);overflow-y:auto;padding-right:.1rem}.country-filter-option{display:grid;grid-template-columns:auto 1fr;align-items:flex-start;gap:.6rem;width:100%;border:1px solid #e3e9f2;border-radius:12px;background:#fbfdff;padding:.68rem .72rem;color:#1d2433;cursor:pointer;text-align:left;font:inherit}.country-filter-option:hover{border-color:#bfd2e6;background:#f8fbff}.country-filter-option.active{border-color:#9fdcc1;background:#e9f7f1}.country-filter-option-text,.country-filter-option>span:last-child{display:grid;gap:.1rem}.country-filter-option strong{font-size:.84rem}.country-filter-option small{font-size:.72rem;color:#667085}.country-filter-option-all{grid-template-columns:auto 1fr;align-items:center;background:#f7fafc}.country-filter-option-all.active{border-color:#9fdcc1;background:#e9f7f1}.country-filter-checkbox{width:1rem;height:1rem;border:1px solid #bfd2e6;border-radius:4px;display:grid;place-items:center;font-size:.74rem;font-weight:800;color:var(--brand);background:#fff;margin-top:.08rem}.country-filter-empty{margin:.2rem 0 0;padding:.55rem .35rem .1rem;font-size:.78rem;color:#667085}.country-filter-clear{flex:0 0 auto;min-height:46px;border:1px solid #d7dee9;border-radius:999px;background:#fff;color:#344054;cursor:pointer;font:inherit;font-size:.8rem;font-weight:700;padding:0 .9rem;transition:border-color .12s ease,background .12s ease}.country-filter-clear:hover{border-color:#bfd2e6;background:#f8fafc}.conversation-tab{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:38px;border:1px solid #d7dee9;border-radius:999px;background:#f8fafc;color:#344054;font:inherit;font-size:.8rem;font-weight:700;cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}.conversation-tab:hover{background:#f2f6fb}.conversation-tab.active{border-color:#9fdcc1;background:#e9f7f1;color:#0a7b57;box-shadow:inset 0 0 0 1px #0f9d6e14}.conversation-tab-badge{min-width:1.35rem;height:1.35rem;border-radius:999px;background:#0f9d6e;color:#fff;font-size:.7rem;font-weight:700;line-height:1;display:grid;place-items:center;padding:0 .35rem}.conversation-tab-badge-alert{background:#d97706}.conversation-tab-pending.active{border-color:#f5c88a;background:#fdf3e4;color:#b45309;box-shadow:inset 0 0 0 1px #d977061a}.conversation-tab-mine.active{border-color:#a8c7f0;background:#edf4fd;color:#1d4ed8;box-shadow:inset 0 0 0 1px #1d4ed814}.conversation-tabs.tabs-three{grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem}.conversation-tabs.tabs-three .conversation-tab{font-size:.74rem;gap:.3rem}.collaborator-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.75rem .9rem .6rem;border-bottom:1px solid var(--line);background:#ffffffe0}.collaborator-mode-label{display:inline-flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:700;color:#344054}.collaborator-mode-back{border:1px solid #d7dee9;border-radius:999px;background:#f8fafc;color:#344054;font:inherit;font-size:.76rem;font-weight:700;padding:.35rem .7rem;cursor:pointer;transition:background .12s ease,border-color .12s ease}.collaborator-mode-back:hover{background:#f2f6fb;border-color:#bfd2e6}.audience-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;padding:.7rem .8rem 0}.audience-switch-option{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:34px;border:1px solid #d7dee9;border-radius:999px;background:#f8fafc;color:#344054;font:inherit;font-size:.78rem;font-weight:700;cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease}.audience-switch-option:hover{background:#f2f6fb}.audience-switch-option.active{border-color:#9fdcc1;background:#e9f7f1;color:#0a7b57}.waiting-meta{margin:.2rem 0 0}.waiting-chip{display:inline-flex;align-items:center;border-radius:999px;background:#fdf3e4;border:1px solid #f5c88a;color:#b45309;font-size:.68rem;font-weight:700;padding:.14rem .5rem}.waiting-chip-overdue{background:#fdecec;border-color:#f3b4b4;color:#b42318}.conversation-list{flex:1;min-height:0;overflow-y:auto;margin:0;padding:0;list-style:none}.conversation-link{display:block;padding:.9rem 1rem;border-bottom:1px solid var(--line)}.conversation-link.active{background:#e9f7f1;border-left:4px solid var(--brand);padding-left:.75rem}.conversation-link .name{margin:0;font-weight:700;font-size:.95rem}.conversation-top-row{display:flex;align-items:center;gap:.45rem;min-width:0}.conversation-top-row .name{min-width:0;flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-channel-badge{flex:0 0 auto;border:1px solid #d3dbe7;border-radius:999px;padding:.1rem .42rem;font-size:.66rem;font-weight:700;line-height:1.2;color:#475467;background:#f8fafc}.conversation-channel-badge.whatsapp{border-color:#b7e9d2;color:#067647;background:#ecfdf3}.conversation-channel-badge.instagram{border-color:#f7c5d9;color:#9e165f;background:#fff1f7}.conversation-country-badge{flex:0 0 auto;border:1px solid #dce4ef;border-radius:999px;padding:.1rem .42rem;font-size:.66rem;font-weight:700;line-height:1.2;color:#475467;background:#f8fafc}.unread-badge{flex:0 0 auto;min-width:1.35rem;height:1.35rem;border-radius:999px;background:#0f9d6e;color:#fff;font-size:.72rem;font-weight:700;line-height:1;display:grid;place-items:center;padding:0 .35rem}.conversation-link .meta{margin:.2rem 0 0;color:var(--muted);font-size:.83rem}.conversation-link .preview-meta{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;word-break:break-word}.conversation-link .date-meta{white-space:nowrap}.admin-strip{padding:.8rem 1rem .7rem;display:grid;gap:.8rem;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--line);background:#f8fcffd9}.admin-strip.admin-single{grid-template-columns:minmax(0,540px)}.admin-card{border:1px solid #dbe4f0;border-radius:12px;background:#fff;padding:.8rem}.admin-card h3{margin:0;font-size:.95rem}.admin-card p{margin:.35rem 0 .7rem;font-size:.8rem;color:#667085}.create-admin-form{display:grid;gap:.55rem}.create-admin-form label{display:grid;gap:.3rem;font-size:.78rem;color:#475467;min-width:0}.create-admin-form input,.create-admin-form select,.create-admin-form textarea{width:100%;min-width:0;border:1px solid #d5dfea;border-radius:8px;padding:.5rem .6rem;font:inherit;color:#1d2433;background:#fff;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}.create-admin-form textarea{resize:vertical;min-height:120px;line-height:1.45}.create-admin-form input::placeholder,.create-admin-form textarea::placeholder{color:#98a2b3}.create-admin-form input:focus,.create-admin-form select:focus,.create-admin-form textarea:focus{outline:none;border-color:#0f9d6e;box-shadow:0 0 0 3px #0f9d6e1f}.stylist-grid{max-height:190px;overflow-y:auto;border:1px solid #e3e9f2;border-radius:10px;padding:.3rem;margin-bottom:.55rem}.stylist-row{display:flex;align-items:flex-start;gap:.5rem;padding:.45rem;border-radius:8px}.stylist-row:hover{background:#f6f9fc}.stylist-row span{display:grid}.stylist-row strong{font-size:.84rem}.stylist-row small{color:#667085;font-size:.74rem}.scheduler-active-toggle{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.8rem;padding:.8rem .9rem;border:1px solid #dbe5f0;border-radius:12px;background:#f8fbff;cursor:pointer;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}.scheduler-active-toggle:hover{border-color:#bfd1e4;background:#f3f8ff}.scheduler-active-toggle:focus-within{border-color:#0f9d6e;box-shadow:0 0 0 3px #0f9d6e24}.scheduler-active-toggle-input{position:absolute;opacity:0;pointer-events:none}.scheduler-active-toggle-control{position:relative;width:46px;height:28px;border-radius:999px;background:#c8d4e3;transition:background-color .18s ease;flex:0 0 auto}.scheduler-active-toggle-thumb{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px #0f172a2e;transition:transform .18s ease}.scheduler-active-toggle-copy{display:grid;gap:.15rem;min-width:0}.scheduler-active-toggle-copy strong{font-size:.9rem;color:#1f2937}.scheduler-active-toggle-copy small{color:#667085;font-size:.78rem;line-height:1.35}.scheduler-active-toggle-input:checked+.scheduler-active-toggle-control{background:#0f9d6e}.scheduler-active-toggle-input:checked+.scheduler-active-toggle-control .scheduler-active-toggle-thumb{transform:translate(18px)}.admin-btn{border:none;border-radius:8px;background:#0f9d6e;color:#fff;cursor:pointer;font-size:.81rem;font-weight:700;padding:.52rem .7rem}.admin-btn-danger{background:#b42318}.admin-btn-danger:hover{background:#912018}.prompt-modal-card{width:min(440px,100%)}.prompt-modal-actions{margin-top:.7rem;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}.admin-form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.admin-cancel-btn{border:1px solid #d3dbe7;border-radius:8px;background:#fff;color:#334155;cursor:pointer;font-size:.81rem;font-weight:700;padding:.52rem .7rem}.admin-delete-btn{border:1px solid #f2c7c1;border-radius:8px;background:#fff;color:#b42318;cursor:pointer;font-size:.81rem;font-weight:700;padding:.52rem .7rem}.admin-delete-btn:hover{background:#fef3f2}.admin-delete-confirm{background:#b42318;border-color:#b42318;color:#fff}.admin-delete-confirm:hover{background:#912018}.admins-list{margin-top:.7rem;border-top:1px solid #edf1f7;padding-top:.6rem}.admins-list h4{margin:0 0 .45rem;font-size:.81rem}.admins-list ul{margin:0;padding:0;list-style:none;display:grid;gap:.35rem}.admins-list li{border:1px solid #e7edf6;border-radius:8px;padding:.45rem .55rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem}.admin-row-content{min-width:0;flex:1 1 200px;display:grid;gap:.16rem}.admin-row-content span,.admin-row-content small{overflow-wrap:anywhere}.admin-row-content span{font-size:.83rem;font-weight:700}.admin-row-content small{color:#667085;font-size:.74rem}.admin-edit-btn{border:1px solid #d3dbe7;border-radius:8px;background:#fff;color:#334155;cursor:pointer;font-size:.76rem;font-weight:700;padding:.32rem .54rem;white-space:nowrap}.empty-mini{margin:0;font-size:.78rem;color:#667085}.inline-error{margin:0 0 .45rem;color:#b42318;font-size:.8rem}.inline-success{margin:0 0 .15rem;color:#067647;font-size:.8rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#0f172a73;display:grid;place-items:center;padding:1rem}.modal-dismiss-layer{position:absolute;top:0;right:0;bottom:0;left:0;border:none;background:transparent;padding:0;margin:0;cursor:pointer}.modal-card{position:relative;z-index:1;width:min(720px,100%);max-height:calc(var(--app-height, 100dvh) - 2rem);display:flex;flex-direction:column;overflow:hidden;border:1px solid #dbe4f0;border-radius:14px;background:#fff;padding:0;box-shadow:0 26px 80px #0f172a38}.modal-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.8rem .95rem;border-bottom:1px solid #edf1f7}.modal-header h3{margin:0;font-size:.95rem;min-width:0;overflow-wrap:anywhere}.modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:.75rem .95rem .95rem}.modal-close{border:1px solid #d3dbe7;border-radius:8px;background:#fff;color:#334155;cursor:pointer;font-size:.79rem;font-weight:700;padding:.38rem .58rem}.icon-close-btn{width:32px;height:32px;padding:0;display:grid;place-items:center;font-size:1.25rem;line-height:1}.modal-description{margin:.18rem 0 .75rem;font-size:.82rem;color:#667085}.messages{padding:1rem 1.2rem;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:.7rem}.message{width:fit-content;max-width:min(62ch,74%);padding:.72rem .85rem;border-radius:12px;border:1px solid var(--line);background:var(--inbound);align-self:flex-start}.message.has-audio,.message.has-video{width:min(92vw,420px);max-width:min(92vw,420px)}.message.outbound{align-self:flex-end;background:var(--outbound)}.message .meta{margin-top:.4rem;color:var(--muted);font-size:.73rem}.composer{border-top:1px solid var(--line);background:var(--panel);padding:.9rem 1.2rem}.composer-lock-notice{margin:0 0 .5rem;font-size:.78rem;color:#7a2e0e;background:#fff3e8;border:1px solid #f7d9bf;border-radius:9px;padding:.42rem .58rem}.composer form{display:grid;gap:.55rem}.composer-image-input{display:none}.composer-input-wrap{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:end;gap:.46rem}.composer textarea{width:100%;min-height:42px;max-height:180px;resize:none;overflow-y:hidden;border:1px solid var(--line);border-radius:16px;padding:.5rem .82rem;background:#fff;color:var(--text);font:inherit;line-height:1.35}.composer textarea:disabled{background:#f8fafc;color:#98a2b3;cursor:not-allowed}.composer-attach-btn{align-self:end;width:40px;height:40px;border:1px solid #d0d5dd;border-radius:999px;background:#fff;color:#475467;font-size:1.35rem;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}.composer-attach-btn:hover{background:#f8fafc}.composer-attach-btn:disabled{color:#98a2b3;background:#f8fafc;cursor:not-allowed}.composer-send-btn{align-self:end;width:44px;height:44px;border:none;border-radius:999px;padding:0;background:var(--brand);color:#fff;font-weight:700;font-size:1.05rem;line-height:1;cursor:pointer;display:grid;place-items:center}.composer-send-btn:hover{background:var(--brand-strong)}.composer-send-btn:disabled{background:#7aa691;cursor:not-allowed}.composer-attachment-chip{display:flex;align-items:center;justify-content:space-between;gap:.6rem;border:1px solid #d5dfea;border-radius:999px;background:#f8fafc;padding:.32rem .6rem;font-size:.76rem;color:#344054;min-width:0;max-width:100%}.composer-attachment-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer-attachment-remove-btn{border:none;background:transparent;color:#b42318;font-size:.74rem;font-weight:700;cursor:pointer;padding:0;flex:none;white-space:nowrap}.error{margin:0 0 .65rem;color:#b42318;font-size:.85rem}.empty{margin:auto;text-align:center;color:var(--muted)}@media (max-width: 900px){html,body{height:var(--app-height)}body{position:relative;width:100%;min-height:var(--app-height);overflow:hidden}.crm-shell{grid-template-columns:minmax(0,1fr);position:fixed;inset:var(--viewport-offset-top) 0 0 0;width:100%;height:var(--app-height);min-height:var(--app-height)}.crm-sidebar{min-height:var(--app-height);max-height:none;height:var(--app-height);overflow:hidden}.crm-main{height:var(--app-height);min-height:var(--app-height)}.crm-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:var(--topbar-height);padding:0 calc(1rem + env(safe-area-inset-right)) 0 calc(.9rem + env(safe-area-inset-left));gap:.65rem}.crm-title-bar{min-height:var(--topbar-height);padding:0 .78rem 0 1rem}.conversation-filters{flex-direction:column;align-items:stretch}.country-filter-clear{width:100%}.country-filter-dropdown{position:static;margin-top:.48rem}.header-actions{width:auto;flex-wrap:nowrap;justify-content:flex-end;margin-left:auto;gap:.45rem;flex:0 0 auto;min-width:max-content}.chat-header-main{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.5rem;flex:1 1 0%;min-width:0;overflow:hidden}.chat-header-text{min-width:0;overflow:hidden}.chat-header-text h2,.chat-header-text p{max-width:100%}.chat-header-text p{font-size:.78rem}.chat-bot-switch-label{max-width:72px}.chat-menu-toggle{width:40px;height:40px}.chat-menu-toggle svg{width:17px;height:17px}.access-summary{display:none}.push-status-btn{padding:.2rem .5rem;min-height:32px;font-size:.68rem}.chat-bot-switch{padding:.2rem .38rem;min-height:32px}.chat-bot-switch-label{display:inline;max-width:92px;overflow:hidden;text-overflow:ellipsis;font-size:.68rem}.access-summary{max-width:100%}.admin-strip{grid-template-columns:1fr}.modal-backdrop{place-items:end center;padding:.75rem 0 0}.modal-card{width:100%;max-height:calc(var(--app-height, 100dvh) - .75rem);border-radius:16px 16px 0 0;border-left:none;border-right:none;border-bottom:none}.modal-header{padding:.75rem .85rem}.modal-body{padding:.7rem .85rem calc(.85rem + env(safe-area-inset-bottom))}.composer{padding:.7rem .75rem calc(.7rem + env(safe-area-inset-bottom))}.messages{padding:.8rem .75rem}.composer-input-wrap{gap:.4rem}.composer textarea{min-height:40px;max-height:140px}.composer-send-btn{width:42px;height:42px}.composer-attach-btn{width:38px;height:38px}.message.has-audio,.message.has-video{width:min(94vw,420px);max-width:min(94vw,420px)}}.notify-switch{display:inline-flex;align-items:center;gap:.4rem;border:1px solid #d3dbe7;border-radius:999px;background:#fff;cursor:pointer;padding:.28rem .5rem;font:inherit}.notify-switch:hover{background:#f8fbff}.notify-switch-label{font-size:.7rem;font-weight:700;color:#475467;white-space:nowrap}.notify-switch-track{position:relative;width:32px;height:18px;border-radius:999px;background:#c8d4e3;transition:background-color .18s ease;flex:none}.notify-switch-thumb{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:999px;background:#fff;box-shadow:0 1px 2px #0f172a40;transition:transform .18s ease}.notify-switch-track.active{background:#0f9d6e}.notify-switch-track.active .notify-switch-thumb{transform:translate(14px)}.attention-pill{font-size:.76rem;color:#0a7b57;padding:.3rem .55rem;border-radius:999px;background:#e5f7ef;border:1px solid #b9e7d3;font-weight:600;white-space:nowrap;max-width:200px;overflow:hidden;text-overflow:ellipsis}.vendor-session-meta{margin:.15rem 0 0}.vendor-session-badge{display:inline-block;font-size:.68rem;font-weight:600;color:#0a7b57;background:#e5f7ef;border:1px solid #b9e7d3;border-radius:999px;padding:.1rem .5rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal-card-wide{width:min(880px,100%)}@media (min-width: 1280px){.modal-card-wide{width:min(1240px,calc(100vw - 6rem))}}@media (min-width: 1680px){.modal-card-wide{width:min(1420px,calc(100vw - 8rem))}}.stats-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem;margin:.4rem 0 .8rem}.stats-filters label{display:flex;flex-direction:column;gap:.25rem;font-size:.76rem;font-weight:600;color:var(--muted);min-width:0}.stats-filters select,.stats-filters input{width:100%;min-width:0;font:inherit;font-size:.82rem;color:var(--text);padding:.42rem .5rem;border-radius:9px;border:1px solid #d3dbe7;background:#fff}.stats-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.55rem;margin-bottom:.9rem}.stats-summary-card{border:1px solid #dbe4f0;border-radius:12px;background:#f8fafd;padding:.55rem .65rem;display:flex;flex-direction:column;gap:.15rem}.stats-summary-card strong{font-size:1.15rem;color:var(--text)}.stats-summary-card small{font-size:.7rem;color:var(--muted)}.stats-summary-card-total{background:#e5f7ef;border-color:#b9e7d3}.stats-summary-card-total strong{color:#0a7b57}.stats-section{margin-bottom:.9rem}.stats-section h4{margin:0 0 .4rem;font-size:.85rem}.stats-table-wrap{overflow-x:auto;border:1px solid #dbe4f0;border-radius:12px;background:#fff}.stats-table{width:100%;border-collapse:collapse;font-size:.78rem;min-width:520px}.stats-table th,.stats-table td{text-align:left;padding:.5rem .6rem;border-bottom:1px solid #edf1f7;white-space:nowrap}.stats-table thead th{background:#f4f7fb;color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.03em;position:sticky;top:0}.stats-table tbody tr:last-child td{border-bottom:none}.stats-status-badge{display:inline-block;font-size:.7rem;font-weight:600;border-radius:999px;padding:.14rem .55rem;border:1px solid #d3dbe7;background:#eef3f9;color:#475467}.stats-status-pendiente{background:#fff4e0;border-color:#f4d9a6;color:#a05e03}.stats-status-agendada{background:#e5f7ef;border-color:#b9e7d3;color:#0a7b57}.stats-status-no_respondio{background:#f2f4f7;border-color:#d0d5dd;color:#475467}.stats-status-dejo_de_responder{background:#fdecec;border-color:#f5c2c0;color:#b42318}@media (max-width: 900px){.attention-pill{display:none}.stats-filters{grid-template-columns:1fr 1fr}.stats-table{min-width:460px}}.stats-outcome-none{color:#98a2b3}.stats-outcome-confirmada{background:#e7f0ff;border-color:#bcd4f7;color:#1d4ed8}.stats-outcome-reagendada{background:#fff4e0;border-color:#f4d9a6;color:#a05e03}.stats-outcome-cancelada{background:#fdecec;border-color:#f5c2c0;color:#b42318}.stats-outcome-no_asistio{background:#f2f4f7;border-color:#d0d5dd;color:#475467}.stats-outcome-atendida{background:#e5f7ef;border-color:#b9e7d3;color:#0a7b57}.stats-outcome-facturada{background:#ecfdf3;border-color:#a6f4c5;color:#027a48}.ia-off-pill{color:#667085;background:#f2f4f7;border-color:#d0d5dd}.stats-pagination{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-top:.55rem}.stats-pagination-info{font-size:.76rem;font-weight:600;color:var(--muted);white-space:nowrap}.filters-accordion-head{display:flex;align-items:center;gap:.5rem;width:100%;border:none;border-bottom:1px solid var(--line);background:#fffffff0;color:#1d2433;cursor:pointer;font:inherit;text-align:left;padding:.7rem .8rem}.filters-accordion-head:hover{background:#f8fafc}.filters-accordion-title{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#667085}.filters-accordion-summary{flex:1 1 auto;min-width:0;font-size:.8rem;font-weight:600;color:#101828;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filters-accordion-chevron{flex:0 0 auto;color:#667085;transition:transform .14s ease}.filters-accordion-chevron.open{transform:rotate(180deg)}.filters-accordion-panel{border-bottom:1px solid var(--line);background:#fffffff0}.filters-accordion-panel .conversation-filters{border-bottom:none}.nearblock-chips{display:flex;flex-wrap:wrap;gap:.4rem;padding:.8rem .8rem .2rem}.nearblock-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.26rem .62rem;border-radius:999px;border:1px solid transparent;background:transparent;font-size:.75rem;font-weight:600;cursor:pointer;transition:background .12s ease}.nearblock-chip-warning{border-color:#d9770659;color:#b45309}.nearblock-chip-warning:hover{background:#d9770614}.nearblock-chip-warning.active{background:#d9770629;border-color:#d9770699}.nearblock-chip-warning .nearblock-chip-count{background:#d9770633}.nearblock-chip-blocked{border-color:#dc262659;color:#b91c1c}.nearblock-chip-blocked:hover{background:#dc262614}.nearblock-chip-blocked.active{background:#dc262624;border-color:#dc262699}.nearblock-chip-blocked .nearblock-chip-count{background:#dc26262e}.nearblock-chip-count{border-radius:999px;padding:0 .35rem;font-size:.7rem}.nearblock-row-badge{border-radius:999px;padding:.05rem .4rem;font-size:.62rem;font-weight:700;white-space:nowrap}.nearblock-row-warning{background:#d9770624;color:#b45309}.nearblock-row-blocked{background:#dc26261f;color:#b91c1c}.voice-mic-btn{flex:0 0 auto;width:40px;height:40px;border:none;border-radius:50%;background:transparent;color:#667085;cursor:pointer;display:grid;place-items:center;transition:background .12s ease,color .12s ease}.voice-mic-btn:hover:not(:disabled){background:#0f9d6e1a;color:var(--brand, #0f9d6e)}.voice-mic-btn:disabled{opacity:.45;cursor:not-allowed}.voice-mic-btn svg{width:21px;height:21px;fill:currentColor}.composer-input-wrap-voice{grid-template-columns:minmax(0,1fr);align-items:center}.voice-bar{display:flex;align-items:center;gap:.5rem;width:100%;min-width:0;padding:.4rem .55rem;border-radius:999px;animation:voice-bar-in .14s ease-out}@keyframes voice-bar-in{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}.voice-bar-recording{background:#dc26260f;border:1px solid rgba(220,38,38,.18)}.voice-bar-preview{background:#0f9d6e12;border:1px solid rgba(15,157,110,.22)}.voice-icon-btn{flex:0 0 auto;width:36px;height:36px;border:none;border-radius:50%;background:transparent;cursor:pointer;display:grid;place-items:center;transition:background .12s ease}.voice-icon-btn svg{width:18px;height:18px;fill:currentColor}.voice-icon-btn:disabled{opacity:.45;cursor:not-allowed}.voice-cancel{color:#b42318}.voice-cancel:hover:not(:disabled){background:#dc26261f}.voice-stop{color:#fff;background:#dc2626}.voice-stop:hover:not(:disabled){background:#b91c1c}.voice-play{color:var(--brand-strong, #0a7b57)}.voice-play:hover:not(:disabled){background:#0f9d6e24}.voice-send{color:#fff;background:var(--brand, #0f9d6e)}.voice-send:hover:not(:disabled){background:var(--brand-strong, #0a7b57)}.voice-rec-dot{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:#dc2626;animation:voice-pulse 1.1s ease-in-out infinite}@keyframes voice-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.82)}}.voice-time{flex:0 0 auto;font-size:.82rem;font-weight:700;font-variant-numeric:tabular-nums;color:#344054;min-width:2.6rem}.voice-time.near-limit{color:#b42318}.voice-remaining{flex:0 0 auto;font-size:.7rem;font-weight:700;color:#b42318;background:#dc26261f;border-radius:999px;padding:.05rem .4rem}.voice-levels{flex:1 1 auto;min-width:0;height:26px;display:flex;align-items:center;gap:2px;overflow:hidden}.voice-level{flex:1 1 0;min-width:2px;border-radius:999px;background:#dc2626;transition:height 90ms linear}.voice-levels-static .voice-level{background:var(--brand, #0f9d6e);opacity:.55}@media (max-width: 640px){.voice-time{min-width:2.3rem;font-size:.78rem}.voice-levels{height:22px}.voice-icon-btn{width:34px;height:34px}}
