:root{color:#182230;background:#eef2f6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:8px;padding:0 14px;border:1px solid #14517c;border-radius:8px;background:#14517c;color:#fff;cursor:pointer;font-size:14px;font-weight:750}button:disabled{border-color:#cbd5e1;background:#e2e8f0;color:#667085;cursor:not-allowed}input,select,textarea{width:100%;border:1px solid #d5dce7;border-radius:8px;background:#fff;color:#182230;outline:none}input,select{min-height:42px;padding:0 12px}textarea{min-height:92px;resize:vertical;padding:12px}h1,h2,p{margin:0}h1{margin-top:5px;font-size:32px;line-height:1.1;letter-spacing:0}.login-shell{display:grid;min-height:100vh;place-items:center;padding:24px}.login-card{display:grid;width:min(440px,100%);gap:18px;padding:22px}.login-card label{display:grid;gap:7px;color:#344054;font-size:13px;font-weight:800}.muted{color:#667085;font-size:13px;line-height:1.45}.crm-shell{display:grid;grid-template-columns:248px minmax(0,1fr);align-items:start;min-height:100vh}.sidebar{position:sticky;top:0;display:grid;grid-template-rows:auto 1fr auto;width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;gap:26px;overflow:hidden;padding:22px 18px;border-right:1px solid #d9e1ec;background:#fff}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;width:46px;height:46px;overflow:hidden;place-items:center;border-radius:10px;background:#0d0d18;color:#4fc3f7;flex-shrink:0;box-shadow:0 0 10px #4fc3f759,0 0 3px #ff149340}.brand-mark img{width:100%;height:100%;object-fit:cover}.brand strong{display:block;color:#101828;font-size:18px}.brand p,.eyebrow,.metric p,.dialog-copy small,.dialog-copy p,.dialog-meta small,.person p,.deal-card p,.task-card p,.health-row,.section-title span{color:#667085}.brand p{margin-top:3px;font-size:13px}.nav{display:grid;align-content:start;gap:8px;min-height:0;overflow:auto}.nav-item{position:relative;justify-content:flex-start;width:100%;border-color:transparent;background:transparent;color:#344054}.nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-item.active{border-color:#b9d9ee;background:#e7f3fb;color:#075985}.nav-badge{display:inline-grid;min-width:22px;height:22px;place-items:center;margin-left:auto;padding:0 7px;border-radius:999px;background:#d92d20;color:#fff;font-size:12px}.sidebar-bottom{display:grid;gap:10px}.theme-toggle{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:3px;border:1px solid #d9e1ec;border-radius:999px;background:#eef3f8}.theme-toggle:before{content:"";position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:999px;background:#fff;box-shadow:0 8px 18px #1018281a;transition:transform .18s ease}.theme-toggle:has(button:nth-child(2).active):before{transform:translate(100%)}.theme-toggle button{position:relative;z-index:1;min-height:34px;padding:0 10px;border:0;border-radius:999px;background:transparent;color:#667085;font-size:12px;font-weight:850;transition:color .18s ease}.theme-toggle button.active{color:#14517c}.theme-toggle span{line-height:1}.sidebar-logout{width:100%}.sidebar-status{display:grid;gap:10px;padding:14px;border:1px solid #d9e1ec;border-radius:8px;background:#f8fafc;color:#475467;font-size:13px}.sidebar-status div,.health-row,.person p,.timeout,.message small{display:inline-flex;align-items:center;gap:7px}.pulse{width:8px;height:8px;border-radius:999px;background:#12b76a;box-shadow:0 0 0 5px #12b76a1f}.muted-pulse{background:#f79009;box-shadow:0 0 0 5px #f790091f}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.workspace{min-width:0;min-height:100vh;padding:24px}.workspace-inbox{display:grid;height:100vh;grid-template-rows:minmax(0,1fr);overflow:hidden}.topbar,.topbar-actions,.thread-head,.thread-actions,.column-head,.deal-title,.deal-footer,.modal-head,.modal-actions,.section-title,.task-card>div{display:flex;align-items:center}.topbar{justify-content:space-between;gap:20px}.topbar h1{margin-top:0}.topbar-actions,.thread-actions,.modal-actions{flex-wrap:wrap;gap:10px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:0;text-transform:uppercase}.ghost-button{border-color:#d5dce7;background:#fff;color:#344054}.icon-button{width:40px;min-width:40px;padding:0;border-color:#d5dce7;background:#fff;color:#344054}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.metric,.panel,.kanban-column,.deal-card,.toast{border:1px solid #d9e1ec;border-radius:8px;background:#fff;box-shadow:0 16px 38px #1b274012}.metric{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;padding:16px}.kanban-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin:2px 0 16px}.kanban-toolbar div{display:grid;gap:3px}.kanban-toolbar strong{color:#101828;font-size:18px}.kanban-toolbar span{color:#667085;font-size:13px;font-weight:750}.metric span{display:grid;width:36px;height:36px;place-items:center;grid-row:span 2;border-radius:8px;background:#e7f3fb;color:#075985}.metric p{font-size:13px;font-weight:700}.metric strong{color:#101828;font-size:24px}.inbox-layout{display:grid;grid-template-columns:360px minmax(0,1fr);min-height:640px;overflow:hidden}.workspace-inbox .inbox-layout{min-height:0;height:100%}.dialog-list{display:flex;flex-direction:column;min-height:0;overflow:hidden;border-right:1px solid #e4e9f1;background:#fbfcfe}.dialog-list-head{flex:0 0 auto;padding:14px 14px 10px;border-bottom:1px solid #e4e9f1;background:#fbfcfe}.dialog-list-body{flex:1 1 0;display:grid;align-content:start;gap:8px;overflow:auto;padding:10px 14px 14px}.search{position:relative}.dialog-list-tools{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;margin-bottom:8px}.search svg{position:absolute;top:12px;left:12px;color:#667085}.search input{padding-left:38px}.dialog-filter-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.filter-chip{min-height:34px;padding:0;border-color:#d5dce7;background:#fff;color:#667085}.filter-chip.active{border-color:#14517c;background:#e7f3fb;color:#075985}.inline-error{padding:9px 10px;border:1px solid #fecdca;border-radius:8px;background:#fff3f2;color:#b42318;font-size:13px;font-weight:750}.dialog-row{width:100%;border:1px solid transparent;border-radius:8px;background:transparent;color:#182230}.dialog-row.active{border-color:#b9d9ee;background:#eef8ff}.dialog-row.closed{opacity:.52}.dialog-row.closed.active{opacity:.72}.dialog-row-main{display:grid;grid-template-columns:42px minmax(0,1fr) auto;width:100%;min-height:90px;align-items:center;gap:10px;padding:10px;border:0;background:transparent;color:#182230;text-align:left}.dialog-search-matches{display:grid;gap:6px;padding:0 10px 10px 62px}.dialog-search-match{display:grid;grid-template-columns:auto minmax(0,1fr);justify-content:flex-start;min-height:44px;align-items:center;overflow:hidden;padding:6px 9px;border-color:#b9d9ee;background:#fff;color:#075985;font-size:12px;text-align:left}.dialog-search-match span{display:inline-grid;min-width:20px;height:20px;place-items:center;border-radius:999px;background:#e7f3fb}.dialog-search-match b{display:-webkit-box;overflow:hidden;font-weight:800;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:2}.avatar{display:grid;width:42px;height:42px;flex:0 0 auto;place-items:center;border-radius:999px;background:#dbeafe;color:#14517c;font-weight:850;overflow:hidden}.avatar.large{width:50px;height:50px}.avatar img{width:100%;height:100%;object-fit:cover}.dialog-avatar-wrap{position:relative;display:inline-grid;width:42px;height:42px}.dialog-copy,.dialog-meta{display:grid;min-width:0;gap:4px}.dialog-copy strong,.dialog-copy p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-copy strong{display:flex;min-width:0;align-items:center;gap:6px}.dialog-copy .search-match{color:#075985;font-weight:800}.vk-presence-pill{display:inline-flex;max-width:118px;min-width:0;align-items:center;gap:4px;overflow:hidden;padding:2px 6px;border-radius:999px;background:#eef3f8;color:#667085;font-size:10px;font-weight:850;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.vk-online-dot{width:8px;height:8px;flex:0 0 auto;border-radius:999px;background:#12b76a;box-shadow:0 0 0 3px #12b76a24}.vk-presence-pill i,.vk-presence-line span{width:6px;height:6px;flex:0 0 auto;border-radius:999px;background:#98a2b3}.vk-presence-pill.online{background:#dcfae6;color:#027a48}.vk-presence-pill.online i,.vk-presence-line.online span{background:#12b76a;box-shadow:0 0 0 3px #12b76a24}.vk-presence-line{display:inline-flex;width:fit-content;align-items:center;gap:6px;margin-left:8px;color:#667085;font-size:12px;font-weight:800;vertical-align:middle}.vk-presence-line.online{color:#027a48}.empty-state{display:grid;min-height:140px;place-items:center;padding:18px;color:#667085;text-align:center}.dialog-copy p,.dialog-copy small{font-size:13px;line-height:1.25}.dialog-meta{justify-items:end;align-self:stretch;align-content:start;min-width:44px}.dialog-meta small{display:inline-flex;align-items:center;gap:4px}.dialog-pin-mark{color:#667085}.dialog-meta b{display:grid;min-width:22px;height:22px;place-items:center;border-radius:999px;background:#14517c;color:#fff;font-size:12px}.status-icon{display:inline-grid;width:30px;height:30px;place-items:center;border-radius:999px}.status-icon.ai{background:#dcfae6;color:#027a48}.status-icon.manager{background:#fef0c7;color:#b54708}.status-icon.disabled{background:#fee4e2;color:#b42318}.status-icon.closed{background:#eef2f6;color:#667085}.status-icon.important{background:#fff1b8;color:#b54708}.status-icon.important svg{fill:currentColor}.dialog-context-menu{position:fixed;z-index:85;display:grid;width:230px;gap:4px;padding:7px;border:1px solid #d9e1ec;border-radius:10px;background:#fff;box-shadow:0 18px 38px #10182829}.dialog-context-menu button{display:inline-flex;width:100%;min-height:38px;align-items:center;justify-content:flex-start;gap:8px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#182230;font-size:13px;font-weight:800;cursor:pointer}.dialog-context-menu button:hover{background:#eef6fb;color:#14517c}.dialog-channel-logo{position:absolute;right:-4px;bottom:-3px;width:17px;height:17px;border:0;border-radius:6px;background:transparent;object-fit:cover;box-shadow:none}.thread{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;min-width:0;background:#eef2f6}.thread-head{justify-content:space-between;gap:16px;min-height:78px;padding:14px 18px;border-bottom:1px solid #e4e9f1;background:#fff}.mobile-back-button,.mobile-thread-menu{display:none}.person{display:flex;min-width:0;align-items:center;gap:12px}.person strong{display:block;color:#101828}.profile-link{display:inline-flex;width:fit-content;margin-top:4px;padding:4px 8px;border:1px solid #d7e0ef;border-radius:7px;background:#f8fafc;color:#52637a;font-size:12px;font-weight:750;line-height:1.2;text-decoration:none}.profile-link:hover{border-color:#bfd1ee;background:#eef6ff;color:#2d5fb3}.person p{margin-top:4px;font-size:13px}.person .typing-line{color:#027a48;font-weight:800}.timeout{min-height:34px;padding:0 10px;border-color:#fedf89;border-radius:8px;background:#fff6e8;color:#b54708;font-size:13px;font-weight:800}.status-action{width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border-radius:8px;overflow:hidden;transition:border-color .18s ease,background-color .18s ease,color .18s ease,min-width .22s ease,padding .22s ease}.status-action.with-timeout{width:auto;min-width:76px;gap:7px;padding:0 10px 0 8px;font-size:13px;font-weight:800}.status-action.with-feedback{width:auto;min-width:40px;gap:7px;padding:0 10px 0 8px;font-size:13px;font-weight:800}.status-action.ai{border-color:#abefc6;background:#dcfae6;color:#027a48}.status-action.manager{border-color:#fedf89;background:#fef0c7;color:#b54708}.thread-status-icon{border-radius:8px}.status-action .thread-status-icon{width:100%;height:100%;background:transparent;color:inherit}.status-action.with-timeout .thread-status-icon,.status-action.with-feedback .thread-status-icon{width:22px;height:22px}.status-timeout-text{display:inline-block;overflow:hidden;max-width:72px;white-space:nowrap;animation:status-timeout-flow .24s cubic-bezier(.2,.9,.2,1) both;transform-origin:center}.status-feedback{display:inline-block;overflow:hidden;max-width:0;white-space:nowrap;animation:status-feedback-flow 2.1s cubic-bezier(.2,.9,.2,1) both;transform-origin:center}@keyframes status-timeout-flow{0%{max-width:0;opacity:0;clip-path:inset(0 50% 0 50%);transform:scaleX(.96)}to{max-width:72px;opacity:1;clip-path:inset(0 0 0 0);transform:scaleX(1)}}@keyframes status-feedback-flow{0%{max-width:0;opacity:0;clip-path:inset(0 50% 0 50%);transform:scaleX(.96)}16%,72%{max-width:180px;opacity:1;clip-path:inset(0 0 0 0);transform:scaleX(1)}to{max-width:0;opacity:0;clip-path:inset(0 50% 0 50%);transform:scaleX(.96)}}.messages{position:relative;display:flex;min-height:0;flex-direction:column;gap:10px;overflow:auto;background:#eef2f6;padding:18px}.message-date-separator{position:relative;z-index:2;display:flex;align-self:stretch;justify-content:center;pointer-events:none}.message-date-separator span,.floating-date-tag{display:inline-flex;min-height:26px;align-items:center;justify-content:center;padding:3px 13px;border-radius:999px;background:#0000007a;color:#fff;font-size:13px;font-weight:800;line-height:1;letter-spacing:0}.floating-date-tag{position:sticky;top:10px;z-index:30;align-self:center;margin-bottom:-40px;opacity:0;pointer-events:none;transform:translateY(-8px) scale(.98);transition:opacity .18s ease,transform .18s ease}.floating-date-tag.visible{opacity:1;transform:translateY(0) scale(1)}.dialog-list-body,.messages{--sb-thumb: rgba(16, 24, 40, 0);scrollbar-width:thin;scrollbar-color:var(--sb-thumb) transparent;transition:scrollbar-color .25s}.dialog-list-body:hover,.messages:hover{--sb-thumb: rgba(16, 24, 40, .22)}.dialog-list-body::-webkit-scrollbar,.messages::-webkit-scrollbar{width:5px}.dialog-list-body::-webkit-scrollbar-track,.messages::-webkit-scrollbar-track{background:transparent}.dialog-list-body::-webkit-scrollbar-thumb,.messages::-webkit-scrollbar-thumb{background:var(--sb-thumb);border-radius:99px;transition:background .25s}.message{position:relative;display:inline-flex;flex-direction:column;align-items:flex-start;align-self:flex-start;width:auto;min-width:86px;max-width:min(660px,78%);padding:12px 14px;border:1px solid #e4e9f1;border-radius:8px;background:#fff}.message-new{animation:message-rise-in .26s cubic-bezier(.2,.9,.2,1) both;transform-origin:bottom center;will-change:transform,opacity}@keyframes message-rise-in{0%{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}.message.manager{align-self:flex-end;border-color:#cfe8f8;background:#eaf6ff}.message.sending{opacity:.78}.message.ai,.message.reminder{border-color:#d7f4df;background:#f0fff4}.message.search-hit{border-color:#fdb022}.message.jump-highlight{animation:message-focus-pulse 1.1s ease-out both}@keyframes message-focus-pulse{0%,to{filter:none}18%,78%{filter:brightness(.88)}}.message.deleted{color:#667085;font-style:italic}.message.reaction-message{min-width:0;padding:8px 10px}.reaction-content{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:32px;font-size:28px;line-height:1}.message-reactions{position:absolute;right:10px;bottom:-13px;z-index:2;display:inline-flex;align-items:center;gap:2px;min-height:24px;padding:2px 7px;border:2px solid #edf4f8;border-radius:999px;background:#fff;color:#101828;font-size:16px;line-height:1;box-shadow:0 4px 10px #1018281a}.message.manager .message-reactions{border-color:#eaf6ff}.quoted-message{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;min-height:0;margin-bottom:8px;padding:7px 9px;border:0;border-left:3px solid #1570ef;border-radius:7px;background:#1570ef17;color:#344054;cursor:pointer;text-align:left}.quoted-message.with-thumb{grid-template-columns:44px minmax(0,1fr);align-items:center;gap:8px}.message.manager .quoted-message{background:#14517c17}.quoted-message img{width:44px;height:44px;border-radius:7px;object-fit:cover}.quoted-message span{display:grid;min-width:0;gap:2px}.quoted-message b{overflow:hidden;color:#14517c;font-size:11px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.quoted-message small{overflow:hidden;color:#475467;font-size:12px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.deleted-message{display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:#667085;font-size:13px;font-style:italic}.deleted-message button{min-height:24px;padding:0 7px;border:1px solid #d0d5dd;border-radius:999px;background:#fff;color:#344054;font-size:12px;font-style:normal;font-weight:800;cursor:pointer}.deleted-original{display:grid;flex-basis:100%;gap:4px;margin-top:4px;padding:7px 8px;border-radius:7px;background:#1018280f;color:#344054;font-style:normal}.deleted-original p{margin:0}.deleted-original span{font-size:12px;font-weight:800}.message.attachment-only{max-width:min(360px,78%)}.message.image-only{position:relative;width:fit-content;min-width:0;max-width:min(320px,78%);overflow:visible;padding:0;border:0;background:transparent;box-shadow:none}.message.image-caption{position:relative;width:fit-content;min-width:0;max-width:min(320px,78%);overflow:visible;padding:0;border:0;background:transparent}.message-label{display:block;min-height:16px;margin-bottom:4px;color:#027a48;font-size:12px;font-weight:850}.message.manager .message-label,.message.client .message-label{display:none}.message p{line-height:1.45;overflow-wrap:anywhere}.message-text{white-space:pre-wrap}.message-link{color:#14517c;font-weight:850;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}.message.manager .message-link{color:#075985}.message-link:hover{color:#0f3f62}.message-text-inline-time{display:block}.message-text-inline-time .message-time-inline{display:inline-flex;float:right;align-items:baseline;gap:4px;margin-top:0;margin-left:12px;vertical-align:baseline}.message.image-caption p{box-sizing:border-box;width:100%;margin:0;padding:9px 68px 22px 10px;border:1px solid #e4e9f1;border-top:0;border-radius:0 0 8px 8px;background:#fff}.message.manager.image-caption p{border-color:#cfe8f8;background:#eaf6ff}.message.ai.image-caption p,.message.reminder.image-caption p{border-color:#d7f4df;background:#f0fff4}.message-attachments{display:flex;width:100%;max-width:100%;flex-direction:column;align-items:flex-start;gap:8px;margin-top:8px}.message-media-wrap{display:grid;max-width:100%;gap:6px}.message.image-gallery-message{max-width:min(460px,86%)}.message-image-grid{display:grid;overflow:hidden;width:min(420px,100%);max-width:100%;gap:3px;border-radius:8px;background:#d9e1ec}.message-image-grid.count-2{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:190px}.message-image-grid.count-3{grid-template-columns:1.15fr 1fr;grid-auto-rows:112px}.message-image-grid.count-3 .message-image-link:first-child{grid-row:span 2}.message-image-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:138px}.message-image-grid.count-many{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:112px}.message-image-link{display:block;overflow:hidden;width:min(320px,100%);max-width:100%;min-height:0;padding:0;border:1px solid #d9e1ec;border-radius:8px;background:#f8fafc;color:inherit;cursor:zoom-in}.message-image-link img{display:block;width:auto;max-width:100%;height:auto;max-height:320px;object-fit:contain}.message-image-grid .message-image-link{width:100%;height:100%;border:0;border-radius:0;background:#f8fafc}.message-image-grid .message-image-link img{width:100%;height:100%;max-height:none;object-fit:cover}.message.image-only .message-attachments,.message.image-caption .message-attachments{width:auto;max-width:100%;margin-top:0}.message.sticker-only .message-attachments{width:auto}.message.image-only .message-image-link{width:fit-content;max-width:100%;border:0}.message.sticker-only .message-image-link{background:transparent}.message.sticker-only .message-image-link img{max-width:180px;max-height:180px}.message.image-caption .message-image-link{width:fit-content;max-width:100%;border:0;border-radius:8px 8px 0 0}.message.image-caption .message-image-link img{border-radius:8px 8px 0 0}.message.image-caption .message-time{position:absolute;right:8px;bottom:6px;margin:0;color:#667085}.location-card{display:flex;width:min(320px,100%);align-items:center;gap:10px;padding:12px;border:1px solid #d5dce7;border-radius:8px;background:#f8fafc;color:#182230;text-decoration:none}.location-card svg{flex:0 0 auto;color:#14517c}.location-card span{display:grid;min-width:0;gap:2px}.location-card b,.location-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-card small{color:#667085;font-size:12px}.message.image-only .message-time{position:absolute;right:8px;bottom:8px;display:inline-flex;min-height:24px;align-items:center;gap:5px;margin:0;padding:3px 7px;border-radius:999px;background:#101828a8;color:#fff;font-size:12px;white-space:nowrap;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.message-media,.message-audio{display:block;width:min(360px,100%)}.message-media{max-height:320px;border-radius:8px;background:#101828}.message-download,.message-file-link{display:inline-flex;align-items:center;gap:7px;color:#14517c;font-size:13px;font-weight:800;text-decoration:none}.message-download{max-width:min(360px,100%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.muted-download{color:#667085}.message-time{display:inline-flex;align-items:center;gap:4px;align-self:flex-end;justify-content:flex-end;margin-top:8px;margin-left:auto;color:#667085;font-size:12px}.message-delivery{display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;letter-spacing:0}.message-delivery.sending{color:#98a2b3}.message-delivery.read{color:#2e74b5}.message-delivery.delivered{color:#98a2b3}.message-delivery.failed{color:#d92d20}.message-context-menu{position:fixed;z-index:80;width:220px;padding:6px;border:1px solid #d9e1ec;border-radius:10px;background:#fff;box-shadow:0 18px 38px #10182829}.message-context-menu button{display:inline-flex;width:100%;min-height:38px;align-items:center;justify-content:flex-start;gap:8px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#b42318;font-size:13px;font-weight:800;cursor:pointer}.message-context-menu button:disabled{color:#98a2b3;cursor:not-allowed}.message-context-menu button:hover{background:#fef3f2}.message-context-menu button:not(:last-child):hover{background:#eef6fb;color:#14517c}@media(hover:none),(pointer:coarse),(max-width:1024px){.dialog-context-menu{width:min(240px,calc(100vw - 20px))}.dialog-context-menu button{min-height:42px;font-size:14px}.message-context-menu{width:min(230px,calc(100vw - 20px))}.message-context-menu button{min-height:42px;font-size:14px}}@media(prefers-reduced-motion:reduce){.message-new{animation:none}.status-feedback,.status-timeout-text{animation:none;max-width:none}}.composer{position:relative;display:flex;align-items:flex-end;gap:10px;padding:10px 12px;border-top:1px solid #e4e9f1;background:#fff}.composer-actions{display:flex;flex:0 0 auto;gap:8px}.reply-preview{display:flex;position:absolute;right:12px;bottom:calc(100% + 8px);left:12px;z-index:15;min-width:0;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px 7px 10px;border-left:3px solid #1570ef;border-radius:8px;background:#eef6ff;color:#344054}.reply-preview span{display:grid;min-width:0;gap:2px;overflow:hidden;font-size:12px;line-height:1.25}.reply-preview b{color:#14517c;font-size:11px}.reply-preview.edit-preview{border-left-color:#b54708;background:#fff7ed}.reply-preview.edit-preview b{color:#9a3412}.reply-preview span{text-overflow:ellipsis;white-space:nowrap}.composer textarea{flex:1 1 auto;min-height:40px;max-height:240px;min-width:160px;resize:none;overflow:hidden;padding:9px 12px;line-height:20px}.composer .send-button{flex:0 0 auto}.selected-file{position:absolute;right:12px;bottom:calc(100% + 8px);left:12px;z-index:16;display:flex;align-items:center;gap:8px;min-width:0;padding:8px 10px;border:1px solid #d9e1ec;border-radius:8px;background:#f8fafc;color:#344054;font-size:13px;font-weight:750}.selected-file span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-file .icon-button{width:28px;height:28px;margin-left:auto}.selected-files{position:absolute;right:12px;bottom:calc(100% + 8px);left:12px;z-index:16;display:grid;max-height:124px;gap:7px;overflow:auto;padding:8px;border:1px solid #d9e1ec;border-radius:8px;background:#f8fafc;color:#344054;box-shadow:0 10px 28px #1018281a}.selected-files.with-preview{bottom:calc(100% + 58px)}.selected-files-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#475467;font-size:12px;font-weight:850}.selected-files-head span{display:inline-flex;min-width:0;align-items:center;gap:6px}.selected-files-head .icon-button{width:26px;min-width:26px;height:26px;min-height:26px}.selected-file-list{display:flex;flex-wrap:wrap;gap:6px}.selected-file-chip{display:inline-flex;max-width:min(220px,100%);min-width:0;align-items:center;gap:5px;padding:5px 6px;border:1px solid #d9e1ec;border-radius:7px;background:#fff;color:#344054;font-size:12px;font-weight:800}.selected-file-chip b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-file-chip button{width:20px;min-width:20px;height:20px;min-height:20px;padding:0;border:0;border-radius:999px;background:#eef2f6;color:#667085}.hidden-file-input{display:none}.kanban-shell{position:relative}.kanban{display:grid;grid-auto-columns:292px;grid-auto-flow:column;align-items:start;gap:14px;min-height:620px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-gutter:stable}.kanban-edge{position:absolute;z-index:6;top:0;bottom:14px;width:min(58px,8%);opacity:0;pointer-events:auto;transition:opacity .18s ease}.kanban-edge:after{content:"";position:absolute;inset:0;border-radius:8px}.kanban-edge-left{left:0}.kanban-edge-right{right:0}.kanban-edge-left:hover:after{background:linear-gradient(90deg,rgb(238 242 246 / 86%),transparent)}.kanban-edge-right:hover:after{background:linear-gradient(270deg,rgb(238 242 246 / 86%),transparent)}.kanban-column{display:grid;align-content:start;align-self:start;min-width:0;gap:10px;padding:12px;background:#f8fafc;transition:border-color .16s ease,background-color .16s ease,transform .16s ease}.kanban-column.drop-target{border-color:#0ea5e9;background:#eff8ff;transform:translateY(-2px)}.column-head{justify-content:space-between;min-width:0;min-height:38px;gap:8px}.column-head strong{min-width:0;color:#101828;font-size:13px;overflow-wrap:anywhere}.column-head span{display:grid;min-width:26px;height:26px;place-items:center;border-radius:999px;background:#e7f3fb;color:#075985;font-size:12px;font-weight:850}.deal-card{display:grid;width:100%;min-width:0;gap:8px;padding:12px;cursor:grab;transition:opacity .16s ease,transform .16s ease,border-color .16s ease}.deal-card:active{cursor:grabbing;transform:scale(.99)}.deal-title{min-width:0;align-items:flex-start;gap:7px}.deal-title strong{min-width:0;flex:1;color:#101828;overflow-wrap:anywhere;word-break:break-word}.deal-card p{min-width:0;overflow-wrap:anywhere;font-size:13px}.deal-footer{justify-content:space-between;gap:8px;min-width:0;margin-top:4px}.deal-footer b{min-width:0;margin-right:auto;color:#101828;overflow-wrap:anywhere}.tasks-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.settings-grid{display:grid;grid-template-columns:1fr;gap:16px}.settings-home,.settings-detail{display:grid;gap:16px}.settings-home-head,.settings-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-home-head h2,.settings-detail-head h2{margin:0;color:#101828;font-size:24px}.settings-home-head span{color:#667085;font-size:13px;font-weight:750}.settings-head-actions,.settings-detail-title{display:flex;align-items:center;gap:10px}.settings-head-actions{justify-content:flex-end;flex-wrap:wrap}.settings-logout-button{border-color:#fed7d7;color:#b42318}.settings-logout-button:hover{border-color:#fda29b;background:#fff3f2;color:#912018}.settings-session-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid #fecdca;border-radius:8px;background:snow}.settings-session-card div{display:grid;min-width:0;gap:3px}.settings-session-card b{color:#101828;font-size:15px}.settings-session-card span{color:#667085;font-size:13px;font-weight:700}.logout-confirm-modal{width:min(420px,calc(100vw - 28px))}.settings-block-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.settings-block-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"icon copy arrow" "meta meta arrow";align-items:center;min-height:148px;padding:18px;border:1px solid #d9e1ec;border-radius:8px;background:#fff;color:#101828;text-align:left;box-shadow:0 10px 26px #1018280d}.settings-block-card:hover{border-color:#b8c5d8;background:#fbfcfe;transform:translateY(-1px)}.settings-block-card>svg{grid-area:arrow;color:#98a2b3}.settings-block-icon{grid-area:icon;display:grid;width:44px;height:44px;margin-right:12px;place-items:center;border-radius:8px;background:#eef6fb;color:#14517c}.settings-block-copy{grid-area:copy;display:grid;min-width:0;gap:5px}.settings-block-copy b{font-size:16px;line-height:1.2}.settings-block-copy small{color:#667085;font-size:13px;font-weight:700;line-height:1.35}.settings-block-card em{grid-area:meta;align-self:end;width:max-content;margin-top:16px;padding:5px 8px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:11px;font-style:normal;font-weight:850}.settings-detail-head{padding-bottom:2px}.task-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.task-tab{min-height:40px;padding:0 14px;border-color:#d5dce7;background:#fff;color:#344054}.task-tab.active{border-color:#0ea5e9;background:#e7f3fb;color:#075985}.task-tab span{display:inline-grid;min-width:22px;height:22px;margin-left:8px;place-items:center;border-radius:999px;background:#10182814;font-size:12px}.task-card{display:grid;gap:14px;padding:18px}.task-card-head,.task-title-row,.task-actions,.section-title{display:flex;align-items:center;justify-content:space-between}.task-title-row{align-items:flex-start;gap:12px}.task-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:8px;background:#fee4e2;color:#b42318}.task-card h2,.section-title h2{color:#101828;font-size:19px}.task-status{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#e7f3fb;color:#075985;font-size:12px;font-weight:850}.task-status.closed{background:#ecfdf3;color:#027a48}.task-status.archived{background:#f2f4f7;color:#475467}.task-details{display:grid;gap:10px;margin:0}.task-details div{display:grid;gap:4px}.task-details dt{color:#667085;font-size:12px;font-weight:850;text-transform:uppercase}.task-details dd{margin:0;color:#344054;line-height:1.45}.task-actions{justify-content:flex-start;gap:8px;margin-top:2px}.form-panel{display:grid;align-content:start;gap:14px;padding:18px}.form-panel.wide{grid-column:1 / -1}.form-panel label{display:grid;gap:7px;color:#344054;font-size:13px;font-weight:800}.form-panel .toggle-row{display:flex;min-height:52px;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #d9e1ec;border-radius:8px;background:#fbfcfe}.toggle-row span{display:grid;gap:2px}.toggle-row small{color:#667085;font-size:12px;font-weight:750}.toggle-row input{appearance:none;position:relative;width:38px;max-width:38px;height:22px;min-height:22px;flex:0 0 auto;padding:0;border:1px solid #cfd8e5;border-radius:999px;background:#e4e9f1;cursor:pointer;transition:background .16s ease,border-color .16s ease}.toggle-row input:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:999px;background:#fff;box-shadow:0 4px 10px #1018282e;transition:transform .16s ease}.toggle-row input:checked{border-color:#14517c;background:#14517c}.toggle-row input:checked:after{transform:translate(16px)}.form-panel textarea{min-height:130px;color:#475467;font-weight:500;line-height:1.45}.health-row{min-height:42px;padding:0 12px;border-radius:8px;background:#f8fafc;font-weight:750}.health-row.good svg{color:#12b76a}.health-row.warn svg{color:#f79009}.channel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.channel-default-card{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:16px;padding:14px;border:1px solid #d9e1ec;border-radius:8px;background:#fbfcfe}.channel-default-card>div:first-child{flex:1 1 260px}.channel-default-card h3{margin:0 0 3px;color:#182230;font-size:15px;line-height:1.25}.channel-default-card p,.channel-ai-window-card p{margin:0;color:#667085;font-size:12px;font-weight:700;line-height:1.35}.channel-default-switch{width:min(260px,100%);flex-shrink:0}.channel-ai-window-card{display:flex;align-items:center;justify-content:space-between;flex:1 1 100%;gap:12px;padding-top:12px;border-top:1px solid #e4e9f2}.channel-ai-window-card h4{margin:0 0 3px;color:#182230;font-size:13px;line-height:1.25}.channel-ai-window-switch{width:min(620px,100%);flex-shrink:0}.channel-timers-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:-4px 0 14px}.channel-timer-card{display:grid;align-content:start;gap:12px;padding:14px;border:1px solid #d9e1ec;border-radius:8px;background:#fbfcfe}.channel-timer-card h3{margin:0 0 3px;color:#182230;font-size:15px;line-height:1.25}.channel-timer-card p{margin:0;color:#667085;font-size:12px;font-weight:700;line-height:1.35}.channel-timer-card .toggle-row{padding:0;border:0;background:transparent}.channel-timer-save{margin:-2px 0 18px}.channel-card{display:grid;gap:12px;padding:14px;border:1px solid #d9e1ec;border-radius:8px;background:#fbfcfe}.channel-card.good{border-color:#abefc6}.channel-card.warn{border-color:#fedf89}.channel-head,.channel-meta,.channel-actions{display:flex;align-items:center}.channel-head{justify-content:space-between;gap:10px}.channel-head span{display:grid;min-width:0;gap:3px}.channel-head b,.channel-head small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-head small,.channel-meta,.channel-actions>span{color:#667085;font-size:12px;font-weight:800}.channel-head em{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:#eef3f8;color:#344054;font-size:11px;font-style:normal;font-weight:850}.channel-card.good .channel-head em{background:#dcfae6;color:#027a48}.channel-meta{flex-wrap:wrap;gap:6px}.channel-meta span{padding:4px 7px;border-radius:999px;background:#eef3f8}.channel-actions{flex-wrap:wrap;gap:8px}.vk-history-import{display:grid;gap:12px;margin-top:14px;padding:14px;border:1px solid #dbe7f6;border-radius:8px;background:linear-gradient(180deg,#f7fbff,#fff)}.vk-history-import-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.vk-history-import-head span{display:grid;min-width:0;gap:3px}.vk-history-import-head b{color:#182230;font-size:14px}.vk-history-import-head small{color:#667085;font-size:12px;font-weight:750;line-height:1.35}.vk-import-status{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#eef3f8;color:#344054;font-size:11px;font-style:normal;font-weight:850;white-space:nowrap}.vk-import-status.running{background:#e7f3fb;color:#075985}.vk-import-status.done{background:#dcfae6;color:#027a48}.vk-import-status.error{background:#fee4e2;color:#b42318}.vk-import-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.vk-import-controls label{display:grid;gap:6px;color:#475467;font-size:12px;font-weight:800}.vk-import-progress{overflow:hidden;height:8px;border-radius:999px;background:#e6edf5}.vk-import-progress span{display:block;height:100%;min-width:8px;border-radius:inherit;background:linear-gradient(90deg,#14517c,#2e90fa);transition:width .26s ease}.vk-import-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.vk-import-stats span{display:grid;gap:2px;min-height:48px;padding:9px 10px;border:1px solid #e3eaf3;border-radius:8px;background:#fff;color:#667085;font-size:11px;font-weight:800}.vk-import-stats b{color:#182230;font-size:16px}.segmented-control{display:inline-grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:3px;border:1px solid #d9e1ec;border-radius:8px;background:#eef3f8}.segmented-control button{min-height:34px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:#475467;font-size:12px}.segmented-control button.active{background:#fff;color:#075985;box-shadow:0 6px 14px #10182814}.segmented-control.channel-ai-window-switch{grid-template-columns:repeat(3,minmax(0,1fr))}.channel-ai-window-switch button{min-height:38px;padding:0 14px;font-size:12px;white-space:nowrap}.tool-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.tool-list li{padding:10px 12px;border-radius:8px;background:#f1f5f9;color:#344054;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px}.tool-rules-editor{display:grid;gap:10px}.tool-rules-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#344054;font-size:13px;font-weight:800}.compact-button{min-height:34px;padding:0 10px;font-size:12px}.tool-rules-textarea{min-height:112px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12.5px;line-height:1.6}.deals-toolbar{display:flex;align-items:center;gap:10px;padding:0 16px 8px}.deals-search{flex:1;max-width:360px;position:relative}.deals-topbar-search{flex:1 1 200px;max-width:300px;min-width:160px}.excel-menu-button{white-space:nowrap}.excel-menu-popover{position:absolute;top:calc(100% + 6px);right:0;z-index:30;display:grid;gap:4px;min-width:180px;padding:6px;border:1px solid #d9e1ec;border-radius:10px;background:#fff;box-shadow:0 8px 24px #1018281a}.excel-menu-popover button{justify-content:flex-start;width:100%;min-height:36px;padding:0 10px;border-color:transparent;background:transparent;color:#182230;font-size:13px;font-weight:700;gap:8px}.excel-menu-popover button:hover:not(:disabled){background:#eef6fb;border-color:transparent}.search-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;padding:2px;cursor:pointer;color:#667085;display:flex;align-items:center;min-height:unset}.search-clear:hover{color:#344054}.deals-search-count{font-size:12px;color:#667085;white-space:nowrap}.settings-save-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.settings-save-row button{margin-left:auto}.unsaved-warning{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:6px;background:#fff8e6;border:1px solid #f6c842;color:#92660a;font-size:12px;font-weight:600}.tool-chip-list{display:grid;gap:8px}.tool-rule-chip{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid #d9e1ec;border-radius:8px;background:#fbfcfe}.tool-chip-name{flex:0 0 auto;padding:5px 8px;border:1px solid #b9d7ed;border-radius:999px;background:#eaf6ff;color:#075985;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;font-weight:850;white-space:nowrap}.tool-chip-params,.tool-modal-params{display:flex;flex:1;flex-wrap:wrap;align-items:end;gap:8px;min-width:0}.tool-chip-params label,.tool-modal-params label{display:grid;flex:1 1 150px;gap:4px;min-width:120px;color:#667085;font-size:12px;font-weight:800}.tool-chip-params input,.tool-chip-params select{min-height:34px;padding:0 9px;font-size:13px}.tool-modal{width:min(560px,100%)}.compact-form{gap:12px}.asset-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.asset-list{display:grid;gap:8px}.asset-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #d9e1ec;border-radius:8px;background:#fbfcfe}.asset-row div{display:grid;min-width:0;gap:2px}.asset-row b,.asset-row small,.asset-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-row small{color:#14517c;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;font-weight:800}.asset-row span,.asset-row a{color:#667085;font-size:13px}.modal-backdrop{position:fixed;inset:0;display:grid;place-items:center;padding:24px;background:#1018286b;z-index:20}.deal-modal{width:min(780px,100%);max-height:min(760px,calc(100vh - 48px));overflow:auto;border:1px solid #d9e1ec;border-radius:8px;background:#fff;box-shadow:0 24px 80px #10182838}.deal-modal-tabs{display:flex;gap:0;border-bottom:1px solid #e4e9f1;padding:0 20px;background:#f9fafb}.deal-modal-tab{min-height:40px;padding:0 16px;font-size:13.5px;font-weight:700;color:#667085;border:none;border-bottom:2px solid transparent;background:transparent;cursor:pointer;transition:color .15s,border-color .15s;border-radius:0}.deal-modal-tab:hover{color:#182230}.deal-modal-tab.active{color:#175cd3;border-bottom-color:#175cd3}.visits-tab{padding:16px 20px 20px;display:flex;flex-direction:column;gap:12px;min-height:200px}.visits-toolbar{display:flex;gap:8px;align-items:center}.visit-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px;border:1px solid #e4e9f1;border-radius:10px;background:#f9fafb}.visit-form label{display:grid;gap:5px;font-size:12.5px;font-weight:600;color:#344054}.visit-form label input,.visit-form label select{min-height:36px;padding:0 10px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;font-size:13px}.visit-form-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.visits-list{display:flex;flex-direction:column;gap:14px}.visits-empty,.visits-loading{color:#98a2b3;font-size:13px;text-align:center;padding:20px 0;margin:0}.visits-empty.compact{padding:10px 0;text-align:left}.visit-group{display:grid;gap:8px;padding:10px;border:1px solid #e4e9f1;border-radius:10px;background:#f8fafc}.visit-group.upcoming{border-color:#abefc6;background:#f6fef9}.visit-group.past{background:#fbfcfe}.visit-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px 2px;color:#344054;font-size:12px;font-weight:850;text-transform:uppercase}.visit-group-head b{display:inline-flex;min-width:22px;min-height:22px;align-items:center;justify-content:center;border-radius:999px;background:#eef2f6;color:#667085;font-size:11px}.visit-group.upcoming .visit-group-head{color:#027a48}.visit-group.upcoming .visit-group-head b{background:#dcfae6;color:#027a48}.visit-card{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #e4e9f1;border-radius:10px;background:#fff;transition:box-shadow .15s}.visit-card:hover{box-shadow:0 2px 10px #10182812}.visit-card-main{display:flex;flex-direction:column;gap:3px;min-width:0}.visit-card-service{font-size:14px;font-weight:700;color:#182230}.visit-card-datetime{font-size:12.5px;color:#344054;font-weight:600}.visit-card-therapist{font-size:12px;color:#667085}.visit-card-notes{font-size:12px;color:#667085;font-style:italic}.visit-card-meta{font-size:11.5px;color:#98a2b3;margin-top:2px}.visit-card-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.visit-status-select{min-height:30px;padding:0 8px;border:1px solid #e4e9f1;border-radius:6px;font-size:12px;font-weight:700;background:#f9fafb;cursor:pointer}.visit-delete-btn{width:28px;height:28px;min-height:unset;color:#b42318;border-color:transparent}.services-panel .section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.service-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px;border:1px solid #e4e9f1;border-radius:10px;background:#f9fafb;margin-bottom:14px}.service-form label{display:grid;gap:5px;font-size:12.5px;font-weight:600;color:#344054}.service-form label.full{grid-column:1 / -1}.service-form label input,.service-form label textarea{min-height:36px;padding:6px 10px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;font-size:13px;resize:vertical}.service-form-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.services-list{display:flex;flex-direction:column;gap:6px}.services-empty,.services-loading{color:#98a2b3;font-size:13px;text-align:center;padding:16px 0;margin:0}.service-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e4e9f1;border-radius:8px;background:#fff;transition:opacity .15s}.service-row.inactive{opacity:.5}.service-row-info{display:flex;flex-direction:column;gap:2px;min-width:0}.service-row-name{font-size:14px;font-weight:700;color:#182230}.service-row-meta{font-size:12px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.service-row-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.small-btn{min-height:30px;padding:0 8px;font-size:13px}.ai-pause-modal{width:min(420px,100%)}.ai-pause-options{display:grid;gap:10px;padding:18px}.ai-pause-options .ghost-button{justify-content:flex-start}.qr-modal-body{display:grid;justify-items:center;gap:14px;padding:18px}.qr-image{width:min(280px,100%);aspect-ratio:1;border:1px solid #d9e1ec;border-radius:8px;background:#fff;object-fit:contain}.qr-code-text{display:grid;width:100%;gap:8px;padding:12px;border:1px solid #d9e1ec;border-radius:8px;background:#f8fafc;color:#344054;overflow-wrap:anywhere}.qr-code-text b{color:#14517c}.danger-action{border-color:#fecdca;color:#b42318}.modal-action-spacer{flex:1}.image-preview-backdrop{position:fixed;inset:0;display:grid;place-items:center;padding:28px;background:#101828db;z-index:60}.image-preview{display:block;max-width:min(100%,1280px);max-height:calc(100vh - 56px);border-radius:8px;object-fit:contain;box-shadow:0 24px 80px #0000005c}.image-preview-close{position:fixed;top:18px;right:18px;z-index:61;width:42px;min-width:42px;height:42px;padding:0;border-color:#ffffff38;background:#101828b8;color:#fff}.modal-head,.modal-actions{justify-content:space-between;padding:18px}.modal-head{border-bottom:1px solid #e4e9f1}.modal-head h2{margin-top:4px}.modal-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px}.modal-form label{display:grid;gap:7px;color:#344054;font-size:13px;font-weight:800}.modal-form .full{grid-column:span 2}.phone-check-status{min-height:17px;color:#667085;font-size:12px;font-weight:750}.phone-check-status.checking{color:#14517c}.phone-check-status.found{color:#027a48}.phone-check-status.not_found,.phone-check-status.error{color:#b42318}.phone-check-contact{display:inline-flex;min-width:0;align-items:center;gap:10px;padding:8px;border:1px solid #d1fadf;border-radius:8px;background:#f6fef9}.phone-check-contact .avatar{width:36px;height:36px}.phone-check-contact span{display:grid;min-width:0;gap:2px}.phone-check-contact b{overflow:hidden;color:#1d2939;font-size:13px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.phone-check-contact small{color:#027a48;font-size:12px;font-weight:800}.modal-actions{border-top:1px solid #e4e9f1;background:#fbfcfe}.modal-actions-right{display:inline-flex;align-items:center;justify-content:flex-end;gap:10px}.toast-stack{position:fixed;right:22px;bottom:22px;z-index:40;display:grid;width:min(460px,calc(100vw - 44px));min-height:var(--toast-stack-height, 54px);align-items:end;pointer-events:auto}.toast-stack:before{content:"";grid-area:1 / 1;align-self:stretch;width:100%;pointer-events:auto}.toast{grid-area:1 / 1;display:inline-flex;width:100%;align-items:flex-start;gap:10px;padding:12px 10px 12px 12px;color:#344054;font-size:14px;font-weight:750;animation:toast-in .18s ease-out;transform:translateY(calc(var(--stack-index) * -12px)) scale(calc(1 - var(--stack-index) * .025));transform-origin:bottom center;transition:transform .22s ease,opacity .22s ease}.toast-stack:hover .toast{transform:translateY(calc(var(--stack-index) * -86px)) scale(1)}.toast.clickable{cursor:pointer}.toast.clickable:focus-visible{outline:2px solid #14517c;outline-offset:3px}.toast-content{display:grid;flex:1;min-width:0;gap:2px;line-height:1.25}.toast-content strong,.toast-message{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}.toast-content strong{color:#1d2939;font-weight:850;-webkit-line-clamp:1}.toast-message{color:#475467;font-weight:750;-webkit-line-clamp:2}.toast-close{display:grid;width:22px;height:22px;min-width:22px;place-items:center;margin-left:auto;padding:0;border-color:transparent;border-radius:999px;background:transparent;color:#667085;opacity:.78;transition:background .15s ease,color .15s ease,opacity .15s ease}.toast-close:hover{background:#eef3f8;color:#344054;opacity:1}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:1180px){.crm-shell{grid-template-columns:72px minmax(0,1fr)}.sidebar{padding:16px 10px;align-items:center}.brand{justify-content:center}.brand>div{display:none}.nav-item{justify-content:center;width:44px;min-width:44px;padding:0;border-radius:10px}.nav-item .nav-badge{position:absolute;top:4px;right:2px;min-width:16px;height:16px;padding:0 3px;font-size:10px;margin:0}.nav-item .nav-label,.sidebar-status{display:none}.sidebar-bottom{align-items:center}.sidebar-logout{width:44px;min-width:44px;padding:0;border-radius:10px;font-size:0}.theme-toggle{width:44px;min-width:44px;padding:0;border-radius:10px;gap:0;font-size:0;justify-content:center}.theme-toggle button{padding:0}.theme-toggle span{display:none}.metrics,.settings-block-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.channel-grid{grid-template-columns:1fr}.channel-default-card,.channel-ai-window-card{align-items:stretch;flex-direction:column}.channel-timers-grid{grid-template-columns:1fr}.channel-default-switch,.channel-ai-window-switch{width:100%}.workspace{padding:16px}.workspace-inbox{height:100vh;height:100dvh;padding:0}.workspace-inbox .inbox-layout{border-radius:0;box-shadow:none}.inbox-layout{grid-template-columns:minmax(280px,32vw) minmax(0,1fr)}.dialog-list-head{padding:12px 12px 8px}.dialog-list-body{gap:6px;padding:8px 10px 12px}.dialog-list-tools{grid-template-columns:minmax(0,1fr) 40px}.dialog-filter-row{gap:5px}.filter-chip{min-height:34px}.dialog-row-main{grid-template-columns:40px minmax(0,1fr) 34px;min-height:76px;gap:8px;padding:8px}.avatar,.dialog-avatar-wrap{width:40px;height:40px}.thread-head{min-height:64px;gap:10px;padding:10px 12px}.thread-head .avatar.large{width:42px;height:42px}.thread-head .person{gap:10px}.thread-head .person>div{min-width:0}.thread-head .person strong,.thread-head .person p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-link{max-width:150px;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.thread-actions{flex:0 0 auto;flex-wrap:nowrap;gap:6px}.thread-actions .thread-deal-button,.thread-actions .thread-close-button{display:none}.mobile-thread-menu{position:relative;display:block}.mobile-thread-menu-button,.thread-actions .icon-button,.thread-actions .status-action{width:38px;min-width:38px;height:38px;min-height:38px}.mobile-thread-menu-popover{position:absolute;top:calc(100% + 8px);right:0;z-index:12;display:grid;width:min(230px,calc(100vw - 18px));gap:6px;padding:8px;border:1px solid #d9e1ec;border-radius:10px;background:#fff;box-shadow:0 18px 38px #10182824}.mobile-thread-menu-popover button{justify-content:flex-start;width:100%;min-height:38px;padding:0 10px;border-color:transparent;background:transparent;color:#182230;font-size:14px}.messages{gap:8px;padding:12px}.message{max-width:min(560px,86%);padding:10px 12px}.message.image-only,.message.image-caption{max-width:min(280px,86%)}.message.image-gallery-message{max-width:min(420px,92%)}.message-image-grid.count-2{grid-auto-rows:150px}.message-image-grid.count-3{grid-auto-rows:94px}.message-image-grid.count-4{grid-auto-rows:110px}.message-image-grid.count-many{grid-auto-rows:86px}.message-image-link img,.message-media{max-height:280px}.composer{gap:8px;padding:8px 10px}.composer-actions{gap:6px}.composer-actions .icon-button{width:38px;min-width:38px}.composer textarea{min-width:0}.composer .send-button{width:40px;min-width:40px;gap:0;padding:0;font-size:0}.composer .send-button svg{width:18px;height:18px}}@media(min-width:1181px)and (max-width:1360px){.crm-shell{grid-template-columns:minmax(188px,16vw) minmax(0,1fr);width:100%;max-width:100vw;overflow:hidden}.sidebar{gap:18px;padding:16px 12px}.brand{gap:10px}.brand img{width:44px;height:44px}.brand h1{font-size:16px;line-height:1.15}.nav-item{min-height:42px;padding:0 10px;gap:8px}.workspace-inbox{width:100%;max-width:100%;overflow:hidden}.workspace-inbox .inbox-layout,.inbox-layout{width:100%;max-width:100%;grid-template-columns:clamp(260px,31vw,330px) minmax(0,1fr)}.dialog-list,.thread,.thread-head,.messages,.composer{max-width:100%;min-width:0;box-sizing:border-box}.dialog-list-head{padding:10px 10px 8px}.dialog-list-body{padding:8px 8px 10px}.dialog-row-main{grid-template-columns:38px minmax(0,1fr) 32px;gap:8px;padding:8px}.avatar,.dialog-avatar-wrap{width:38px;height:38px}.thread-head{gap:8px;min-height:64px;padding:10px 12px}.thread-head .person{min-width:0;gap:9px}.thread-head .person>div{min-width:0}.thread-head .person strong,.thread-head .person p,.vk-presence-line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-actions{flex:0 0 auto;flex-wrap:nowrap;gap:6px;min-width:0}.thread-actions .thread-deal-button{width:42px;min-width:42px;height:42px;padding:0;gap:0;font-size:0}.thread-actions .thread-deal-button svg{width:18px;height:18px}.thread-actions .icon-button,.thread-actions .status-action{width:42px;min-width:42px;height:42px;min-height:42px}.thread-actions .status-action.with-timeout,.thread-actions .status-action.with-feedback{max-width:112px;min-width:42px;padding:0 8px}.thread-actions .status-timeout-text,.thread-actions .status-feedback{max-width:68px;overflow:hidden;text-overflow:ellipsis}.messages{padding:12px 10px;overflow-x:hidden}.message{max-width:min(520px,84%);overflow-wrap:anywhere}.message.manager{max-width:min(520px,82%)}.message.image-gallery-message{max-width:min(390px,88%)}.message a{overflow-wrap:anywhere;word-break:break-word}.composer{gap:6px;padding:8px;overflow:hidden}.composer-actions{gap:5px}.composer-actions .icon-button{width:36px;min-width:36px}.composer textarea{min-width:0}.composer .send-button{width:42px;min-width:42px;padding:0;gap:0;font-size:0}.composer .send-button svg{width:18px;height:18px}}@media(min-width:821px)and (max-width:1180px){.crm-shell{width:100%;max-width:100vw;overflow:hidden}.workspace-inbox{width:100%;max-width:100%;overflow:hidden}.workspace-inbox .inbox-layout,.inbox-layout{width:100%;max-width:100%;grid-template-columns:clamp(250px,31vw,310px) minmax(0,1fr)}.dialog-list,.thread,.thread-head,.messages,.composer{max-width:100%;min-width:0;box-sizing:border-box}.thread-head{min-height:62px;padding:9px 10px}.thread-head .person{min-width:0}.thread-head .person>div{min-width:0}.thread-actions{min-width:0}.messages{overflow-x:hidden}.message{overflow-wrap:anywhere}.message a{overflow-wrap:anywhere;word-break:break-word}.composer{overflow:visible}.quick-replies-popover{right:10px;left:auto;width:min(420px,calc(100vw - 340px));z-index:140}}@media(max-width:820px){.crm-shell{display:block;padding-bottom:calc(72px + env(safe-area-inset-bottom))}.crm-shell.mobile-chat-open{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;padding-bottom:0;overflow:hidden;overscroll-behavior:none}.crm-shell.mobile-chat-open .sidebar{display:none}.sidebar{position:fixed;inset:auto 0 0;z-index:20;display:block;width:auto;height:auto;max-height:none;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #d9e1ec;border-right:0;background:#fffffff0;box-shadow:0 -14px 34px #1018281a;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);overflow:visible}.brand{display:none}.nav{display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.sidebar-bottom{display:none}.nav-item{position:relative;flex-direction:column;width:100%;min-height:52px;gap:4px;padding:6px 4px;border-radius:10px;font-size:11px;line-height:1}.nav-item .nav-label{display:block}.nav-item svg{width:19px;height:19px}.nav-badge{position:absolute;top:4px;right:calc(50% - 26px);min-width:18px;height:18px;margin-left:0;padding:0 5px;font-size:10px}.workspace{padding:16px}.workspace-inbox,.crm-shell.mobile-chat-open .workspace{padding:0}.workspace-inbox{height:calc(100vh - 72px);height:calc(100dvh - 72px);min-height:0;overflow:visible}.crm-shell.mobile-chat-open .workspace-inbox{height:100vh;height:100dvh;min-height:0}.topbar,.task-title-row{align-items:flex-start;flex-direction:column}.topbar-actions{width:100%}.metrics,.tasks-grid,.settings-grid,.settings-block-grid,.form-panel.wide{grid-template-columns:1fr}.settings-home-head,.settings-detail-head{align-items:flex-start;flex-direction:column}.settings-head-actions,.settings-detail-title{width:100%;justify-content:space-between}.settings-head-actions{align-items:stretch;flex-direction:column}.settings-logout-button{width:100%}.settings-session-card,.kanban-toolbar{align-items:stretch;flex-direction:column}.form-panel.wide{grid-column:span 1}.inbox-layout{grid-template-columns:1fr;height:100%;min-height:0;border:0;border-radius:0;box-shadow:none}.crm-shell.mobile-chat-open .inbox-layout{height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;min-height:0;border:0;border-radius:0}.inbox-layout:not(.has-thread) .thread{display:none}.inbox-layout.has-thread .dialog-list{display:none}.dialog-list{height:100%;max-height:none;border-right:0;border-bottom:0;background:transparent}.dialog-list-head{padding:10px 12px 8px}.dialog-list-body{padding:8px 12px 14px}.thread{height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;overflow:hidden;overscroll-behavior:none}.thread-head{position:relative;top:0;z-index:5;align-items:center;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;min-height:64px;width:100%;max-width:100%;box-sizing:border-box;padding:10px 12px}.thread-head .person{flex:1 1 auto;min-width:0;gap:9px}.thread-head .person>div{min-width:0}.thread-head .avatar.large{width:38px;height:38px}.thread-head .person strong,.thread-head .person p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-back-button{display:inline-flex;width:38px;min-width:38px;height:38px;min-height:38px;padding:0;border-color:#d5dce7;background:#fff;color:#344054}.thread-actions{position:relative;min-width:0;flex:0 0 auto;flex-wrap:nowrap;justify-content:flex-end;gap:6px}.thread-actions .thread-deal-button,.thread-actions .thread-close-button{display:none}.mobile-thread-menu{position:relative;display:block}.mobile-thread-menu-button{width:38px;min-width:38px;height:38px;min-height:38px}.mobile-thread-menu-popover{position:absolute;top:calc(100% + 8px);right:0;z-index:12;display:grid;width:min(230px,calc(100vw - 18px));gap:6px;padding:8px;border:1px solid #d9e1ec;border-radius:10px;background:#fff;box-shadow:0 18px 38px #10182824}.mobile-thread-menu-popover button{justify-content:flex-start;width:100%;min-height:38px;padding:0 10px;border-color:transparent;background:transparent;color:#182230;font-size:14px}.mobile-thread-menu-popover button:hover:not(:disabled){background:#eef6fb}.thread-actions .ghost-button:not(.thread-deal-button){width:38px;min-width:38px;height:38px;min-height:38px;gap:0;padding:0;font-size:0}.thread-actions .ghost-button:not(.thread-deal-button) svg{width:18px;height:18px}.thread-actions .icon-button,.thread-actions .status-action{width:38px;min-width:38px;height:38px;min-height:38px}.thread-actions .status-action.with-timeout{max-width:118px;min-width:76px;padding:0 8px 0 7px}.thread-actions .status-action.with-feedback{max-width:132px;min-width:38px;padding:0 8px 0 7px}.thread-actions .status-timeout-text{max-width:72px;text-overflow:ellipsis}.thread-actions .status-feedback{text-overflow:ellipsis}.thread-actions .status-action.with-timeout .thread-status-icon,.thread-actions .status-action.with-feedback .thread-status-icon{width:20px;height:20px}.composer{gap:8px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.composer-actions{gap:6px}.composer-actions .icon-button{width:36px;min-width:36px}.messages{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.composer .send-button{width:40px;min-width:40px;gap:0;padding:0;font-size:0}.composer .send-button svg{width:18px;height:18px}.selected-file{grid-column:1 / -1}.message{max-width:92%}.modal-form{grid-template-columns:1fr}.modal-form .full{grid-column:span 1}}.tool-strip{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:6px;padding:2px 16px 6px}.tool-chip-wrapper{display:flex;flex-direction:column;align-items:center;gap:5px}.tool-chip{display:inline-flex;align-items:center;gap:5px;min-height:22px;padding:3px 10px 3px 8px;border:1px solid #abefc6;border-radius:999px;background:#f0fff4;color:#027a48;font-size:11.5px;font-weight:700;font-family:inherit;cursor:pointer;transition:background .12s,border-color .12s}.tool-chip:hover:not(:disabled){background:#dcfae6;border-color:#75e0a7}.tool-chip.tool-chip-open{background:#dcfae6;border-color:#75e0a7}.tool-chip-icon{font-size:12px;line-height:1}.tool-chip-label{letter-spacing:.01em}.tool-chip-arrow{font-size:8px;opacity:.55;margin-left:1px}.tool-chip-detail{min-width:180px;max-width:280px;padding:8px 10px;border:1px solid #abefc6;border-radius:8px;background:#f6fef9;display:grid;gap:5px}.tool-chip-row{display:flex;gap:8px;align-items:baseline;font-size:12px;line-height:1.4}.tool-chip-row-label{flex:0 0 auto;color:#6eaf8c;font-size:11px;font-weight:750;min-width:56px;text-transform:uppercase;letter-spacing:.04em}.tool-chip-row-value{color:#065f46;font-weight:600;word-break:break-word}.emoji-toggle.active{background:#f0fff4;border-color:#abefc6;color:#027a48}.emoji-picker{position:absolute;bottom:calc(100% + 8px);left:0;z-index:120;width:296px;background:#fff;border:1px solid #e4e9f1;border-radius:12px;box-shadow:0 8px 30px #10182824;overflow:hidden;display:flex;flex-direction:column}.emoji-picker-tabs{display:flex;border-bottom:1px solid #e4e9f1;padding:4px 6px 0;gap:2px}.emoji-tab{min-height:32px;padding:0 8px;font-size:17px;border:none;border-bottom:2px solid transparent;background:transparent;border-radius:6px 6px 0 0;cursor:pointer;opacity:.55;transition:opacity .15s,border-color .15s}.emoji-tab:hover{opacity:.85;background:#f5f8ff}.emoji-tab.active{opacity:1;border-bottom-color:#175cd3;background:transparent}.emoji-picker-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;padding:8px;max-height:200px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(16,24,40,.15) transparent}.emoji-btn{min-height:32px;padding:0;font-size:20px;border:none;background:transparent;border-radius:6px;cursor:pointer;line-height:1;transition:background .1s}.emoji-btn:hover{background:#f0f4ff}.quick-replies-popover{position:absolute;bottom:calc(100% + 8px);left:0;z-index:125;display:flex;flex-direction:column;width:min(420px,calc(100vw - 24px));max-height:min(560px,calc(100dvh - 120px));overflow:hidden;border:1px solid #d9e1ec;border-radius:12px;background:#fff;box-shadow:0 18px 38px #10182829}.quick-replies-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #eef2f6}.quick-replies-head b{color:#101828;font-size:13px}.quick-replies-list{display:grid;flex:0 1 300px;min-height:80px;max-height:300px;overflow-y:auto;overscroll-behavior:contain;padding:6px;gap:4px}.quick-replies-list>p{margin:8px;color:#667085;font-size:13px;font-weight:700}.quick-reply-item{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px;border-radius:9px}.quick-reply-use{display:block;min-width:0;padding:9px 10px;border:0;border-radius:9px;background:#f8fbff;color:#344054;text-align:left;cursor:pointer}.quick-reply-use:hover{background:#eef6ff}.quick-reply-use span{display:grid;min-width:0;gap:3px}.quick-reply-use b,.quick-reply-use small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quick-reply-use b{color:#101828;font-size:13px}.quick-reply-use small{color:#667085;font-size:12px;font-weight:650}.quick-reply-item em{display:flex;gap:4px;padding-right:4px}.quick-reply-editor{flex:0 0 auto;display:grid;gap:8px;width:100%;min-width:0;overflow:visible;padding:10px;border-top:1px solid #eef2f6;background:#fbfcfe}.quick-reply-editor input,.quick-reply-editor textarea{width:100%;border:1px solid #d9e1ec;border-radius:8px;background:#fff;color:#101828;font:inherit}.quick-reply-editor input{height:36px;padding:0 10px}.quick-reply-editor textarea{height:min(178px,28dvh);min-height:96px;max-height:240px;resize:vertical;overflow-y:auto;padding:9px 10px}.quick-reply-editor button{justify-self:end}.reaction-bar{display:grid;grid-template-columns:repeat(6,1fr);align-items:center;gap:4px;padding:6px 4px 8px;border-bottom:1px solid #f0f2f5}.message-context-menu .reaction-pick-btn,.message-context-menu .reaction-more-btn,.message-context-menu .reaction-picker-btn{display:inline-flex;width:100%;min-width:0;min-height:34px;align-items:center;justify-content:center;gap:0;padding:0;color:#182230;font-size:20px;border:none;background:transparent;border-radius:999px;cursor:pointer;line-height:1;transition:background .12s,transform .1s}.message-context-menu .reaction-pick-btn:hover,.message-context-menu .reaction-picker-btn:hover{background:#f0f4ff;transform:scale(1.14)}.message-context-menu .reaction-more-btn{background:#eef2f6;color:#667085}.message-context-menu .reaction-more-btn.active{background:#dbe7f2;color:#14517c}.message-context-menu .reaction-more-btn svg{transition:transform .16s ease}.message-context-menu .reaction-more-btn.active svg{transform:rotate(180deg)}.reaction-wrap{position:relative}.reaction-picker-panel{position:absolute;top:48px;left:0;z-index:2;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;width:100%;box-sizing:border-box;max-height:min(280px,48vh);overflow-y:auto;padding:8px;border:1px solid #d9e1ec;border-radius:12px;background:#fff;box-shadow:0 18px 38px #1018282e}.message-context-menu .reaction-picker-btn{width:100%;height:34px;font-size:19px}.badge{display:inline-block;padding:2px 10px;border-radius:12px;font-size:12px;font-weight:600;letter-spacing:.01em}.badge.good{background:#e6f9f0;color:#1a7a4a}.badge.warn{background:#fff3e0;color:#b55c00}.badge.danger{background:#fef3f2;color:#b42318}.compact-status-panel{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px}.compact-status-copy,.compact-status-actions{display:flex;align-items:center;gap:10px}.compact-status-copy>span:last-child{display:grid;gap:2px}.compact-status-copy small{color:#667085;font-size:12px}.compact-status-actions{flex-wrap:wrap;justify-content:flex-end}.asset-manager-modal,.sketch-log-modal{width:min(720px,100%)}.asset-manager-actions{display:flex;justify-content:flex-end}.sketch-log-list{display:grid;max-height:min(560px,68vh);overflow-y:auto;padding:12px 20px}.sketch-log-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px;padding:10px 0;border-bottom:1px solid #eef2f6}.sketch-log-row div{display:grid;min-width:0;gap:3px}.sketch-log-row b,.sketch-log-row small{overflow-wrap:anywhere;font-size:12px}.sketch-log-row time{color:#98a2b3;font-size:11px;white-space:nowrap}@media(max-width:720px){.compact-status-panel,.compact-status-copy,.compact-status-actions{align-items:stretch}.compact-status-panel{flex-direction:column}.compact-status-actions{justify-content:flex-start}.sketch-log-row{grid-template-columns:auto minmax(0,1fr)}.sketch-log-row time{grid-column:2}}.channel-info{display:flex;flex-direction:column;gap:8px}.channel-info-row{display:flex;align-items:flex-start;gap:10px;font-size:13px}.channel-info-row b{min-width:120px;color:#5a6479;flex-shrink:0}.channel-form{display:flex;flex-direction:column;gap:12px}.channel-form label small.hint{display:block;font-size:11px;color:#8898aa;margin-top:3px}.channel-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}button.danger{background:#fff0f0;color:#c0392b;border-color:#e0b0b0}button.danger:hover{background:#ffe4e4}.error-text{color:#c0392b;font-size:13px;margin:0}.success-text{color:#1a7a4a;font-size:13px;margin:0}.hint{color:#8898aa;font-size:12px;margin:0;line-height:1.5}.text-good{color:var(--color-good, #1a7a4a)}.text-warn{color:var(--color-warn, #b55c00)}.jnl-root{display:flex;flex-direction:column;height:100%;overflow:hidden;background:#f5f6f8}.jnl-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px;height:52px;background:#fff;border-bottom:1px solid #e4e8ef;flex-shrink:0;box-shadow:0 1px 4px #0000000f;z-index:10;overflow:visible}.jnl-topbar-left{display:flex;align-items:center;gap:6px;flex-shrink:0;min-width:0;overflow:hidden}.jnl-topbar-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.jnl-icon-btn{width:32px;height:32px;border:none;background:none;border-radius:6px;color:#5a6479;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .12s,color .12s;flex-shrink:0}.jnl-icon-btn:hover{background:#f0f3f8;color:#182230}.jnl-today-btn{height:34px;padding:0 14px;border:1px solid #d0d8e8;border-radius:8px;background:#fff;font-size:13px;font-weight:500;color:#182230;cursor:pointer;transition:background .12s,border-color .12s;white-space:nowrap;flex-shrink:0}.jnl-today-btn:hover{background:#f0f3f8}.jnl-nav-btn{width:34px;height:34px;border:1px solid #d0d8e8;border-radius:8px;background:#fff;cursor:pointer;color:#273246;display:flex!important;align-items:center!important;justify-content:center!important;transition:background .12s,border-color .12s,color .12s,box-shadow .12s;flex-shrink:0;position:relative}.jnl-nav-btn:before,.jnl-nav-btn:after{content:"";display:block;position:absolute;left:50%;top:50%;width:9px;height:2px;border-radius:999px;background:currentColor;opacity:.72}.jnl-nav-btn--prev:before{transform:translate(-58%,-170%) rotate(-45deg)}.jnl-nav-btn--prev:after{transform:translate(-58%,70%) rotate(45deg)}.jnl-nav-btn--next:before{transform:translate(-42%,-170%) rotate(45deg)}.jnl-nav-btn--next:after{transform:translate(-42%,70%) rotate(-45deg)}.jnl-nav-btn:hover{background:#f7f9ff;border-color:#b9c7ff;color:#315eea;box-shadow:0 1px 5px #315eea17}.jnl-date-label{font-size:14px;font-weight:700;color:#182230;margin-left:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.jnl-sell-btn{display:flex;align-items:center;gap:5px;height:30px;padding:0 14px;background:#4f7aff;color:#fff;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:background .12s;white-space:nowrap;flex-shrink:0}.jnl-sell-btn:hover{background:#3a65e8}.jnl-view-seg{display:flex;align-items:center;gap:2px;border:1px solid #d7deec;border-radius:9px;padding:2px;flex-shrink:0;background:#f6f8fc}.jnl-view-seg button{height:28px;padding:0 13px;border:none;background:transparent;font-size:13px;font-weight:500;color:#5a6479;border-radius:7px;cursor:pointer;white-space:nowrap;transition:background .12s,color .12s,box-shadow .12s}.jnl-view-seg button.active{background:#4f7aff;color:#fff;font-weight:600;box-shadow:0 1px 5px #4f7aff3d}.jnl-time-range{display:flex;align-items:center;gap:6px;flex-shrink:0}.jnl-time-seg{display:flex;align-items:center;gap:2px;padding:2px;border:1px solid #d7deec;border-radius:9px;background:#f6f8fc;flex-shrink:0}.jnl-time-seg button{height:28px;padding:0 10px;border:none;border-radius:7px;background:transparent;color:#5a6479;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .12s,color .12s,box-shadow .12s}.jnl-time-seg button.active{background:#e8f1ff;color:#2259d6;box-shadow:0 1px 5px #4f7aff24}.jnl-time-custom{display:flex;align-items:center;gap:4px;height:34px;padding:2px 5px;border:1px solid #d7deec;border-radius:9px;background:#fff}.jnl-time-custom select{width:auto;min-width:72px;height:28px;min-height:28px;padding:0 7px;border:0;border-radius:7px;background:#f6f8fc;color:#182230;font-size:12px;font-weight:700;cursor:pointer}.jnl-time-custom span{color:#8898aa;font-size:13px;font-weight:800}.jnl-staff-select{height:30px;padding:0 8px;border:1px solid #d0d8e8;border-radius:6px;font-size:12px;background:#fff;color:#182230;cursor:pointer;max-width:160px}.jnl-density{position:relative;flex-shrink:0}.jnl-density-btn{width:34px;height:34px;padding:0;border:1px solid #d7deec;border-radius:8px;background:#fff;color:#273246;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .12s,border-color .12s,color .12s,box-shadow .12s}.jnl-density-btn:hover{background:#f7f9ff;border-color:#b9c7ff;color:#315eea;box-shadow:0 1px 5px #315eea1a}.jnl-density-menu{position:absolute;right:0;top:38px;width:210px;padding:6px;background:#fff;border:1px solid #dce3f0;border-radius:10px;box-shadow:0 14px 34px #0f172a24;z-index:50}.jnl-density-menu button{width:100%;border:none;background:transparent;border-radius:8px;padding:8px 9px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:2px;transition:background .12s}.jnl-density-menu button:hover{background:#f5f7fb}.jnl-density-menu button.active{background:#eef3ff}.jnl-density-menu span{font-size:13px;font-weight:700;color:#182230}.jnl-density-menu small{font-size:11px;color:#7b879a}.jnl-body{flex:1;overflow:hidden;display:flex;flex-direction:column}.jnl-loading{flex:1;display:flex;align-items:center;justify-content:center;color:#8898aa}.staff-avatar{border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;flex-shrink:0;-webkit-user-select:none;user-select:none;overflow:hidden}.staff-avatar img{width:100%;height:100%;object-fit:cover;display:block}.day-cal-wrap{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;overflow:hidden}.day-grid-scroll{flex:1;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}.day-grid-wrap{display:flex;min-width:100%;flex-direction:column}.day-grid-wrap>.day-staff-row,.day-grid-wrap>.day-grid{display:grid;grid-template-columns:56px repeat(var(--staff-count),minmax(200px,1fr));width:100%}.day-staff-row{flex-shrink:0;background:#fff;border-bottom:2px solid #e4e8ef;position:sticky;top:0;z-index:5}.day-time-gutter{width:56px;flex-shrink:0;border-right:1px solid #e4e8ef}.day-staff-header{min-width:0;display:flex;align-items:center;gap:10px;padding:10px 12px;border-right:1px solid #e4e8ef}.day-staff-info{display:flex;flex-direction:column;min-width:0}.day-staff-name{font-size:13px;font-weight:600;color:#182230;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-staff-role{font-size:11px;color:#8898aa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-no-staff{padding:12px 16px;font-size:13px;color:#8898aa;font-style:italic}.day-grid{position:relative}.day-time-col{width:56px;flex-shrink:0;border-right:1px solid #e4e8ef;background:#fafbfd;position:sticky;left:0;z-index:3}.day-time-slot{height:var(--slot-h, 48px);position:relative;border-bottom:1px solid #f0f2f5}.day-time-slot.hour{border-bottom-color:#e4e8ef}.day-time-label{position:absolute;top:-9px;right:6px;font-size:11px;font-weight:500;color:#8898aa;background:#fafbfd;padding:0 2px;line-height:18px}.day-staff-col{min-width:0;position:relative;border-right:1px solid #e4e8ef}.day-slot-cell{height:var(--slot-h, 48px);border-bottom:1px solid #f0f2f5;cursor:pointer;transition:background .1s}.day-slot-cell.hour{border-bottom-color:#e4e8ef}.day-slot-cell:hover{background:#4f7aff0d}.day-now-line{position:absolute;left:0;right:0;height:2px;background:#ef4444;z-index:4;pointer-events:none}.day-now-line:before{content:"";position:absolute;left:-4px;top:-4px;width:10px;height:10px;border-radius:50%;background:#ef4444}.journal-scroll-edge{display:none}@media(hover:hover)and (pointer:fine){.journal-scroll-edge{position:absolute;top:0;bottom:0;z-index:12;display:flex;width:52px;align-items:center;justify-content:center;color:transparent;cursor:ew-resize;transition:background .16s,color .16s}.journal-scroll-edge:hover{background:#14517c17;color:#14517c}.journal-scroll-edge-left{left:0}.journal-scroll-edge-left svg{transform:rotate(180deg)}.journal-scroll-edge-right{right:0}}.visit-block{position:absolute;left:3px;right:3px;border-left:3px solid;border-radius:5px;padding:4px 6px;cursor:pointer;font-size:11px;overflow:hidden;transition:box-shadow .12s,filter .12s;z-index:2;box-shadow:0 1px 4px #00000014}.visit-block:hover{filter:brightness(.96);box-shadow:0 3px 10px #00000026;z-index:3}.visit-block-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:2px}.visit-block-time{font-size:10px;font-weight:600;color:#00000080}.visit-block-status-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.visit-block-service{font-weight:700;color:#182230;font-size:11px;line-height:1.3}.visit-block-client{font-size:11px;font-weight:600;margin-top:1px}.visit-block-phone{font-size:10px;color:#5a6479;margin-top:1px}.week-cal-wrap{display:flex;flex:1;overflow:hidden}.week-col{flex:1;display:flex;flex-direction:column;border-right:1px solid #e4e8ef;background:#fff;cursor:pointer;transition:background .1s;min-width:0}.week-col:last-child{border-right:none}.week-col.today{background:#f8f9ff}.week-col:hover{background:#f5f7ff}.week-col-header{display:flex;flex-direction:column;align-items:center;padding:10px 8px 8px;border-bottom:2px solid #e4e8ef;position:sticky;top:0;background:inherit;z-index:1}.week-col-wd{font-size:11px;text-transform:uppercase;color:#8898aa;letter-spacing:.05em}.week-col-num{font-size:20px;font-weight:700;color:#182230;line-height:1.2}.week-col-num.today-num{background:#4f7aff;color:#fff;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:15px}.week-col-body{flex:1;overflow-y:auto;padding:6px 4px;display:flex;flex-direction:column;gap:4px}.week-empty{color:#d0d8e8;font-size:16px;text-align:center;padding:10px 0}.week-visit-card{border-left:3px solid;border-radius:5px;padding:5px 7px;font-size:11px;cursor:pointer;box-shadow:0 1px 3px #0000000f;transition:box-shadow .12s}.week-visit-card:hover{box-shadow:0 2px 8px #0000001f}.week-visit-time{font-size:10px;font-weight:600;color:#00000073}.week-visit-service{font-weight:700;color:#182230;line-height:1.3}.week-visit-client{font-size:10px;font-weight:600;margin-top:1px}.week-visit-master{font-size:10px;color:#8898aa;margin-top:1px}.wk-grid-wrap{--week-time-gutter: 56px;display:flex;flex-direction:column}.wk-sticky-hdr{display:grid;grid-template-columns:var(--week-time-gutter) repeat(7,minmax(130px,1fr));position:sticky;top:0;z-index:5;background:#fff;border-bottom:2px solid #e4e8ef;flex-shrink:0}.wk-grid-wrap .day-grid{display:grid;grid-template-columns:var(--week-time-gutter) repeat(7,minmax(130px,1fr));position:relative}.wk-grid-wrap .day-time-gutter,.wk-grid-wrap .day-time-col{width:auto;min-width:0}.wk-grid-wrap .day-staff-col{min-width:0}.wk-grid-wrap .day-time-label{top:4px}.week-grid-day-hdr{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 6px;border-right:1px solid #e4e8ef;gap:2px}.week-grid-day-hdr.wk-today{background:#f0f4ff}.week-col-mon{font-size:10px;color:#8898aa;text-transform:capitalize}.day-staff-col.wk-today-col{background:#4f7aff08}.journal-modal-backdrop{z-index:300}.wk-staff-picker{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;background:#f5f6f8}.wk-staff-picker-hint{font-size:13px;color:#8898aa;margin-bottom:20px}.wk-staff-grid{display:flex;flex-direction:column;gap:10px;width:100%;max-width:480px}.wk-staff-card{display:flex;align-items:center;gap:14px;padding:14px 18px;background:#fff;border:1px solid #e4e8ef;border-radius:12px;cursor:pointer;transition:box-shadow .12s,border-color .12s,transform .08s;text-align:left}.wk-staff-card:hover{border-color:#4f7aff;box-shadow:0 4px 16px #4f7aff1f;transform:translateY(-1px)}.wk-staff-card-info{flex:1;display:flex;flex-direction:column;gap:2px}.wk-staff-card-info strong{font-size:14px;font-weight:700;color:#182230}.wk-staff-card-info span{font-size:12px;color:#8898aa}.jnl-staff-chip{display:flex;align-items:center;gap:7px;height:32px;padding:0 10px 0 6px;background:#f0f4ff;border:1px solid #c7d7ff;border-radius:20px;cursor:pointer;font-size:13px;font-weight:600;color:#182230;transition:background .12s;flex-shrink:0}.jnl-staff-chip:hover{background:#e0e9ff}.jnl-staff-chip svg{color:#8898aa}.staff-pick-backdrop{position:fixed;inset:0;background:#0f172a59;display:flex;align-items:center;justify-content:center;z-index:400}.staff-pick-modal{background:#fff;border-radius:20px;box-shadow:0 12px 40px #0000002e;width:min(420px,calc(100vw - 32px));overflow:hidden;padding-bottom:16px}.staff-pick-header{display:flex;align-items:center;justify-content:space-between;padding:26px 28px 22px;font-size:20px;font-weight:700;color:#182230;border-bottom:1px solid #f0f2f6}.staff-pick-item{display:flex;align-items:center;justify-content:flex-start;gap:18px;width:100%;padding:14px 28px;box-sizing:border-box;background:none;border:none;cursor:pointer;text-align:left;transition:background .1s}.staff-pick-item:hover{background:#f4f6fb}.staff-pick-name{font-size:18px;font-weight:700;color:#182230}.staff-pick-role{font-size:15px;font-weight:600;color:#8898aa;margin-top:2px}.wk-dd-name{font-size:13px;font-weight:600;color:#182230}.wk-dd-role{font-size:11px;color:#8898aa;margin-top:1px}.appt-modal{position:relative;display:flex;flex-direction:column;width:min(92vw,720px);max-height:90vh;overflow:visible;border:none;border-radius:18px;background:#fff;box-shadow:0 12px 48px #00000038}.appt-modal-body{flex:1;overflow-y:auto;padding:18px 18px 14px;background:#fff;border-radius:18px 18px 0 0}.floating-close{position:absolute;top:-12px;right:-12px;z-index:2;width:30px;height:30px;min-width:30px;min-height:30px;max-width:30px;max-height:30px;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid rgba(208,216,232,.82);border-radius:50%;background:#ffffffe0;color:#667085;box-shadow:0 8px 22px #0f172a29;cursor:pointer}.floating-close:hover{background:#fff;color:#182230}.status-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}.status-tab{height:40px;border:none;border-radius:10px;background:#eef1f7;color:#333941;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:600;white-space:nowrap;transition:background .14s,color .14s,box-shadow .14s,transform .08s}.status-tab svg{color:var(--status-color)}.status-tab:hover{background:#e4e9f2}.status-tab:active{transform:translateY(1px)}.status-tab.active{background:#424953;color:#fff;box-shadow:0 5px 14px #0f172a29}.status-tab.active svg{color:#fff}.appt-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;padding:0}.appt-grid label{display:flex;flex-direction:column;gap:4px;min-width:0;color:#5a6479;font-size:12px;font-weight:500}.appt-grid label input,.appt-grid label select,.appt-grid label textarea,.contact-combo input,.contact-combo select{width:100%;min-height:42px;margin-top:0;padding:0 12px;border:1px solid #d5dce7;border-radius:8px;background:#fff;color:#182230;font:inherit;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}.appt-grid label textarea{min-height:92px;padding:12px;resize:vertical}.appt-grid label input:focus,.appt-grid label select:focus,.appt-grid label textarea:focus,.contact-combo input:focus,.contact-combo select:focus{outline:none;border-color:#b9c7ff;box-shadow:0 0 0 3px #4f7aff1f}.appt-grid .span2{grid-column:span 2}.appointment-file-field{display:grid;gap:8px;padding:10px;border:1px solid #d5dce7;border-radius:8px;background:#f8fafc}.appt-grid label .appointment-file-field input[type=file]{min-height:0;padding:7px;background:#fff;cursor:pointer}.appointment-file-chip{display:flex;min-width:0;align-items:center;gap:7px;padding:8px 10px;border:1px solid #d5dce7;border-radius:7px;background:#fff;color:#344054}.appointment-file-chip span,.appointment-file-chip a{overflow:hidden;flex:1;color:inherit;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.appointment-file-chip button{display:grid;width:26px;height:26px;padding:0;border:0;border-radius:6px;background:transparent;color:#667085;place-items:center}.format-toggle{position:relative;width:100%;height:36px;min-height:36px;padding:0;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid #d7deec;border-radius:999px;background:#f6f8fc;color:#5a6479;font-size:12px;font-weight:800;cursor:pointer}.format-toggle span:not(.format-thumb){position:relative;z-index:1;display:flex;align-items:center;justify-content:center}.format-thumb{position:absolute;top:3px;left:3px;width:calc(50% - 6px);height:28px;border-radius:999px;background:#fff;box-shadow:0 2px 8px #0f172a1f;transition:transform .18s ease}.format-toggle.online .format-thumb{transform:translate(calc(100% + 6px))}.client-box{grid-column:span 2;display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:linear-gradient(180deg,#f8fafc,#fff)}.client-box-head{display:flex;align-items:center;gap:10px;min-width:0}.client-heading{min-width:0}.client-title{color:#182230;font-size:12px;font-weight:800}.client-subtitle{max-width:330px;margin-top:1px;overflow:hidden;color:#667085;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.client-open{margin-left:auto;min-height:30px;padding:0 9px;overflow:hidden;border:1px solid #d7deec;border-radius:8px;background:#fff;color:#475467;font-size:12px;font-weight:750;cursor:pointer}.client-open:hover{background:#f1f5f9;color:#182230}.client-fields{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:10px}.contact-combo{display:grid;grid-template-columns:minmax(110px,.42fr) minmax(0,1fr);overflow:hidden;border:1px solid #d5dce7;border-radius:8px;background:#fff}.contact-combo input,.contact-combo select{border:none;border-radius:0}.contact-messenger{background:#f6f8fc!important;border-right:1px solid #e4e8ef!important;font-weight:650}.client-avatar{display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;background:#dbeafe;color:#2563eb;font-weight:800;flex-shrink:0}.appt-client-avatar{width:38px;height:38px;font-size:15px}.action-content{display:inline-flex;align-items:center;justify-content:center;gap:7px;animation:action-swap .24s ease both;white-space:nowrap}@keyframes action-swap{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.appt-modal-actions .save-button{margin-left:auto;min-height:40px;padding:0 18px;border:1px solid #14517c;border-radius:8px;background:#14517c;color:#fff;font-size:14px;font-weight:750}.appt-modal-actions{gap:8px;padding:12px 20px;border-top:1px solid #e4e8ef;background:#fafbfd;border-radius:0 0 18px 18px}.appt-modal-actions .save-button:disabled{opacity:.7;cursor:wait}.danger-ghost{color:#ef4444!important}.danger-ghost:hover{background:#fef2f2!important}.visit-block-client-row{display:flex;align-items:center;gap:5px;min-width:0;margin-top:2px}.visit-client-avatar{width:18px;height:18px;background:#ffffffb8;color:#182230;font-size:10px}@media(max-width:900px){.vk-import-controls,.vk-import-stats{grid-template-columns:1fr}}@media(max-width:900px){.appt-modal{width:calc(100vw - 28px);max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px)}.appt-modal-body{padding:16px 14px 12px}.floating-close{top:8px;right:8px;background:#fff}.appt-grid,.client-fields{grid-template-columns:1fr}.appt-grid .span2,.client-box{grid-column:span 1}.status-tabs{grid-template-columns:repeat(2,minmax(0,1fr));padding-right:34px}}@media(max-width:720px){.appt-modal{width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}.appt-grid,.client-fields{grid-template-columns:1fr}.appt-grid .span2,.client-box{grid-column:span 1}.status-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}.visit-resize-handle{position:absolute;bottom:0;left:0;right:0;height:10px;cursor:ns-resize;border-radius:0 0 4px 4px;background:linear-gradient(to bottom,transparent,rgba(0,0,0,.12));opacity:0;transition:opacity .15s;display:flex;align-items:center;justify-content:center}.visit-resize-handle:after{content:"";width:24px;height:3px;border-radius:2px;background:#00000040}.visit-block:hover .visit-resize-handle{opacity:1}.visit-block.is-dragging{opacity:.8;box-shadow:0 8px 24px #00000038!important;z-index:10;pointer-events:none}.jnl-nav-btn{display:flex!important;align-items:center!important;justify-content:center!important}.mobile-nav-more,.composer-tools-toggle,.composer-action-label{display:none}@media(max-width:820px){.crm-shell{padding-bottom:calc(58px + env(safe-area-inset-bottom))}.sidebar{padding:6px 8px calc(6px + env(safe-area-inset-bottom))}.nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible}.nav-section-dialogs{order:1}.nav-section-journal{order:2}.nav-section-tasks{order:3}.nav-section-deals,.nav-section-stats,.nav-section-settings{display:none}.mobile-nav-more{position:relative;order:4;display:block;min-width:0}.mobile-nav-more-button{width:100%;min-height:46px;padding:0}.mobile-nav-more-menu{position:absolute;right:0;bottom:calc(100% + 8px);z-index:45;display:grid;width:min(230px,calc(100vw - 18px));gap:4px;padding:8px;border:1px solid #d9e1ec;border-radius:10px;background:#fff;box-shadow:0 18px 42px #1018282e}.mobile-nav-more-menu button{justify-content:flex-start;width:100%;min-height:40px;padding:0 10px;border-color:transparent;background:transparent;color:#182230;font-size:14px}.nav-item{min-height:46px;padding:5px 2px;gap:3px;font-size:10px}.nav-item svg{width:18px;height:18px}.nav-badge{top:2px;right:calc(50% - 24px)}.workspace-inbox{height:calc(100vh - 58px);height:calc(100dvh - 58px)}.dialog-list-body{padding-bottom:8px}.composer{display:grid;grid-template-columns:minmax(0,1fr) 40px 40px;align-items:end;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom))}.composer textarea{grid-column:1;min-width:0;min-height:42px}.composer-tools-toggle{display:inline-flex;grid-column:2;width:40px;min-width:40px;height:42px;min-height:42px;padding:0}.composer-tools-toggle.active{border-color:#14517c;background:#e7f3fb;color:#075985}.composer .send-button{grid-column:3;width:40px;min-width:40px;height:42px;min-height:42px}.composer-actions{position:absolute;right:8px;bottom:calc(100% + 8px);z-index:22;display:none;width:min(236px,calc(100vw - 18px));gap:4px;padding:8px;border:1px solid #d9e1ec;border-radius:10px;background:#fff;box-shadow:0 18px 42px #10182829}.composer-actions.open{display:grid}.composer-actions .icon-button{justify-content:flex-start;width:100%;min-width:0;min-height:40px;height:40px;padding:0 10px;border-color:transparent;background:transparent;color:#182230;font-size:14px}.composer-actions .icon-button:hover:not(:disabled){background:#eef6fb}.composer-action-label{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quick-replies-popover,.emoji-picker{right:8px;left:8px;width:auto}.quick-replies-popover{max-height:min(620px,calc(100dvh - 118px))}.quick-reply-editor textarea{height:min(190px,34dvh);max-height:260px}}@media(min-width:821px)and (max-width:1360px){.composer{overflow:visible}.quick-replies-popover,.emoji-picker{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:calc(74px + env(safe-area-inset-bottom));left:auto;width:min(420px,calc(100vw - 28px));max-height:min(620px,calc(100dvh - 112px));z-index:240}.emoji-picker{width:min(328px,calc(100vw - 28px))}.emoji-picker-grid{max-height:min(300px,42dvh)}}@media(max-width:720px){.workspace:not(.workspace-inbox){min-height:calc(100vh - 58px);min-height:calc(100dvh - 58px);padding:0}.jnl-root{height:calc(100vh - 58px);height:calc(100dvh - 58px)}.jnl-topbar{height:auto;min-height:48px;gap:6px;padding:7px 8px;overflow-x:auto;scrollbar-width:none}.jnl-topbar::-webkit-scrollbar{display:none}.jnl-topbar-left,.jnl-topbar-right{gap:5px}.jnl-date-label{max-width:118px;font-size:12px}.jnl-today-btn,.jnl-nav-btn,.jnl-density-btn{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;font-size:0}.jnl-today-btn:before{content:"С";font-size:13px;font-weight:850}.jnl-sell-btn{height:32px;min-height:32px;padding:0 9px;font-size:12px}.jnl-view-seg button{height:28px;padding:0 9px;font-size:12px}.jnl-time-range{gap:4px}.jnl-time-seg button{height:28px;padding:0 8px;font-size:12px}.jnl-time-custom{height:32px;padding:2px 4px}.jnl-time-custom select{min-width:66px;height:26px;min-height:26px;padding:0 5px;font-size:11px}.jnl-staff-select{max-width:120px;height:32px;min-height:32px;font-size:12px}.day-cal-wrap{overflow:hidden}.day-staff-row{position:sticky;top:0;z-index:8}.day-grid-scroll{overflow:auto}.day-staff-header,.day-staff-col{min-width:180px}.day-time-gutter,.day-time-col{width:48px;min-width:48px}.day-time-col{position:sticky;left:0}.wk-grid-wrap{min-width:920px!important}.staff-pick-modal{width:calc(100vw - 20px);max-height:min(78vh,560px);overflow-y:auto;border-radius:14px}.modal-backdrop.journal-modal-backdrop{align-items:end;justify-items:stretch;place-items:end stretch;padding:0}.appt-modal{width:100vw;max-width:100vw;height:min(94vh,760px);height:min(94dvh,760px);max-height:94vh;max-height:94dvh;border-radius:16px 16px 0 0;margin:0}.appt-modal-body{padding:18px 12px 12px;border-radius:16px 16px 0 0}.floating-close{top:8px;right:8px}.status-tabs{gap:7px;padding-right:34px}.status-tab{min-height:40px;padding:0 8px;font-size:12px}.contact-combo{grid-template-columns:104px minmax(0,1fr)}.appt-modal-actions{padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-radius:0}.appt-modal-actions .save-button{min-width:156px}}.stats-view{display:flex;flex-direction:column;gap:20px;padding:24px;overflow-y:auto;height:100%;box-sizing:border-box}.stats-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:16px;color:#8898aa}.stats-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.stats-header h1{font-size:22px;font-weight:700;margin:0}.stats-header-right{display:flex;align-items:center;gap:12px}.stats-updated{font-size:12px;color:#8898aa}.stats-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}.stat-card{background:#fff;border-radius:14px;padding:16px;display:flex;align-items:flex-start;gap:14px;box-shadow:0 1px 4px #0000000f}.stat-card-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-card-icon.blue{background:#e8f0ff;color:#3b6ef8}.stat-card-icon.green{background:#e6f9f0;color:#1a7a4a}.stat-card-icon.purple{background:#f3eeff;color:#7c3aed}.stat-card-icon.orange{background:#fff3e0;color:#b55c00}.stat-card-icon.teal{background:#e0f7f5;color:#0d9488}.stat-card-body{min-width:0}.stat-card-value{font-size:24px;font-weight:700;line-height:1.1;color:#182230}.stat-card-label{font-size:12px;color:#5a6479;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stat-card-sub{font-size:11px;color:#8898aa;margin-top:3px}.stats-panel{background:#fff;border-radius:14px;padding:18px 20px;box-shadow:0 1px 4px #0000000f}.stats-panel-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#5a6479;margin-bottom:14px;text-transform:uppercase;letter-spacing:.04em}.activity-chart{overflow-x:auto}.activity-chart svg{display:block;min-width:300px}.stats-two-col{display:grid;grid-template-columns:1fr 340px;gap:20px;align-items:start}@media(max-width:900px){.stats-two-col{grid-template-columns:1fr}}.stats-col-right{display:flex;flex-direction:column;gap:20px}.funnel-list{display:flex;flex-direction:column;gap:8px}.funnel-row{display:grid;grid-template-columns:160px 1fr 40px;align-items:center;gap:10px}.funnel-label{font-size:12px;color:#5a6479;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.funnel-bar-wrap{background:#f0f4ff;border-radius:4px;height:10px;overflow:hidden}.funnel-bar{background:linear-gradient(90deg,#4f7aff,#7c3aed);height:100%;border-radius:4px;min-width:4px;transition:width .4s ease}.funnel-count{font-size:13px;font-weight:600;color:#182230;text-align:right}.channel-stats-list{display:flex;flex-direction:column;gap:8px}.channel-stats-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:6px 10px;background:#f6f8fc;border-radius:8px}.channel-stats-name{color:#5a6479;text-transform:capitalize}.channel-stats-count{font-weight:700;color:#182230}.stats-table{width:100%;border-collapse:collapse;font-size:13px}.stats-table th{text-align:left;font-weight:600;color:#8898aa;font-size:11px;text-transform:uppercase;letter-spacing:.04em;padding:4px 6px;border-bottom:1px solid #eef2f6}.stats-table td{padding:6px;border-bottom:1px solid #f6f8fc;color:#182230}.stats-table tr:last-child td{border-bottom:none}.staff-list{display:flex;flex-direction:column;gap:6px;margin-top:4px}.staff-row{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#f8fafc;border-radius:8px;border:1px solid #eef2f6;transition:background .15s}.staff-row:hover{background:#f0f4ff}.staff-order-actions{display:grid;flex:0 0 auto;gap:2px}.staff-order-actions .icon-button{width:26px;min-width:26px;height:22px;min-height:22px;padding:0;border-color:transparent;background:transparent;color:#667085}.staff-order-actions .icon-button:hover:not(:disabled){border-color:#d5dce7;background:#fff;color:#14517c}.staff-order-actions .icon-button:disabled{border-color:transparent;background:transparent;opacity:.28}.staff-row--inactive{background:#fafafa;border-color:#f0f0f0}.staff-color-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0;border:2px solid rgba(255,255,255,.8);box-shadow:0 0 0 1px #0000001f}.staff-info{flex:1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.staff-name{font-weight:600;font-size:13px;color:#182230}.staff-role-badge{font-size:11px;font-weight:600;background:#e8eef8;color:#3a5a9a;border-radius:10px;padding:2px 8px}.staff-perm-badge{font-size:10px;font-weight:500;background:#f0faf5;color:#1a7a4a;border-radius:10px;padding:2px 8px;border:1px solid #c5e8d5}.staff-perm-badge.muted{background:#f8fafc;color:#667085;border-color:#e4e9f1}.staff-perm-badge.warning{background:#fff7ed;color:#b54708;border-color:#fed7aa}.staff-row-actions{display:flex;gap:6px;flex-shrink:0}.staff-modal-backdrop{position:fixed;inset:0;display:grid;place-items:center;padding:24px;background:#1018286b;z-index:300}.staff-modal{background:#fff;border:1px solid #d9e1ec;border-radius:8px;width:min(560px,100%);max-height:min(760px,calc(100vh - 48px));display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 80px #10182838}.staff-modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid #e4e9f1}.staff-modal-header h3{margin:0;font-size:16px;font-weight:800;color:#182230}.staff-modal-body{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:14px}.staff-modal-body label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:800;color:#344054}.staff-modal-body input,.staff-modal-body select,.staff-modal-body textarea{font-size:13px;min-height:38px;padding:8px 10px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;color:#182230;transition:border-color .15s,box-shadow .15s;width:100%;box-sizing:border-box}.staff-modal-body input:focus,.staff-modal-body select:focus,.staff-modal-body textarea:focus{outline:none;border-color:#175cd3;box-shadow:0 0 0 3px #175cd31a}.staff-modal-body textarea{resize:vertical;min-height:78px;line-height:1.4}.staff-modal-body .toggle-row{display:flex;flex-direction:row;min-height:58px;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #d8e1ec;border-radius:8px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:inset 0 1px #ffffffbf}.staff-modal-body .toggle-row span{display:grid;gap:3px}.staff-modal-body .toggle-row input[type=checkbox]{appearance:none;position:relative;width:46px;max-width:46px;min-width:46px;height:26px;min-height:26px;padding:0;border:1px solid #cbd5e1;border-radius:999px;background:#e6ebf2;box-shadow:inset 0 1px 3px #10182814;cursor:pointer;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}.staff-modal-body .toggle-row input[type=checkbox]:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:999px;background:#fff;box-shadow:0 5px 12px #1018282e;transition:transform .16s ease}.staff-modal-body .toggle-row input[type=checkbox]:checked{border-color:#14517c;background:#14517c;box-shadow:0 0 0 3px #14517c1f}.staff-modal-body .toggle-row input[type=checkbox]:checked:after{transform:translate(20px)}.staff-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.staff-color-row{display:flex;align-items:center;gap:10px;margin-top:4px}.staff-permissions{display:flex;flex-direction:column;gap:8px}.staff-avatar-editor{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;padding:10px;border:1px solid #e4e9f1;border-radius:8px;background:#f9fafb}.staff-modal-tools{display:flex;flex-wrap:wrap;gap:8px;padding-top:4px}.integrations-compact{gap:10px;padding:14px}.integrations-compact .section-title h2{font-size:14px}.integrations-compact-list{display:flex;flex-wrap:wrap;gap:8px}.integrations-compact .health-row{min-height:32px;padding:0 10px;border:1px solid #e4e9f1;border-radius:999px;font-size:12px}.staff-checkbox-label{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;font-size:13px!important;font-weight:400!important;color:#182230!important;cursor:pointer}.staff-checkbox-label input[type=checkbox]{width:15px;height:15px;flex-shrink:0;cursor:pointer}.staff-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:6px}.staff-section-toggle{display:flex!important;flex-direction:row!important;align-items:center;min-height:36px;gap:8px!important;padding:8px 10px;border:1px solid #e1e7f1;border-radius:8px;background:#f8fafc;color:#182230!important;font-size:12px!important;font-weight:650!important}.staff-section-toggle input[type=checkbox]{width:14px;height:14px;flex-shrink:0}.staff-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:18px;border-top:1px solid #e4e9f1;background:#fbfcfe}.staff-access-modal{width:420px}.staff-credentials-box{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px 12px;padding:12px;border:1px solid #e4e9f1;border-radius:8px;background:#f8fafc}.staff-credentials-box span{color:#667085;font-size:12px;font-weight:750}.staff-credentials-box strong,.staff-credentials-box code{overflow-wrap:anywhere;color:#182230;font-size:13px;font-weight:800}.sketch-modal-backdrop{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:1300}.sketch-modal{background:#fff;border-radius:14px;width:520px;max-width:calc(100vw - 32px);max-height:90vh;display:flex;flex-direction:column;box-shadow:0 10px 40px #0003}.sketch-modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 12px;border-bottom:1px solid #eef2f6}.sketch-modal-header h3{margin:0;font-size:15px;font-weight:700;color:#182230}.sketch-modal-body{flex:1;overflow-y:auto;padding:16px 20px}.sketch-prompt-input{width:100%;box-sizing:border-box;font-size:13px;padding:10px 12px;border:1px solid #dde3ef;border-radius:8px;background:#f8fafc;color:#182230;resize:vertical;line-height:1.5;transition:border-color .15s}.sketch-prompt-input:focus{outline:none;border-color:#7c5cbf;background:#fff}.sketch-reference-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}.sketch-reference-thumb{position:relative;display:inline-flex;width:64px;height:64px;overflow:hidden;border:1px solid #dde3ef;border-radius:8px;background:#f8fafc}.sketch-reference-thumb img{width:100%;height:100%;object-fit:cover}.sketch-reference-thumb .icon-button{position:absolute;top:4px;right:4px;width:22px;min-width:22px;height:22px;min-height:22px;border-color:#1018281f;background:#ffffffeb}.sketch-reference-add{min-height:36px;padding:0 10px;font-size:12px}.sketch-generating{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:32px 0;text-align:center}.sketch-result{display:flex;flex-direction:column;align-items:center;gap:8px}.sketch-result-image{width:100%;max-width:460px;border-radius:10px;border:1px solid #eef2f6;display:block}.sketch-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px 16px;border-top:1px solid #eef2f6}.sketches-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px;margin-top:4px}.sketch-thumb{aspect-ratio:1;border-radius:8px;overflow:hidden;border:2px solid transparent;cursor:pointer;padding:0;background:#f0f0f0;transition:border-color .15s,transform .1s}.sketch-thumb:hover{border-color:#7c5cbf;transform:scale(1.04)}.sketch-thumb img{width:100%;height:100%;object-fit:cover;display:block}.sketch-error-row{display:flex;gap:10px;align-items:flex-start;padding:6px 0;border-bottom:1px solid #f6f8fc}.biz-hours-row{display:flex;gap:12px}.biz-hours-row label input[type=time]{font-size:14px;letter-spacing:.03em}.reminders-list{display:flex;flex-direction:column;gap:12px}.reminders-section{display:flex;flex-direction:column;gap:5px}.reminders-section-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;margin:0 0 4px}.reminder-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:#f8fafc;border-radius:8px;border:1px solid #eef2f6}.reminder-row--failed{background:#fff5f5;border-color:#fdd}.reminder-client{display:flex;flex-direction:column;gap:2px;min-width:0}.reminder-name{font-size:13px;font-weight:600;color:#182230;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reminder-phone{font-size:11px}.reminder-meta{display:flex;align-items:center;gap:8px;flex-shrink:0;text-align:right}.reminder-time{font-size:12px;font-weight:600;color:#3a5a9a;background:#e8eef8;padding:2px 8px;border-radius:10px;white-space:nowrap}html[data-theme=dark]{color-scheme:dark;color:#f2f4f7;background:#131516}html[data-theme=dark] body,html[data-theme=dark] .crm-shell,html[data-theme=dark] .workspace,html[data-theme=dark] .workspace-inbox,html[data-theme=dark] .login-shell{background:#131516;color:#f2f4f7}html[data-theme=dark] .sidebar{border-color:#34383d;background:#191b1d}html[data-theme=dark] .brand strong,html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] strong,html[data-theme=dark] b,html[data-theme=dark] .dialog-copy strong,html[data-theme=dark] .person strong,html[data-theme=dark] .staff-name,html[data-theme=dark] .reminder-name,html[data-theme=dark] .visit-card-service{color:#f2f4f7}html[data-theme=dark] .muted,html[data-theme=dark] .brand p,html[data-theme=dark] .eyebrow,html[data-theme=dark] .metric p,html[data-theme=dark] .dialog-copy small,html[data-theme=dark] .dialog-copy p,html[data-theme=dark] .dialog-meta small,html[data-theme=dark] .person p,html[data-theme=dark] .deal-card p,html[data-theme=dark] .task-card p,html[data-theme=dark] .health-row,html[data-theme=dark] .section-title span,html[data-theme=dark] .settings-block-copy small,html[data-theme=dark] .asset-row span,html[data-theme=dark] .asset-row a,html[data-theme=dark] .visit-card-therapist,html[data-theme=dark] .visit-card-notes,html[data-theme=dark] .visit-card-meta,html[data-theme=dark] .visits-empty,html[data-theme=dark] .visits-loading{color:#a8afb8}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{border-color:#3b4046;background:#202326;color:#f2f4f7}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#7f8791}html[data-theme=dark] input:focus,html[data-theme=dark] select:focus,html[data-theme=dark] textarea:focus{border-color:#58a7ca;box-shadow:0 0 0 3px #58a7ca26}html[data-theme=dark] button:disabled{border-color:#353a3f;background:#292d31;color:#777f89}html[data-theme=dark] .ghost-button,html[data-theme=dark] .icon-button{border-color:#3b4046;background:#202326;color:#d9dde3}html[data-theme=dark] .ghost-button:hover,html[data-theme=dark] .icon-button:hover{border-color:#59616a;background:#292d31;color:#fff}html[data-theme=dark] .nav-item{color:#bbc1c9}html[data-theme=dark] .nav-item:hover{background:#25292c;color:#fff}html[data-theme=dark] .nav-item.active{border-color:#315b70;background:#203540;color:#82c9e8}html[data-theme=dark] .theme-toggle{border-color:#3b4046;background:#202326}html[data-theme=dark] .theme-toggle:before{background:#34393e;box-shadow:none}html[data-theme=dark] .theme-toggle button{color:#979fa9}html[data-theme=dark] .theme-toggle button.active{color:#f6d36d}html[data-theme=dark] :is(.login-card,.metric,.panel,.kanban-column,.deal-card,.task-card,.dialog-list,.thread,.settings-home,.settings-detail,.settings-block-card,.channel-default-card,.channel-timer-card,.health-row,.form-panel,.tool-card,.stats-panel,.stat-card,.staff-row,.asset-row,.reminder-row,.service-form,.service-row,.visit-form,.visit-group,.visit-card){border-color:#34383d;background:#1b1e20;color:#f2f4f7;box-shadow:none}html[data-theme=dark] :is(.topbar,.dialog-list-head,.thread-head,.composer,.modal-head,.modal-actions,.settings-save-row,.deal-modal-tabs,.sketch-modal-header,.sketch-modal-footer,.staff-modal-header,.staff-modal-footer){border-color:#34383d;background:#1b1e20;color:#f2f4f7}html[data-theme=dark] .inbox-layout{border-color:#34383d;background:#131516}html[data-theme=dark] .dialog-list-body,html[data-theme=dark] .messages,html[data-theme=dark] .kanban,html[data-theme=dark] .settings-grid{background:#161819}html[data-theme=dark] .dialog-row{border-color:#2c3034;background:transparent;color:#f2f4f7}html[data-theme=dark] .dialog-row:hover{background:#222629}html[data-theme=dark] .dialog-row.active{border-color:#315b70;background:#203540}html[data-theme=dark] .dialog-row.closed{background:#1a1c1e}html[data-theme=dark] .messages{background-color:#16191a;background-blend-mode:soft-light}html[data-theme=dark] .message{border-color:#3a3f44;background:#24282b;color:#edf0f3;box-shadow:none}html[data-theme=dark] .message.manager{border-color:#315b70;background:#1c3743}html[data-theme=dark] .message.ai,html[data-theme=dark] .message.reminder{border-color:#315a47;background:#1e3529}html[data-theme=dark] .message.deleted{border-color:#3b4046;background:#202326;color:#929aa4}html[data-theme=dark] .message-link{color:#85c9ea}html[data-theme=dark] .quoted-message,html[data-theme=dark] .reply-preview,html[data-theme=dark] .editing-preview{border-color:#4a525a;background:#ffffff0d;color:#d9dde3}html[data-theme=dark] .message-date-separator span,html[data-theme=dark] .floating-date-label{border-color:#ffffff14;background:#08090ab8;color:#f0f2f4;box-shadow:none}html[data-theme=dark] :is(.dialog-context-menu,.message-context-menu,.mobile-thread-menu-popover,.excel-menu-popover,.quick-replies-popover,.reaction-picker,.reaction-picker-expanded,.staff-pick-modal){border-color:#3b4046;background:#25282b;color:#f2f4f7;box-shadow:0 18px 45px #00000061}html[data-theme=dark] :is(.dialog-context-menu,.message-context-menu,.mobile-thread-menu-popover,.excel-menu-popover,.quick-replies-popover) button{border-color:transparent;background:transparent;color:#e6e9ed}html[data-theme=dark] :is(.dialog-context-menu,.message-context-menu,.mobile-thread-menu-popover,.excel-menu-popover,.quick-replies-popover) button:hover{background:#34383d;color:#fff}html[data-theme=dark] .composer{box-shadow:0 -10px 28px #00000029}html[data-theme=dark] .composer textarea{border-color:#3b4046;background:#202326;color:#f2f4f7}html[data-theme=dark] .deal-card:hover,html[data-theme=dark] .task-card:hover,html[data-theme=dark] .settings-block-card:hover,html[data-theme=dark] .staff-row:hover,html[data-theme=dark] .visit-card:hover{border-color:#4a525a;background:#23272a;box-shadow:none}html[data-theme=dark] .kanban-column{background:#181a1c}html[data-theme=dark] .kanban-column.drop-target{border-color:#58a7ca;background:#1d3039}html[data-theme=dark] :is(.deal-modal,.staff-modal,.sketch-modal,.asset-manager-modal,.tool-modal,.appt-modal){border-color:#3b4046;background:#1b1e20;color:#f2f4f7;box-shadow:0 24px 80px #0000007a}html[data-theme=dark] .modal-backdrop,html[data-theme=dark] .staff-modal-backdrop,html[data-theme=dark] .sketch-modal-backdrop{background:#040506b8}html[data-theme=dark] :is(.modal-form,.staff-modal-body,.sketch-modal-body,.appt-modal-body,.visits-tab){background:#1b1e20;color:#f2f4f7}html[data-theme=dark] :is(.modal-form label,.staff-modal-body label,.visit-form label,.form-panel label){color:#c7ccd3}html[data-theme=dark] :is(.service-form,.visit-form,.visit-group,.visit-card,.asset-row,.reminder-row,.quick-reply-editor,.staff-credentials-box,.integrations-compact .health-row){border-color:#34383d;background:#202326}html[data-theme=dark] .visit-group.upcoming{border-color:#315a47;background:#1c2c24}html[data-theme=dark] .visit-group-head,html[data-theme=dark] .visit-card-datetime{color:#c7ccd3}html[data-theme=dark] .visit-group.upcoming .visit-group-head{color:#78d5a3}html[data-theme=dark] .stats-table th,html[data-theme=dark] .stats-table td{border-color:#34383d;color:#d9dde3}html[data-theme=dark] .stats-table th{background:#202326}html[data-theme=dark] .sketch-thumb,html[data-theme=dark] .sketch-result-image{border-color:#3b4046;background:#202326}html[data-theme=dark] .sketch-error-row{border-color:#34383d}html[data-theme=dark] .reminder-row--failed{border-color:#6a3a3a;background:#332224}html[data-theme=dark] .reminder-time{color:#9bc8f1;background:#24364a}html[data-theme=dark] .toast,html[data-theme=dark] .status-feedback{border-color:#3b4046;background:#25282b;color:#f2f4f7;box-shadow:0 16px 40px #00000061}html[data-theme=dark] ::-webkit-scrollbar-track{background:#181a1c}html[data-theme=dark] ::-webkit-scrollbar-thumb{background:#454b51}html[data-theme=dark] :is(.emoji-picker,.reaction-picker-panel,.quick-replies-popover,.jnl-density-menu,.staff-pick-modal){border-color:#3b4046;background:#25282b;color:#f2f4f7;box-shadow:0 18px 45px #00000061}html[data-theme=dark] :is(.emoji-picker-tabs,.reaction-bar,.quick-replies-head,.quick-reply-editor,.sketch-log-row,.staff-pick-header){border-color:#3b4046}html[data-theme=dark] :is(.emoji-tab:hover,.emoji-btn:hover,.quick-reply-use:hover,.staff-pick-item:hover,.jnl-density-menu button:hover){background:#34383d}html[data-theme=dark] .quick-reply-use{background:#202326;color:#d9dde3}html[data-theme=dark] .quick-reply-use b,html[data-theme=dark] .quick-replies-head b,html[data-theme=dark] .jnl-density-menu span,html[data-theme=dark] .staff-pick-name{color:#f2f4f7}html[data-theme=dark] .message-context-menu .reaction-more-btn{background:#34383d;color:#bfc5cc}html[data-theme=dark] .message-context-menu .reaction-more-btn.active{background:#315b70;color:#a9daf0}html[data-theme=dark] .jnl-root,html[data-theme=dark] .jnl-body,html[data-theme=dark] .wk-staff-picker{background:#151718;color:#f2f4f7}html[data-theme=dark] .jnl-topbar,html[data-theme=dark] .day-staff-row,html[data-theme=dark] .wk-sticky-hdr{border-color:#34383d;background:#1b1e20;box-shadow:none}html[data-theme=dark] :is(.jnl-icon-btn,.jnl-today-btn,.jnl-nav-btn,.jnl-density-btn,.jnl-staff-select,.jnl-view-seg,.jnl-time-seg,.jnl-time-custom,.jnl-time-custom select,.jnl-staff-chip){border-color:#3b4046;background:#202326;color:#d9dde3;box-shadow:none}html[data-theme=dark] :is(.jnl-icon-btn:hover,.jnl-today-btn:hover,.jnl-nav-btn:hover,.jnl-density-btn:hover,.jnl-time-seg button:hover,.jnl-staff-chip:hover){border-color:#59616a;background:#2a2e32;color:#fff;box-shadow:none}html[data-theme=dark] .jnl-time-seg button{color:#aeb5be}html[data-theme=dark] .jnl-time-seg button.active{background:#203d4b;color:#9ddbf5;box-shadow:none}html[data-theme=dark] .jnl-time-custom span{color:#8f98a3}html[data-theme=dark] .jnl-date-label,html[data-theme=dark] .day-staff-name,html[data-theme=dark] .week-col-num,html[data-theme=dark] .week-visit-service,html[data-theme=dark] .wk-staff-card-info strong,html[data-theme=dark] .wk-dd-name{color:#f2f4f7}html[data-theme=dark] .day-time-col,html[data-theme=dark] .day-time-label{background:#191b1d}html[data-theme=dark] :is(.day-time-gutter,.day-staff-header,.day-time-col,.day-staff-col,.day-time-slot,.day-time-slot.hour,.day-slot-cell,.day-slot-cell.hour,.week-col,.week-col-header,.week-grid-day-hdr){border-color:#303438}html[data-theme=dark] .day-staff-col,html[data-theme=dark] .week-col{background:#181a1c}html[data-theme=dark] .day-slot-cell:hover,html[data-theme=dark] .week-col:hover{background:#222a2e}html[data-theme=dark] .journal-scroll-edge:hover{background:#58a7ca1a;color:#82c9e8}html[data-theme=dark] .week-col.today,html[data-theme=dark] .week-grid-day-hdr.wk-today,html[data-theme=dark] .day-staff-col.wk-today-col{background:#1d2930}html[data-theme=dark] .wk-staff-card{border-color:#34383d;background:#202326;color:#f2f4f7;box-shadow:none}html[data-theme=dark] .wk-staff-card:hover{border-color:#58a7ca;background:#262b2e;box-shadow:none}html[data-theme=dark] .appt-modal-body{background:#1b1e20}html[data-theme=dark] .floating-close{border-color:#4a5057;background:#292d31;color:#c7ccd3;box-shadow:0 8px 22px #00000047}html[data-theme=dark] .floating-close:hover{background:#34383d;color:#fff}html[data-theme=dark] .status-tab{background:#282c30;color:#c7ccd3}html[data-theme=dark] .status-tab:hover{background:#33383d}html[data-theme=dark] .status-tab.active{background:#4a525a;color:#fff;box-shadow:none}html[data-theme=dark] .appt-grid label{color:#b7bec7}html[data-theme=dark] .appointment-file-field,html[data-theme=dark] .appointment-file-chip{border-color:#3b4046;background:#202326;color:#f2f4f7}html[data-theme=dark] :is(.appt-grid label input,.appt-grid label select,.appt-grid label textarea,.contact-combo,.contact-combo input,.contact-combo select,.client-open){border-color:#3b4046;background:#202326;color:#f2f4f7}html[data-theme=dark] .contact-messenger{border-color:#3b4046!important;background:#282c30!important}html[data-theme=dark] .format-toggle{border-color:#3b4046;background:#25282b;color:#c7ccd3}html[data-theme=dark] .format-thumb{background:#42484e;box-shadow:none}html[data-theme=dark] .client-box{border-color:#34383d;background:#202326}html[data-theme=dark] .client-title{color:#f2f4f7}html[data-theme=dark] .client-subtitle{color:#a8afb8}html[data-theme=dark] .appt-modal-actions{border-color:#34383d;background:#191b1d}html[data-theme=dark] button.danger,html[data-theme=dark] .danger-ghost:hover{border-color:#693d40;background:#362326!important;color:#ff9b9b}html[data-theme=dark] .filter-chip,html[data-theme=dark] .task-tab{border-color:#3b4046;background:#202326;color:#aeb5be}html[data-theme=dark] .filter-chip:hover,html[data-theme=dark] .task-tab:hover{border-color:#59616a;background:#292d31;color:#fff}html[data-theme=dark] .filter-chip.active,html[data-theme=dark] .task-tab.active{border-color:#4d87a3;background:#203d4b;color:#9ddbf5}html[data-theme=dark] .dialog-row-main{color:#f2f4f7}html[data-theme=dark] .dialog-search-match{border-color:#315b70;background:#203540;color:#a9daf0}html[data-theme=dark] .dialog-search-match span{background:#294b5b}html[data-theme=dark] .vk-presence-pill{background:#292d31;color:#a8afb8}html[data-theme=dark] .vk-presence-pill.online{background:#203b2d;color:#78d5a3}html[data-theme=dark] .message.image-caption p{border-color:#3a3f44;background:#24282b;color:#edf0f3}html[data-theme=dark] .message.manager.image-caption p{border-color:#315b70;background:#1c3743}html[data-theme=dark] .message.ai.image-caption p,html[data-theme=dark] .message.reminder.image-caption p{border-color:#315a47;background:#1e3529}html[data-theme=dark] .message.image-caption .message-time{color:#9da5af}html[data-theme=dark] .message-reactions{border-color:#34383d;background:#292d31;color:#f2f4f7;box-shadow:0 4px 10px #0000003d}html[data-theme=dark] .message.manager .message-reactions{border-color:#315b70}html[data-theme=dark] .message-image-link,html[data-theme=dark] .location-card{border-color:#3b4046;background:#202326;color:#edf0f3}html[data-theme=dark] .message-image-grid{background:#202326}html[data-theme=dark] .location-card small,html[data-theme=dark] .message-time,html[data-theme=dark] .muted-download{color:#9da5af}html[data-theme=dark] .message-download,html[data-theme=dark] .message-file-link{color:#85c9ea}html[data-theme=dark] .deleted-message{color:#a8afb8}html[data-theme=dark] .deleted-message button{border-color:#3b4046;background:#292d31;color:#d9dde3}html[data-theme=dark] .deleted-original{background:#ffffff0d;color:#c7ccd3}html[data-theme=dark] .selected-file,html[data-theme=dark] .selected-files{border-color:#3b4046;background:#25282b;color:#d9dde3}html[data-theme=dark] .selected-files-head{color:#c7ccd3}html[data-theme=dark] .selected-file-chip{border-color:#3b4046;background:#202326;color:#f2f4f7}html[data-theme=dark] .selected-file-chip button{background:#34383d;color:#c7ccd3}html[data-theme=dark] .reply-preview,html[data-theme=dark] .reply-preview.edit-preview{background:#252d32;color:#d9dde3}html[data-theme=dark] .reply-preview b{color:#85c9ea}html[data-theme=dark] .reply-preview.edit-preview b{color:#f3b56f}html[data-theme=dark] .settings-block-icon{background:#203540;color:#82c9e8}html[data-theme=dark] .settings-block-card em,html[data-theme=dark] .channel-head em,html[data-theme=dark] .channel-meta span{background:#292d31;color:#bbc1c9}html[data-theme=dark] :is(.form-panel .toggle-row,.channel-card,.vk-history-import,.vk-import-stats span,.tool-list li,.tool-rule-chip,.staff-avatar-editor,.staff-section-toggle,.channel-stats-row){border-color:#34383d;background:#202326;color:#c7ccd3;box-shadow:none}html[data-theme=dark] .toggle-row small,html[data-theme=dark] .channel-head small,html[data-theme=dark] .channel-meta,html[data-theme=dark] .channel-actions>span,html[data-theme=dark] .vk-history-import-head small,html[data-theme=dark] .vk-import-controls label,html[data-theme=dark] .vk-import-stats span,html[data-theme=dark] .task-details dt,html[data-theme=dark] .stat-card-label,html[data-theme=dark] .stat-card-sub,html[data-theme=dark] .stats-panel-title,html[data-theme=dark] .funnel-label,html[data-theme=dark] .channel-stats-name,html[data-theme=dark] .channel-default-card p,html[data-theme=dark] .channel-ai-window-card p,html[data-theme=dark] .channel-timer-card p{color:#a8afb8}html[data-theme=dark] .channel-default-card h3,html[data-theme=dark] .channel-ai-window-card h4,html[data-theme=dark] .channel-timer-card h3,html[data-theme=dark] .vk-history-import-head b,html[data-theme=dark] .vk-import-stats b,html[data-theme=dark] .task-details dd,html[data-theme=dark] .deal-footer b,html[data-theme=dark] .stat-card-value,html[data-theme=dark] .funnel-count,html[data-theme=dark] .channel-stats-count{color:#f2f4f7}html[data-theme=dark] .segmented-control{border-color:#3b4046;background:#202326}html[data-theme=dark] .channel-ai-window-card{border-top-color:#30363d}html[data-theme=dark] .segmented-control button{color:#aeb5be}html[data-theme=dark] .segmented-control button.active{background:#34393e;color:#9ddbf5;box-shadow:none}html[data-theme=dark] .toggle-row input,html[data-theme=dark] .staff-modal-body .toggle-row input[type=checkbox]{border-color:#4a5057;background:#34393e;box-shadow:none}html[data-theme=dark] .toggle-row input:after,html[data-theme=dark] .staff-modal-body .toggle-row input[type=checkbox]:after{background:#d9dde3;box-shadow:none}html[data-theme=dark] .staff-modal-body .toggle-row{border-color:#34383d;background:#202326;box-shadow:none}html[data-theme=dark] .staff-checkbox-label,html[data-theme=dark] .staff-section-toggle{color:#d9dde3!important}html[data-theme=dark] .stats-view{background:#131516}html[data-theme=dark] .funnel-bar-wrap{background:#292d31}html[data-theme=dark] .staff-row--inactive{border-color:#303438;background:#191b1d}html[data-theme=dark] .staff-order-actions .icon-button:hover:not(:disabled){border-color:#4a5057;background:#292d31;color:#82c9e8}html[data-theme=dark] .sketch-prompt-input,html[data-theme=dark] .sketch-reference-thumb{border-color:#3b4046;background:#202326;color:#f2f4f7}html[data-theme=dark] .sketch-reference-thumb .icon-button{border-color:#59616a;background:#16181ae0}html[data-theme=dark] .service-form label,html[data-theme=dark] .service-row-name,html[data-theme=dark] .channel-stats-count,html[data-theme=dark] .staff-credentials-box strong,html[data-theme=dark] .staff-credentials-box code{color:#f2f4f7}html[data-theme=dark] .service-row-meta,html[data-theme=dark] .services-empty,html[data-theme=dark] .services-loading,html[data-theme=dark] .channel-stats-name,html[data-theme=dark] .staff-credentials-box span{color:#a8afb8}html[data-theme=dark] .service-form label input,html[data-theme=dark] .service-form label textarea{border-color:#3b4046;background:#202326;color:#f2f4f7}html[data-theme=dark] .service-row.inactive{opacity:.72}html[data-theme=dark] .staff-role-badge{border:1px solid #40586f;background:#22313c;color:#a9daf0}html[data-theme=dark] .staff-perm-badge{border-color:#315a47;background:#1e3529;color:#82dda8}html[data-theme=dark] .staff-perm-badge.muted{border-color:#3b4046;background:#202326;color:#a8afb8}html[data-theme=dark] .staff-perm-badge.warning{border-color:#65471f;background:#372b1b;color:#f7c37b}html[data-theme=dark] .settings-logout-button{border-color:#693d40;background:#292326;color:#ffb4b4}html[data-theme=dark] .settings-logout-button:hover{background:#362326;color:#ffd0d0}html[data-theme=dark] .settings-session-card{border-color:#4a2f31;background:#211b1d}html[data-theme=dark] .settings-session-card b{color:#f2f4f7}html[data-theme=dark] .settings-session-card span{color:#a8afb8}html[data-theme=dark] .channel-stats-row{background:#202326}html[data-theme=dark] .access-denied-panel{display:grid;max-width:460px;gap:10px;align-content:center;justify-items:start;margin:24px;padding:22px}.scheduled-message-modal{max-width:520px}.scheduled-message-body{display:grid;gap:14px}.scheduled-message-body label{display:grid;gap:7px;color:#344054;font-size:13px;font-weight:800}.scheduled-message-body textarea{min-height:124px;resize:vertical;line-height:1.45}.scheduled-mode-switch{width:100%}.scheduled-relative-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.scheduled-relative-grid>button{min-height:38px;padding:0 8px;border:1px solid #d9e1ec;border-radius:8px;background:#f8fafc;color:#344054;font-weight:800}.scheduled-relative-grid>button.active{border-color:#14517c;background:#e7f4fb;color:#14517c}.scheduled-relative-grid label{grid-column:1 / -1}.scheduled-message-list{display:grid;max-height:190px;gap:8px;overflow-y:auto;padding:10px;border:1px solid #d9e1ec;border-radius:8px;background:#f8fafc}.scheduled-message-list-head,.scheduled-message-item{display:flex;align-items:center;justify-content:space-between;gap:10px}.scheduled-message-list-head b{color:#182230;font-size:13px}.scheduled-message-list-head span{color:#667085;font-size:12px;font-weight:800}.scheduled-message-item{padding:8px;border:1px solid #e4e9f1;border-radius:8px;background:#fff}.scheduled-message-item span{display:grid;min-width:0;gap:2px}.scheduled-message-item b{color:#14517c;font-size:12px}.scheduled-message-item small{overflow:hidden;color:#344054;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.scheduled-message-list>p{margin:0;color:#667085;font-size:12px;font-weight:700}html[data-theme=dark] .scheduled-message-body label{color:#c4cad3}html[data-theme=dark] .scheduled-relative-grid>button{border-color:#3b4046;background:#202326;color:#d7dce3}html[data-theme=dark] .scheduled-relative-grid>button.active{border-color:#4d91ac;background:#213541;color:#9ddbf5}html[data-theme=dark] .scheduled-message-list{border-color:#3b4046;background:#202326}html[data-theme=dark] .scheduled-message-list-head b,html[data-theme=dark] .scheduled-message-item small{color:#f2f4f7}html[data-theme=dark] .scheduled-message-list-head span,html[data-theme=dark] .scheduled-message-list>p{color:#a8afb8}html[data-theme=dark] .scheduled-message-item{border-color:#3b4046;background:#171a1d}html[data-theme=dark] .scheduled-message-item b{color:#9ddbf5}@media(max-width:640px){.scheduled-relative-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
