:root{font-family:Inter,Arial,sans-serif;color:#242329;background:#f7f6f2}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{height:82px;background:#fff;border-bottom:1px solid #e5e2dc;display:flex;align-items:center;padding:0 32px;gap:42px}header>div{display:flex;flex-direction:column}header b{font-size:24px;letter-spacing:4px}header span{font-size:10px;color:#777}header h1{font-size:21px;flex:1}button{font:inherit}header nav{display:flex;gap:8px}header button,.section-head button{border:0;border-radius:12px;padding:11px 16px;background:#efede8;cursor:pointer}header button.active,.section-head button{background:#bcc2ff}main{display:grid;grid-template-columns:330px 1fr;height:calc(100vh - 82px)}aside{padding:22px;background:#fff;border-right:1px solid #e5e2dc;overflow:auto}input{width:100%;padding:12px 14px;border:1px solid #dedbd5;border-radius:12px;margin-bottom:15px}.client{width:100%;text-align:left;border:0;border-radius:12px;background:transparent;padding:13px;display:flex;flex-direction:column;gap:5px;cursor:pointer}.client:hover{background:#f0f1ff}.client span,.muted,time{font-size:13px;color:#777}section{padding:34px;overflow:auto}.empty{max-width:560px;margin:15vh auto;text-align:center;color:#777}.profile{display:flex;align-items:center;gap:16px;background:#fff;padding:24px;border-radius:18px}.profile h2,.profile p{margin:3px}.avatar{width:54px;height:54px;border-radius:50%;background:#bcc2ff;display:grid;place-items:center;font-size:24px;font-weight:700;flex:0 0 auto}.timeline{max-width:900px}.timeline article{position:relative;background:#fff;border-radius:16px;padding:20px;margin:14px 0}.badge{display:inline-block;background:#efede8;border-radius:20px;padding:6px 10px;font-size:12px;text-transform:uppercase;margin-right:10px}.badge.call{background:#e5e7ff}.timeline h4{margin-bottom:10px}.timeline audio{width:100%;margin:5px 0 12px}.timeline details{border-top:1px solid #eee;padding-top:12px}.timeline summary{cursor:pointer;font-weight:600}.score{background:#f0f1ff;border-left:4px solid #8f98ef;padding:12px;border-radius:8px;margin-top:12px}.employees-view{display:block;height:calc(100vh - 82px)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.section-head h2,.section-head p{margin:4px 0}.employees-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:16px;max-width:1200px}.employee{background:#fff;border-radius:16px;padding:20px}.employee.inactive{opacity:.6}.employee-top{display:flex;align-items:center;gap:12px}.employee-top h3,.employee-top p{margin:2px}.employee-top .avatar{width:44px;height:44px;font-size:18px}.status{margin-left:auto;border-radius:20px;padding:5px 9px;font-size:11px!important}.status.ok{background:#e7f7ed;color:#287b45}.status.off{background:#eee;color:#777}.employee dl{margin:18px 0 0}.employee dl>div{display:flex;justify-content:space-between;gap:20px;padding:7px 0;border-top:1px solid #f0eee9}.employee dt{color:#777}.employee dd{margin:0;text-align:right}@media(max-width:760px){header{height:auto;min-height:82px;padding:12px 14px;gap:14px;flex-wrap:wrap}header h1{display:none}header nav{width:100%}header nav button{flex:1}main{grid-template-columns:1fr;height:auto}aside{border:0;max-height:300px}section{padding:18px}.employees-grid{grid-template-columns:1fr}.section-head{align-items:flex-start}}
.account{flex-direction:row!important;align-items:center;gap:10px}.account span{font-size:13px}.account button{padding:8px 11px}.access-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid #eee;margin-top:12px;padding-top:12px}.access-label{font-size:12px;color:#666}.access-button{border:0;border-radius:9px;padding:8px 10px;background:#e8eaff;cursor:pointer}.access-button.danger{background:#fff0f0;color:#9f3030}dialog{border:0;border-radius:18px;padding:26px;width:min(460px,calc(100% - 30px));box-shadow:0 18px 70px #0004}dialog::backdrop{background:#24232988}dialog label{display:block;margin-top:14px}dialog input{margin:6px 0 0}.dialog-close{float:right;border:0;background:transparent;font-size:25px;cursor:pointer}#copyCredentials,.auth-card button{width:100%;border:0;border-radius:12px;background:#bcc2ff;padding:12px;cursor:pointer}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:#f7f6f2}.auth-page .auth-card{display:block;width:min(430px,100%);height:auto;background:#fff;border-radius:20px;padding:32px;box-shadow:0 16px 55px #38362f18}.auth-brand{display:flex;flex-direction:column;margin-bottom:28px}.auth-brand b{font-size:25px;letter-spacing:4px}.auth-brand span{font-size:10px;color:#777}.auth-card h1{margin-bottom:6px}.auth-card>p{color:#777;margin-top:0;margin-bottom:25px}.auth-card label{display:block;margin-top:12px}.auth-card label input{margin-top:6px}.auth-error{min-height:22px;color:#a12f2f;font-size:13px;margin-bottom:8px}@media(max-width:1000px){header{gap:16px}.account span{display:none}}@media(max-width:760px){.account{margin-left:auto}.auth-page .auth-card{padding:24px}}
.tasks-block{max-width:900px;background:#fff;border-radius:18px;padding:22px;margin:18px 0}.tasks-head h3,.tasks-head p{margin:3px 0}.tasks-head p{color:#777}.task-form{background:#f7f6f2;border-radius:14px;padding:16px;margin:16px 0}.task-form label{display:block;font-weight:600;margin:8px 0}.task-form input,.task-form select,.task-form textarea{width:100%;margin:6px 0 0;padding:11px 12px;border:1px solid #dedbd5;border-radius:10px;font:inherit;background:#fff}.task-form-row{display:grid;grid-template-columns:2fr 1fr;gap:12px}.task-form button,.task-actions button{border:0;border-radius:10px;padding:10px 13px;background:#bcc2ff;cursor:pointer}.task-error{min-height:20px;color:#a12f2f;font-size:13px}.tasks-list{display:grid;gap:10px}.task{border:1px solid #ece9e2;border-radius:13px;padding:14px;display:flex;justify-content:space-between;gap:16px}.task>div:first-child{display:grid;gap:4px}.task time,.task-owner{display:block;color:#777;font-size:13px}.task p{margin:6px 0 0}.task.done{opacity:.65}.task-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.task-actions a{border-radius:9px;padding:9px 11px;background:#eef0ff;color:#4c56a5;text-decoration:none;font-size:13px;font-weight:600}.task-complete{color:#287b45;font-size:13px;font-weight:600}@media(max-width:760px){.task-form-row{grid-template-columns:1fr}.task{flex-direction:column}}
.task-client{color:#515a9b;font-size:13px;text-decoration:none}.tasks-view{grid-template-columns:330px minmax(0,1fr)}.overdue-panel{background:#fff;border-right:1px solid #e5e2dc;padding:24px;overflow:auto}.overdue-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.overdue-title h2{font-size:19px;margin:0}.overdue-title span{display:grid;place-items:center;min-width:30px;height:30px;padding:0 8px;border-radius:15px;background:#fff0f0;color:#a12f2f;font-weight:700}.overdue-panel .task{display:block;border:0;border-left:3px solid #ef8585;border-radius:0;background:#f8eded;margin:0 0 12px}.overdue-panel .task-actions{margin-top:10px}.overdue-panel .task-actions a,.overdue-panel .task-actions button{font-size:11px;padding:7px 8px}.calendar-section{padding:22px;min-width:0}.calendar-toolbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;margin-bottom:18px}.calendar-toolbar h2{text-align:center;margin:0;text-transform:capitalize}.calendar-navigation,.calendar-actions,.view-switch{display:flex;align-items:center;gap:7px}.calendar-toolbar button,.primary-button{border:0;border-radius:10px;padding:10px 13px;background:#efede8;cursor:pointer}.calendar-toolbar .primary-button,.primary-button,.view-switch button.active{background:#bcc2ff}.completed-filter{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:13px;color:#555}.completed-filter input,.google-option input{width:auto;margin:0}.calendar{background:#fff;border:1px solid #e5e2dc;border-radius:16px;overflow:auto;min-height:620px}.calendar-loading{padding:30px}.week-grid{display:grid;grid-template-columns:64px repeat(7,minmax(125px,1fr));min-width:960px}.week-corner,.week-day-head{position:sticky;top:0;z-index:3;background:#fff;border-bottom:1px solid #e5e2dc}.week-day-head{display:flex;align-items:center;justify-content:center;gap:8px;height:62px;border-left:1px solid #eee}.week-day-head span{text-transform:capitalize;color:#777}.week-day-head strong{display:grid;place-items:center;width:31px;height:31px;border-radius:50%}.week-day-head.today strong{background:#bcc2ff}.week-time{font-size:12px;color:#888;text-align:right;padding:7px 8px 0 0;border-bottom:1px solid #f0eee9;min-height:66px}.week-cell{min-height:66px;padding:4px;border-left:1px solid #eee;border-bottom:1px solid #f0eee9;cursor:pointer}.week-cell:hover,.month-day:hover{background:#f8f8ff}.week-cell.today{background:#fffdf0}.calendar-task{display:flex;align-items:stretch;gap:3px;background:#e8eaff;border-left:3px solid #8f98ef;border-radius:7px;margin:2px 0;overflow:hidden}.calendar-task>a{display:grid;grid-template-columns:auto 1fr;column-gap:6px;flex:1;color:#2c3051;text-decoration:none;padding:6px;min-width:0}.calendar-task time{font-size:11px;grid-row:1/3}.calendar-task strong,.calendar-task span,.calendar-task small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-task strong{font-size:12px}.calendar-task span,.calendar-task small{font-size:10px;color:#666;grid-column:2}.calendar-task button,.calendar-task-done{border:0;background:#d8dcff;color:#515a9b;display:grid;place-items:center;padding:0 7px;cursor:pointer}.calendar-task.done{opacity:.55;border-left-color:#72ad83}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(135px,1fr));min-width:950px}.month-weekday{position:sticky;top:0;z-index:3;background:#fff;text-align:center;padding:11px;border-bottom:1px solid #e5e2dc;font-weight:600}.month-day{min-height:135px;border-right:1px solid #eee;border-bottom:1px solid #eee;padding:7px;cursor:pointer}.month-day.outside{background:#fafafa;color:#bbb}.month-day.today{background:#fffbe5}.month-date{text-align:right;font-size:13px;font-weight:600;margin-bottom:4px}.month-tasks{display:grid;gap:2px}.more-tasks{font-size:11px;color:#777;padding:4px}.task-dialog{width:min(620px,calc(100% - 30px));padding:0}.task-dialog form{padding:26px}.task-dialog h3{margin-top:0}.task-dialog label{display:block;font-weight:600;margin:12px 0}.task-dialog input,.task-dialog select,.task-dialog textarea{width:100%;margin:6px 0 0;padding:11px 12px;border:1px solid #dedbd5;border-radius:10px;font:inherit;background:#fff}.task-dialog .google-option{display:flex;align-items:center;gap:8px;font-weight:400}.task-dialog .primary-button{width:100%}@media(max-width:1180px){.calendar-toolbar{grid-template-columns:1fr}.calendar-toolbar h2{grid-row:1;text-align:left}.calendar-navigation{grid-row:2}.calendar-actions{grid-row:3;flex-wrap:wrap}}@media(max-width:760px){.tasks-view{grid-template-columns:1fr}.overdue-panel{max-height:300px;border-right:0;border-bottom:1px solid #e5e2dc}.calendar-section{padding:12px}.calendar-actions{align-items:flex-start}.completed-filter{width:100%}.calendar{min-height:520px}.task-dialog form{padding:20px}}
.profile-info{min-width:0;flex:1}.client-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.client-tag{display:inline-flex;align-items:center;border-radius:16px;background:#eef0ff;color:#515a9b;padding:5px 9px;font-size:12px;font-weight:600}.edit-client-button{align-self:flex-start;border:0;border-radius:10px;background:#efede8;padding:9px 12px;cursor:pointer}.edit-client-button:hover{background:#e5e7ff}.form-hint{color:#777;font-size:12px;margin:-5px 0 8px}@media(max-width:560px){.profile{align-items:flex-start;flex-wrap:wrap}.edit-client-button{margin-left:70px}}
.pipeline-view{display:block;height:calc(100vh - 82px);overflow:auto}.pipeline-section{padding:22px;overflow:auto;min-width:0}.kanban-board{display:grid;grid-template-columns:repeat(var(--kanban-columns,6),minmax(270px,1fr));gap:14px;min-width:1700px;align-items:start;padding-bottom:18px}.kanban-column{padding:12px;overflow:visible;background:#efede8;border:2px solid transparent;border-radius:17px;min-height:calc(100vh - 190px);transition:border-color .15s,background .15s}.kanban-column:nth-child(1){background:#eef0ff}.kanban-column:nth-child(5){background:#eaf6ed}.kanban-column:nth-child(6){background:#f4eee7}.kanban-column.drag-over{border-color:#727ddd;background:#e5e7ff}.kanban-column-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;padding:2px 3px}.kanban-column-head h3{font-size:15px;margin:0;line-height:1.3}.kanban-column-head span{display:grid;place-items:center;min-width:27px;height:27px;padding:0 7px;border-radius:14px;background:#fff;color:#555;font-size:12px;font-weight:700}.kanban-dropzone{display:grid;gap:10px}.kanban-empty{margin:5px 3px;color:#999;font-size:12px;text-align:center}.kanban-card{background:#fff;border:1px solid #e4e1db;border-radius:14px;padding:14px;box-shadow:0 5px 16px #39372f0b;cursor:grab}.kanban-card:active{cursor:grabbing}.kanban-card.dragging{opacity:.45}.kanban-card-head{display:flex;align-items:flex-start;gap:8px}.kanban-client-link{min-width:0;flex:1;padding:0;border:0;background:transparent;color:#242329;text-align:left;font-weight:700;cursor:pointer}.kanban-client-link:hover{color:#515a9b;text-decoration:underline}.call-count{display:grid;place-items:center;min-width:25px;height:25px;padding:0 6px;border-radius:13px;background:#eef0ff;color:#515a9b;font-size:11px;font-weight:700}.kanban-phone{display:inline-block;margin-top:6px;color:#515a9b;text-decoration:none;font-size:13px}.kanban-tags{margin-top:9px}.kanban-tags .client-tag{padding:3px 7px;font-size:10px}.kanban-last-call{display:grid;grid-template-columns:auto 1fr;gap:4px 7px;align-items:center;border-top:1px solid #eee;margin-top:11px;padding-top:10px}.kanban-last-call time{font-size:11px;text-align:right}.kanban-last-call small{grid-column:1/3;color:#777;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-direction{border-radius:10px;padding:4px 7px;font-size:10px;font-weight:700}.call-direction.incoming{background:#e8f5ec;color:#287b45}.call-direction.outgoing{background:#eef0ff;color:#515a9b}.kanban-no-call{margin:11px 0 0}.kanban-stage-label{display:block;margin-top:11px;color:#777;font-size:11px;font-weight:600}.kanban-stage-label select{width:100%;margin-top:5px;padding:9px;border:1px solid #dedbd5;border-radius:9px;background:#fff;font:inherit;font-size:12px}@media(max-width:760px){.pipeline-view{height:auto}.pipeline-section{padding:14px}.kanban-column{min-height:520px}header nav{overflow:auto}header nav button{min-width:max-content}}
.kanban-call-kind{display:flex;align-items:center;gap:6px}.kanban-call-play{width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;border:1px solid #aeb5f2;border-radius:50%;padding:0;background:#fff;color:#515a9b;cursor:pointer;transition:background .15s,color .15s,transform .15s}.kanban-call-play:hover{background:#eef0ff;transform:scale(1.06)}.kanban-call-play:focus-visible{outline:2px solid #6671d4;outline-offset:2px}.kanban-call-play span{display:block;width:0;height:0;margin-left:2px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:7px solid currentColor}.kanban-call-play.playing{background:#515a9b;color:#fff}.kanban-call-play.playing span{width:8px;height:10px;margin:0;border:0;background:linear-gradient(90deg,currentColor 0 3px,transparent 3px 5px,currentColor 5px 8px)}@media(max-width:760px){.kanban-call-play{width:28px;height:28px;flex-basis:28px}}
.client-workspace{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:22px;align-items:start;margin-top:20px}.client-data-column{position:sticky;top:18px;padding:0;background:transparent;border:0;overflow:visible}.client-main-column{min-width:0}.client-data-form{background:#fff;border-radius:18px;padding:20px;box-shadow:0 8px 26px #39372f0b}.client-data-title h3,.client-data-title p{margin:2px 0}.client-data-title p{color:#777;font-size:12px;margin-bottom:16px}.client-data-form label{display:block;margin:11px 0;color:#666;font-size:12px;font-weight:600}.client-data-form input,.client-data-form select{width:100%;margin-top:5px;padding:10px 11px;border:1px solid #dedbd5;border-radius:10px;background:#fff;font:inherit;color:#242329}.client-data-form input[readonly]{background:#f7f6f2;color:#777}.money-row,.object-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.profile-save{width:100%;margin-top:5px}.inline-name-input{width:min(480px,100%);font-size:24px;font-weight:700;padding:7px 10px;margin:0;border:2px solid #8f98ef;border-radius:9px}.profile-info h2{cursor:text}.profile-info h2:hover{text-decoration:underline dotted #8f98ef;text-underline-offset:5px}.contact-entry{padding:22px!important}.call-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.call-summary h4{margin:2px 0;text-align:right}.readable-block{margin-top:16px;border:1px solid #e7e4dd;border-radius:14px;background:#fcfbf9;overflow:hidden}.readable-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;background:#f1f0ec;border-bottom:1px solid #e7e4dd}.readable-heading h4{margin:0;font-size:14px}.assessment-score{border-radius:16px;background:#bcc2ff;color:#242329;padding:5px 9px;font-size:12px;font-weight:800}.readable-short,.readable-full{padding:14px}.readable-full{display:none}.readable-block.expanded .readable-short{display:none}.readable-block.expanded .readable-full{display:block}.read-more-button{width:100%;border:0;border-top:1px solid #e7e4dd;background:#f6f5ff;color:#515a9b;padding:11px;cursor:pointer;font-weight:700}.speech-row{position:relative;max-width:88%;margin:9px 0;padding:11px 13px;border-radius:13px;background:#f0efe9}.speech-row p{margin:0;line-height:1.55;white-space:pre-wrap}.speech-row.manager,.speech-row.speaker-0{margin-right:auto;background:#eef0ff;border-bottom-left-radius:4px}.speech-row.client,.speech-row.speaker-1{margin-left:auto;background:#eaf6ed;border-bottom-right-radius:4px}.speaker-name{display:block;margin-bottom:5px;color:#515a9b;font-size:11px;font-weight:800;text-transform:uppercase}.speech-row.client .speaker-name,.speech-row.speaker-1 .speaker-name{color:#287b45}.assessment .readable-short,.assessment .readable-full{display:grid;gap:9px}.assessment.expanded .readable-short{display:none}.assessment.expanded .readable-full{display:grid}.assessment-section{padding:0;overflow:visible}.assessment-section h5{margin:0 0 4px;color:#515a9b;font-size:12px;text-transform:uppercase}.assessment-section p,.assessment p{margin:0;line-height:1.55}.assessment-bullet{position:relative;padding-left:19px;line-height:1.5}.assessment-bullet:before{content:'✓';position:absolute;left:0;color:#6974d7;font-weight:800}.tag-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px}.tag-editor-head button{border:0;border-radius:9px;background:#eef0ff;color:#515a9b;padding:7px 9px;cursor:pointer}.tag-editor{display:grid;gap:8px;margin-top:9px}.tag-editor-row{display:grid;grid-template-columns:minmax(0,1fr) 76px 34px;gap:8px;align-items:center}.tag-editor-row input{margin:0}.tag-color-label{position:relative;display:grid!important;grid-template-columns:30px 1fr;align-items:center;gap:5px;margin:0!important;color:#777;font-size:10px}.tag-color-input{width:30px!important;height:32px;padding:2px!important;border-radius:8px!important}.remove-tag-button{border:0;border-radius:8px;background:#fff0f0;color:#9f3030;font-size:20px;line-height:30px;cursor:pointer}.task-dialog .tag-name-input{width:100%}@media(max-width:1100px){.client-workspace{grid-template-columns:1fr}.client-data-column{position:static;max-width:none}.tasks-block,.timeline{max-width:none}}@media(max-width:560px){.money-row,.object-row{grid-template-columns:1fr}.call-summary{display:block}.call-summary h4{text-align:left;margin-top:10px}.speech-row{max-width:96%}}

.pipeline-filters{display:grid;grid-template-columns:minmax(280px,2fr) repeat(5,minmax(150px,1fr)) 120px 120px auto;gap:10px;align-items:end;background:#fff;border:1px solid #e5e2dc;border-radius:16px;padding:14px;margin-bottom:8px;min-width:1500px}.pipeline-filters label{display:grid;gap:5px;color:#666;font-size:11px;font-weight:700}.pipeline-filters input,.pipeline-filters select{width:100%;height:40px;margin:0;padding:8px 10px;border:1px solid #dedbd5;border-radius:9px;background:#fff;font:inherit;color:#242329}.pipeline-filters button{height:40px;border:0;border-radius:9px;background:#efede8;cursor:pointer}.pipeline-results-count{margin:8px 2px 14px;color:#777;font-size:12px}.kanban-complex{margin-top:7px;color:#555;font-size:11px;font-weight:700}.quality-badge{grid-column:1/3;justify-self:start;border-radius:12px;padding:4px 7px;font-size:10px;font-weight:800}.quality-badge.high{background:#e5f4e9;color:#287b45}.quality-badge.medium{background:#fff4d8;color:#936a10}.quality-badge.low{background:#fae6e6;color:#9f3030}
.pipeline-mode-switch{display:flex;gap:8px;margin:-10px 0 14px}.pipeline-mode-switch button,.pipeline-load-more{border:1px solid #dedbd5;border-radius:10px;padding:9px 14px;background:#fff;cursor:pointer}.pipeline-mode-switch button.active{border-color:#8f98ef;background:#eef0ff;color:#404a91;font-weight:700}.pipeline-load-more{display:block;margin:4px auto 22px;background:#eef0ff;border-color:#bcc2ff}.pipeline-mode-switch button:disabled,.pipeline-load-more:disabled{opacity:.55;cursor:wait}

.client small{margin-top:1px;color:#8a877f;font-size:11px}.kanban-responsible{margin-top:9px;padding:6px 8px;border-radius:8px;background:#eef0ff;color:#414a91;font-size:11px;font-weight:700}.kanban-responsible.unassigned{background:#f3f1ed;color:#8a877f}
.kanban-avatar,.conversation-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:#bcc2ff;color:#343866;display:grid;place-items:center;font-weight:800}.kanban-avatar.fallback,.conversation-avatar.fallback{font-size:13px}.social-avatar{position:relative;overflow:visible}.social-avatar img{width:54px;height:54px;border-radius:50%;object-fit:cover}.social-avatar small{position:absolute;right:-8px;bottom:-5px;border-radius:9px;background:#242329;color:#fff;padding:2px 5px;font-size:8px;line-height:1.2}

.profile-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.profile-action-button{border:0;border-radius:10px;background:#eef0ff;color:#414a91;padding:9px 12px;cursor:pointer;font-weight:700}.profile-action-button:hover{background:#e2e5ff}.messenger-button{background:#e8f5ec;color:#287b45}.client-content-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:900px}.client-content-block{padding:20px;background:#fff;border-radius:18px;overflow:visible}.client-content-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.client-content-head h3,.client-content-head p{margin:2px 0}.client-content-head p{color:#777;font-size:12px}.client-content-head button,.comment-form button{border:0;border-radius:9px;background:#eef0ff;color:#515a9b;padding:8px 10px;cursor:pointer;font-weight:700}.client-documents,.client-comments{display:grid;gap:8px;margin-top:14px;max-height:330px;overflow:auto}.client-document{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px;border:1px solid #ece9e2;border-radius:11px;color:#242329;text-decoration:none}.client-document:hover{border-color:#bcc2ff;background:#fafaff}.document-icon{font-size:20px}.client-document span:nth-child(2){min-width:0}.client-document strong,.client-document small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.client-document strong{font-size:12px}.client-document small{margin-top:3px;color:#777;font-size:10px}.client-document>b{color:#515a9b;font-size:11px}.comment-form{margin-top:14px}.comment-form textarea{width:100%;padding:11px 12px;border:1px solid #dedbd5;border-radius:10px;font:inherit;resize:vertical}.client-comment{padding:10px 12px;border-radius:11px;background:#f7f6f2}.client-comment>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.client-comment strong{font-size:12px}.client-comment time{font-size:10px}.client-comment p{margin:7px 0 0;white-space:pre-wrap;font-size:13px;line-height:1.45}.messenger-dialog-body{padding:26px}.messenger-dialog-body h3{margin-top:0}.messenger-choice{width:100%;display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto;column-gap:11px;align-items:center;margin-top:10px;padding:12px;border:1px solid #e5e2dc;border-radius:13px;background:#fff;text-align:left;cursor:pointer}.messenger-choice>span{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#eef0ff;color:#515a9b;font-weight:800}.messenger-choice b{font-size:14px}.messenger-choice small{color:#777}.telegram-choice:hover{border-color:#50a9df}.max-choice:hover{border-color:#7a6cff}

.responsible-control{display:grid;gap:4px;min-width:190px;color:#777;font-size:10px;font-weight:700}.responsible-control select{height:36px;margin:0;padding:7px 9px;border:1px solid #dedbd5;border-radius:9px;background:#fff;font:inherit;color:#242329}.responsible-current{display:grid;gap:3px;padding:7px 11px;border-radius:10px;background:#e8f5ec;color:#287b45}.responsible-current span{font-size:9px;text-transform:uppercase}.responsible-claim{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:10px;background:#f3f1ed;color:#666;font-size:11px}.responsible-claim button{border:0;border-radius:8px;background:#bcc2ff;padding:7px 9px;cursor:pointer;font-weight:700}.activity-button{background:#f1ecff;color:#604da0}.activity-dialog{width:min(700px,calc(100% - 30px))}.activity-dialog-body{padding:26px}.activity-dialog-body h3{margin:0 0 4px}.activity-list{display:grid;gap:8px;max-height:65vh;overflow:auto;margin-top:18px}.activity-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;padding:11px 12px;border:1px solid #ebe8e1;border-radius:12px;background:#fff}.activity-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eef0ff;color:#515a9b;font-weight:800}.activity-row strong,.activity-row small{display:block}.activity-row strong{font-size:13px;line-height:1.4}.activity-row small{margin-top:4px;color:#777;font-size:11px}

@media(max-width:1100px){.client-content-grid{grid-template-columns:1fr;max-width:none}}@media(max-width:760px){.profile-actions{width:100%;justify-content:flex-start;margin-left:70px}.client-content-block{padding:16px}}

/* Compact client card controls and bounded activity blocks. */
.client-stage-control{display:grid;gap:4px;min-width:210px;text-align:left}.client-stage-control span{color:#777;font-size:10px;font-weight:700;text-transform:uppercase}.client-stage-control select{width:100%;padding:8px 10px;border:1px solid #d9d6cf;border-radius:10px;background:#fff;font:inherit;font-size:12px;font-weight:700}.client-content-block{display:flex;flex-direction:column;height:420px;min-height:0;overflow:hidden}.client-documents,.client-comments{flex:1;min-height:0;max-height:none;overscroll-behavior:contain}.client-comments{align-content:start}.tasks-block{max-width:900px;padding:13px;margin:12px 0;border-radius:15px}.tasks-head h3{font-size:16px}.tasks-head p{font-size:11px}.task-form{padding:9px;margin:9px 0}.task-form label{margin:3px 0;font-size:11px}.task-form input,.task-form select,.task-form textarea{margin-top:3px;padding:7px 9px;border-radius:8px;font-size:12px}.task-form-row{gap:8px}.task-form button,.task-actions button{padding:7px 9px;font-size:11px}.task-error{min-height:14px;font-size:11px}.tasks-list{gap:6px;max-height:280px;padding-right:4px;overflow:auto;overscroll-behavior:contain}.task{padding:8px 10px;gap:10px;border-radius:10px}.task>div:first-child{gap:2px}.task>div:first-child>strong{font-size:12px}.task time,.task-owner,.task-reminder{font-size:10px}.task p{margin:3px 0 0;font-size:11px}.task-client{color:#3f478e;font-size:12px;font-weight:900;text-decoration:none}.task-actions{gap:5px}.task-actions a{padding:6px 8px;font-size:10px}.task-reminder{display:block;color:#8a6218;font-weight:700}.calendar-task-client{font-weight:900!important;color:#3f478e!important}.reminder-row{align-items:start}
@media(max-width:760px){.client-stage-control{width:100%;min-width:0}.client-content-block{height:380px}.tasks-list{max-height:240px}}
.calendar-task{cursor:pointer;min-height:72px}.calendar-task-body{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:7px;row-gap:3px;flex:1;min-width:0;padding:7px;color:#2c3051}.calendar-task-body time{grid-row:1/3;font-size:11px;font-weight:800}.calendar-task-body strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;white-space:normal;font-size:13px;line-height:1.25}.calendar-task-body .calendar-task-client{grid-column:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:900;color:#3f478e}.week-time,.week-cell{min-height:92px}.month-day{min-height:155px}.calendar-task.task-color-green{border-left-color:#4f9a68;background:#e4f4e9}.calendar-task.task-color-red{border-left-color:#cf5d5d;background:#fae5e5}.calendar-task.task-color-purple{border-left-color:#8f98ef;background:#e8eaff}.task.task-color-green{border-left:4px solid #4f9a68;background:#f1faf4}.task.task-color-red{border-left:4px solid #cf5d5d;background:#fff3f3}.task.task-color-purple{border-left:4px solid #8f98ef}.task-google-link{display:block;margin:8px 0;color:#515a9b;font-size:12px;font-weight:700;text-decoration:none}.task-google-link:hover{text-decoration:underline}
.calendar-task-body .calendar-task-client{grid-row:1}.calendar-task-body>strong{grid-column:2;grid-row:2}.calendar-task-body:not(.has-client)>strong{grid-row:1/3;align-self:center}.calendar-task-stack{display:grid;grid-template-rows:repeat(var(--tasks-in-hour,1),minmax(0,1fr));height:100%;gap:2px}.calendar-task-stack>.calendar-task{height:100%;min-height:0;margin:0}.task-client-field{margin:12px 0}.task-client-field>label{margin:0}.task-client-preview-slot{margin-top:10px}.task-client-preview-slot>.task-error,.task-client-preview-loading{margin:0;padding:10px 12px;border-radius:10px;background:#f7f6f2}.task-client-preview{margin:0;padding:12px;cursor:pointer}.task-client-preview:active{cursor:pointer}.task-client-preview:focus-visible{outline:3px solid #8f98ef;outline-offset:2px}.task-client-preview .kanban-client-link,.task-client-preview .kanban-phone{position:relative;z-index:1}
.week-cell .calendar-task-body{display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;gap:2px;padding:5px;text-align:left}.week-cell .calendar-task-body>time,.week-cell .calendar-task-body>.calendar-task-client,.week-cell .calendar-task-body>strong{display:block;width:100%;grid-column:auto;grid-row:auto;align-self:flex-start;text-align:left}.week-cell .calendar-task-body>time{font-size:9px;line-height:1.1}.week-cell .calendar-task-body>.calendar-task-client{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.15}.week-cell .calendar-task-body>strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;white-space:normal;overflow-wrap:anywhere;font-size:10px;line-height:1.15}.calendar-task-tag{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 5px;border-radius:8px;font-size:8px;font-weight:800;line-height:1.2}.calendar-task-stack.multiple .calendar-task-tag,.month-tasks .calendar-task-tag{display:none}.calendar-task-stack.multiple .calendar-task-body{gap:0;padding:2px 4px}.calendar-task-stack.multiple .calendar-task-body>time,.calendar-task-stack.multiple .calendar-task-body>.calendar-task-client,.calendar-task-stack.multiple .calendar-task-body>strong{font-size:8px;line-height:1.05}.calendar-task-stack.multiple .calendar-task-body>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.google-calendar-panel{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 10px;padding:12px 14px;border:1px solid #dfe3ff;border-radius:12px;background:#f6f7ff}.google-calendar-panel>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.google-calendar-panel span{color:#656775;font-size:12px}.google-calendar-panel button{border:0;border-radius:9px;padding:8px 11px;background:#e7e8ef;cursor:pointer}.google-calendar-panel button.primary-button{background:#bcc2ff}.google-calendar-panel button:disabled{cursor:not-allowed;opacity:.55}.calendar-drag-hint,.google-task-hint{margin:7px 2px 12px;color:#70717a;font-size:12px}.calendar-task[draggable="true"]{cursor:grab}.calendar-task.dragging{opacity:.35;cursor:grabbing}.week-cell.task-drop-target,.month-day.task-drop-target{background:#e8f4eb;box-shadow:inset 0 0 0 2px #4f9a68}.google-sync-mark{align-self:center;margin:0 3px;border-radius:50%;width:18px;height:18px;display:grid;place-items:center;background:#fff;color:#397547;font-size:10px;font-weight:900}.google-sync-mark.error{color:#a12f2f;background:#fff0f0}@media(max-width:760px){.google-calendar-panel{align-items:flex-start;flex-direction:column}.calendar-drag-hint{display:none}}
.notification-dialog-body{width:min(520px,85vw);display:grid;gap:14px;padding:26px}.notification-dialog-body h3{margin:0}.notification-dialog-body>p{margin:0;color:#687087;line-height:1.55}.notification-status{display:grid;gap:5px;padding:16px;border-radius:14px;background:#f4f6ff;border:1px solid #dfe3ff}.notification-status strong{font-size:16px;color:#20243a}.notification-status span{color:#687087;line-height:1.45}.notification-dialog-body>.primary-button{width:100%}
.notification-dialog-body>.dialog-close{justify-self:end;width:36px;height:36px;float:none;padding:0;border-radius:50%;line-height:1}
.push-notification-status.ok{border-color:#b9dfc4;background:#eef9f1}.push-notification-status.ok strong{color:#287b45}.push-notification-status.waiting{border-color:#ead9a4;background:#fffaf0}.push-notification-status.error{border-color:#edb7b7;background:#fff2f2}.push-notification-status.error strong{color:#9f3030}.push-notification-message{min-height:18px!important;color:#515a9b!important;font-size:12px}.notification-divider{height:1px;background:#e9e6df}.notification-dialog-body h4{margin:4px 0 -4px;color:#343866}.notification-dialog-body>.profile-action-button{width:100%;border:0;border-radius:10px;padding:10px 13px;background:#efede8;cursor:pointer}@media(max-width:760px){.notification-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:0;overflow:auto}.notification-dialog-body{width:100%;padding:20px;gap:11px}.notification-dialog-body h3{font-size:20px}.notification-status{padding:13px}.notification-status strong{font-size:14px}}
.site-leads-block{max-width:900px;margin:16px 0;padding:20px;background:#fff;border-radius:18px}.site-lead-count{display:grid;place-items:center;min-width:30px;height:30px;padding:0 9px;border-radius:16px;background:#eef0ff;color:#515a9b;font-size:12px;font-weight:800}.site-leads-list{display:grid;gap:11px;max-height:460px;margin-top:15px;padding-right:4px;overflow:auto;overscroll-behavior:contain}.site-lead-card{padding:15px;border:1px solid #e7e4dd;border-radius:14px;background:#fcfbf9}.site-lead-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.site-lead-title strong,.site-lead-title time{display:block}.site-lead-title strong{color:#515a9b;font-size:14px}.site-lead-title time{margin-top:4px;font-size:10px}.site-lead-title>span{max-width:45%;padding:5px 8px;border-radius:9px;background:#eef0ff;color:#515a9b;font-size:10px;font-weight:700;text-align:right}.site-lead-card dl{margin:13px 0 0}.site-lead-card dl>div{display:grid;grid-template-columns:minmax(145px,34%) minmax(0,1fr);gap:12px;padding:5px 0;border-top:1px solid #eee}.site-lead-card dt{color:#8a877f;font-size:11px}.site-lead-card dd{min-width:0;margin:0;overflow-wrap:anywhere;font-size:12px}.site-lead-card dd a{color:#515a9b;font-weight:700}.site-lead-card>p{margin:12px 0 0;white-space:pre-wrap;font-size:12px;line-height:1.45}.site-lead-card details{margin-top:11px;border-top:1px solid #eee;padding-top:9px}.site-lead-card summary{color:#515a9b;font-size:11px;font-weight:700;cursor:pointer}@media(max-width:760px){.site-leads-block{padding:16px}.site-lead-title{display:block}.site-lead-title>span{display:inline-block;max-width:100%;margin-top:8px;text-align:left}.site-lead-card dl>div{grid-template-columns:1fr;gap:2px}}

/* Shared queue for unassigned website leads. */
#siteLeadsCount:not(:empty){display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;padding:0 6px;border-radius:10px;background:#cf5d5d;color:#fff;font-size:10px;font-weight:800}.site-leads-queue-view{display:block;height:calc(100vh - 82px);overflow:auto}.site-leads-queue-section{padding:24px}.site-leads-queue{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:15px;max-width:1400px}.site-queue-card{display:flex;flex-direction:column;min-height:290px;padding:20px;border:1px solid #e5e2dc;border-radius:18px;background:#fff;box-shadow:0 8px 24px #39372f0c}.site-queue-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.site-queue-card-head h3{margin:7px 0 4px;font-size:19px}.site-queue-card-head time{white-space:nowrap;font-size:11px}.site-queue-new{display:inline-block;padding:5px 8px;border-radius:10px;background:#fff1d8;color:#8a6218;font-size:10px;font-weight:800;text-transform:uppercase}.site-queue-phone,.site-queue-email{display:block;width:max-content;max-width:100%;margin-top:4px;color:#515a9b;text-decoration:none;font-size:13px;overflow-wrap:anywhere}.site-queue-meta{display:grid;gap:7px;margin-top:17px;padding:12px;border-radius:12px;background:#f7f6f2}.site-queue-meta>div{display:grid;grid-template-columns:85px minmax(0,1fr);gap:9px}.site-queue-meta span{color:#8a877f;font-size:11px}.site-queue-meta strong{font-size:12px;overflow-wrap:anywhere}.site-queue-message{margin:13px 0 0;white-space:pre-wrap;font-size:12px;line-height:1.5}.site-queue-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:18px}.site-queue-actions>a{color:#515a9b;font-size:11px;font-weight:700;text-decoration:none}.site-queue-actions button{min-width:130px}.site-queue-actions button:disabled{opacity:.6;cursor:wait}.site-queue-empty{grid-column:1/-1;padding:70px 24px;border:2px dashed #dedbd5;border-radius:18px;text-align:center;color:#777}.site-queue-empty strong{color:#414047;font-size:18px}.site-queue-empty p{margin-bottom:0}@media(max-width:760px){.site-leads-queue-view{height:auto}.site-leads-queue-section{padding:14px}.site-leads-queue{grid-template-columns:1fr}.site-queue-card-head{display:block}.site-queue-card-head time{display:block;margin-top:8px}.site-queue-actions{align-items:stretch;flex-direction:column}.site-queue-actions button{width:100%}}

/* Monthly manager dashboard and manual motivation calculation. */
.statistics-view{display:block;height:calc(100vh - 82px);overflow:auto;background:#f5f3ef}.statistics-section{max-width:1500px;padding:24px 28px 54px}.statistics-head{margin-bottom:14px}.statistics-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:8px}.statistics-filters label,.motivation-inputs label{display:grid;gap:5px;color:#666;font-size:11px;font-weight:700}.statistics-filters input,.statistics-filters select,.motivation-inputs input,.motivation-inputs select{min-width:210px;height:42px;padding:8px 11px;border:1px solid #dedbd5;border-radius:10px;background:#fff;font:inherit;color:#242329}.statistics-cards{display:grid;grid-template-columns:repeat(6,minmax(155px,1fr));gap:12px;margin:18px 0}.statistics-card{display:flex;align-items:center;gap:12px;min-height:94px;padding:17px;border:1px solid #e7e4dd;border-radius:16px;background:#fff;box-shadow:0 7px 22px #39372f0a}.statistics-card>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eef0ff;color:#515a9b;font-size:18px;font-weight:900}.statistics-card small,.statistics-card strong{display:block}.statistics-card small{color:#777;font-size:10px;font-weight:700;text-transform:uppercase}.statistics-card strong{margin-top:6px;font-size:20px;white-space:nowrap}.statistics-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,.9fr);gap:14px}.statistics-panel{padding:20px;border:1px solid #e7e4dd;border-radius:18px;background:#fff;box-shadow:0 7px 22px #39372f08}.statistics-panel-head h3,.statistics-panel-head p{margin:0}.statistics-panel-head h3{font-size:17px}.statistics-panel-head p{margin-top:5px;color:#777;font-size:11px}.statistics-chart{display:grid;gap:15px;margin-top:20px}.statistics-bar-row>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;font-size:12px}.statistics-bar-row>div:first-child span{color:#515a9b;font-weight:800}.statistics-bar-track{height:12px;overflow:hidden;border-radius:8px;background:#efede8}.statistics-bar-track i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#8f98ef,#bcc2ff)}.motivation-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px}.motivation-inputs input,.motivation-inputs select{width:100%;min-width:0}.motivation-result{display:grid;gap:7px;margin-top:14px;padding:14px;border-radius:13px;background:#f7f6f2}.motivation-result>div{display:flex;justify-content:space-between;gap:16px;font-size:12px}.motivation-result .motivation-total{margin-top:4px;padding-top:9px;border-top:1px solid #dedbd5;font-size:15px;color:#343866}.motivation-note,.statistics-footnote{color:#777;font-size:11px;line-height:1.55}.statistics-table-panel{margin-top:14px}.statistics-table-wrap{overflow:auto;margin-top:16px}.statistics-table{width:100%;min-width:930px;border-collapse:collapse;font-size:12px}.statistics-table th,.statistics-table td{padding:11px 10px;border-bottom:1px solid #ebe8e1;text-align:left;white-space:nowrap}.statistics-table th{color:#777;font-size:10px;text-transform:uppercase}.statistics-table td:first-child strong,.statistics-table td:first-child small{display:block}.statistics-table td:first-child small{margin-top:3px;color:#a44;font-size:9px}.statistics-table a{color:#515a9b;font-weight:800;text-decoration:none}.statistics-table a:hover{text-decoration:underline}.statistics-empty{padding:28px!important;color:#777;text-align:center!important}.source-badge{display:inline-block;max-width:180px;overflow:hidden;text-overflow:ellipsis;padding:5px 7px;border-radius:9px;background:#eef0ff;color:#515a9b;font-size:10px;font-weight:700}.source-badge.referral{background:#e8f5ec;color:#287b45}.statistics-footnote{margin:15px 2px 0}.statistics-head button:disabled{opacity:.55;cursor:wait}
@media(max-width:1250px){.statistics-cards{grid-template-columns:repeat(3,1fr)}.statistics-grid{grid-template-columns:1fr}}@media(max-width:760px){.statistics-view{height:auto}.statistics-section{padding:14px}.statistics-cards{grid-template-columns:1fr 1fr}.statistics-card{min-height:82px}.statistics-card strong{font-size:16px}.motivation-inputs{grid-template-columns:1fr}.statistics-filters{align-items:stretch;flex-direction:column}.statistics-filters input,.statistics-filters select{width:100%}}@media(max-width:430px){.statistics-cards{grid-template-columns:1fr}}
.marketing-panel{margin:0 0 14px;border-color:#d7e8de;background:linear-gradient(135deg,#fff 0,#fbfffc 100%)}.marketing-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.marketing-status{display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border-radius:10px;background:#f0eee9;color:#777;font-size:10px;font-weight:800;white-space:nowrap}.marketing-status.ok{background:#e5f4e9;color:#287b45}.marketing-status.error{background:#fae6e6;color:#9f3030}.marketing-status.waiting{background:#fff4d8;color:#936a10}.marketing-cards{display:grid;grid-template-columns:repeat(8,minmax(120px,1fr));gap:9px;margin:17px 0}.marketing-cards>div{min-height:78px;padding:13px;border:1px solid #e3ebe5;border-radius:13px;background:#fff}.marketing-cards small,.marketing-cards strong{display:block}.marketing-cards small{min-height:24px;color:#777;font-size:9px;font-weight:800;text-transform:uppercase}.marketing-cards strong{margin-top:7px;color:#174c32;font-size:17px;white-space:nowrap}.marketing-table{min-width:900px}.marketing-table td:first-child strong,.marketing-table td:first-child small{display:block}.marketing-table td:first-child small{margin-top:3px;color:#999;font-size:9px}@media(max-width:1400px){.marketing-cards{grid-template-columns:repeat(4,1fr)}}@media(max-width:760px){.marketing-panel-head{display:block}.marketing-status{margin-top:10px}.marketing-cards{grid-template-columns:1fr 1fr}.marketing-cards strong{font-size:15px}}@media(max-width:430px){.marketing-cards{grid-template-columns:1fr}}
.kanban-card.client-color-red,.profile.client-color-red{background:#fff0f0;border-color:#efaaaa}.kanban-card.client-color-green,.profile.client-color-green{background:#eef9f0;border-color:#9ed4aa}.kanban-card.client-color-yellow,.profile.client-color-yellow{background:#fff8d9;border-color:#e6cf75}.kanban-card.client-color-red,.kanban-card.client-color-green,.kanban-card.client-color-yellow{box-shadow:0 6px 18px #39372f12}.client-color-control{min-width:145px}

/* Internal ANB team chat. */
#teamChatUnreadCount:not(:empty){display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;padding:0 6px;border-radius:10px;background:#cf5d5d;color:#fff;font-size:10px;font-weight:800}.team-chat-view{display:block;height:calc(100vh - 82px);padding:18px;background:#e9e7e1}.team-chat-shell{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(1050px,100%);height:100%;margin:0 auto;padding:0;overflow:hidden;border:1px solid #dedbd5;border-radius:20px;background:#f3f1ec;box-shadow:0 14px 45px #34322c18}.team-chat-head{height:auto;min-height:72px;padding:12px 18px;border-bottom:1px solid #e3e0d9;background:#fff;display:flex;align-items:center;gap:12px}.team-chat-head>div:nth-child(2){min-width:0;flex:1}.team-chat-head h2,.team-chat-head p{margin:2px 0}.team-chat-head h2{font-size:17px}.team-chat-head p{color:#777;font-size:11px}.team-chat-head button{border:0;border-radius:10px;padding:9px 12px;background:#efede8;cursor:pointer}.team-chat-avatar{display:grid!important;place-items:center;width:46px;height:46px;flex:0 0 auto;border-radius:50%;background:#bcc2ff;color:#30355e;font-size:12px;font-weight:900}.team-chat-pinned{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:9px 16px;border-bottom:1px solid #dedbd5;background:#fff}.team-chat-pinned>span{color:#515a9b;font-size:11px;font-weight:800}.team-chat-pinned>div{display:flex;gap:7px;overflow:auto}.team-chat-pinned button{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;border-left:3px solid #8f98ef;background:#f5f5ff;padding:4px 8px;color:#555;text-align:left;font-size:11px;cursor:pointer}.team-chat-pinned button strong{color:#343866}.team-chat-messages{min-height:0;padding:22px 28px;overflow:auto;scroll-behavior:smooth;background-color:#eceae5;background-image:radial-gradient(#d8d5ce 0.65px,transparent 0.65px);background-size:13px 13px}.team-chat-empty{margin:18vh auto;padding:22px;text-align:center;color:#777}.team-chat-empty strong{color:#444;font-size:18px}.team-chat-message{display:flex;align-items:flex-end;gap:8px;max-width:78%;margin:9px 0}.team-chat-message.own{flex-direction:row-reverse;margin-left:auto}.team-chat-message.highlight .team-chat-bubble{animation:team-chat-highlight 1.4s ease}.team-chat-sender-avatar{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border-radius:50%;background:#fff;color:#515a9b;border:1px solid #d8d5ce;font-size:10px;font-weight:900}.team-chat-message.own .team-chat-sender-avatar{background:#bcc2ff}.team-chat-bubble{min-width:170px;padding:9px 11px 6px;border:1px solid #e0ddd7;border-radius:14px 14px 14px 4px;background:#fff;box-shadow:0 3px 10px #39372f0b}.team-chat-message.own .team-chat-bubble{border-color:#cdd2ff;border-radius:14px 14px 4px 14px;background:#e8eaff}.team-chat-message.pinned .team-chat-bubble{border-color:#d8bc65}.team-chat-meta{display:flex;align-items:center;gap:8px;margin-bottom:5px}.team-chat-meta strong{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#515a9b;font-size:11px}.team-chat-meta time{margin-left:auto;white-space:nowrap;font-size:9px}.team-chat-meta span{font-size:10px}.team-chat-text{overflow-wrap:anywhere;white-space:normal;font-size:14px;line-height:1.45}.team-chat-text a{color:#4655ba;font-weight:600}.team-chat-quote{display:grid;width:100%;margin:0 0 7px;padding:6px 8px;border:0;border-left:3px solid #8f98ef;border-radius:4px;background:#f3f3fa;text-align:left;cursor:pointer}.team-chat-message.own .team-chat-quote{background:#dde0fa}.team-chat-quote strong,.team-chat-quote span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-chat-quote strong{color:#515a9b;font-size:10px}.team-chat-quote span{color:#666;font-size:10px}.team-chat-attachments{display:grid;gap:7px;margin-top:8px}.team-chat-image{display:block;position:relative;max-width:420px;overflow:hidden;border-radius:10px;background:#ddd;text-decoration:none}.team-chat-image img{display:block;width:100%;max-height:360px;object-fit:cover}.team-chat-image span{display:block;padding:6px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff;color:#555;font-size:10px}.team-chat-file{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px;border-radius:10px;background:#fff;color:#333;text-decoration:none}.team-chat-file>span{font-size:22px}.team-chat-file strong,.team-chat-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-chat-file strong{font-size:11px}.team-chat-file small{margin-top:2px;color:#777;font-size:9px}.team-chat-file>b{color:#515a9b;font-size:10px}.team-chat-actions{display:flex;justify-content:flex-end;gap:4px;min-height:17px;margin-top:3px;opacity:0;transition:opacity .15s}.team-chat-message:hover .team-chat-actions,.team-chat-message:focus-within .team-chat-actions{opacity:1}.team-chat-actions button{border:0;background:transparent;color:#6d73a2;padding:2px 4px;font-size:9px;cursor:pointer}.team-chat-composer{padding:10px 14px 12px;border-top:1px solid #dedbd5;background:#fff}.team-chat-compose-row{display:flex;align-items:flex-end;gap:9px}.team-chat-attach,.team-chat-emoji-button,.team-chat-send{display:grid;place-items:center;width:42px;height:42px;flex:0 0 auto;border:0;border-radius:50%;background:#efede8;cursor:pointer}.team-chat-attach{font-size:20px}.team-chat-emoji{position:relative;flex:0 0 auto}.team-chat-emoji-button{font-size:20px;line-height:1}.team-chat-emoji-button[aria-expanded="true"]{background:#e2e4ff}.team-chat-emoji-picker{position:absolute;z-index:30;bottom:calc(100% + 10px);left:0;display:grid;grid-template-columns:repeat(6,34px);gap:4px;padding:10px;border:1px solid #d8d5ce;border-radius:14px;background:#fff;box-shadow:0 12px 32px #34322c2b}.team-chat-emoji-picker[hidden]{display:none}.team-chat-emoji-picker button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:8px;background:transparent;font-size:20px;cursor:pointer}.team-chat-emoji-picker button:hover,.team-chat-emoji-picker button:focus-visible{background:#efede8;outline:none}.team-chat-send{background:#8f98ef;color:#fff;font-size:18px}.team-chat-send:disabled{opacity:.55}.team-chat-compose-row textarea{width:100%;min-width:0;min-height:42px;max-height:130px;margin:0;padding:11px 14px;resize:none;border:1px solid #dedbd5;border-radius:18px;background:#f7f6f2;font:inherit;line-height:1.4}.team-chat-reply-composer{display:flex;align-items:center;gap:10px;margin-bottom:8px;padding:7px 10px;border-left:3px solid #8f98ef;background:#f5f5ff}.team-chat-reply-composer>div{display:grid;min-width:0;flex:1}.team-chat-reply-composer strong{color:#515a9b;font-size:10px}.team-chat-reply-composer span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#666;font-size:10px}.team-chat-reply-composer button{border:0;background:transparent;font-size:19px;cursor:pointer}.team-chat-files{display:flex;gap:6px;overflow:auto;margin-bottom:8px}.team-chat-files span{flex:0 0 auto;max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 9px;border-radius:9px;background:#efede8;font-size:10px}.team-chat-files small{color:#777}.team-chat-composer .task-error{min-height:0;margin:5px 52px 0}.team-chat-composer .task-error:empty{display:none}@keyframes team-chat-highlight{0%,100%{box-shadow:0 3px 10px #39372f0b}35%{box-shadow:0 0 0 5px #f1ce62}}
@media(max-width:760px){.team-chat-view{height:calc(100dvh - 128px);padding:0}.team-chat-shell{border:0;border-radius:0}.team-chat-head{min-height:62px;padding:9px 12px}.team-chat-head p{display:none}.team-chat-head button{padding:8px;font-size:11px}.team-chat-avatar{width:40px;height:40px}.team-chat-pinned{grid-template-columns:1fr;gap:5px;padding:7px 10px}.team-chat-messages{padding:13px 9px}.team-chat-message{max-width:94%}.team-chat-sender-avatar{width:29px;height:29px}.team-chat-bubble{min-width:135px}.team-chat-actions{opacity:1}.team-chat-composer{padding:8px}.team-chat-compose-row{gap:6px}.team-chat-attach,.team-chat-emoji-button,.team-chat-send{width:39px;height:39px}.team-chat-emoji-picker{left:-46px;grid-template-columns:repeat(6,34px)}.team-chat-compose-row textarea{min-height:39px;padding:9px 12px}}
.employee-avatar-button{position:relative;overflow:hidden;padding:0;border:0;cursor:pointer}.employee-avatar-button img,.team-chat-sender-avatar img{display:block;width:100%;height:100%;object-fit:cover}.employee-avatar-button>span{position:absolute;right:-1px;bottom:-1px;display:grid;place-items:center;width:17px;height:17px;border:2px solid #fff;border-radius:50%;background:#515a9b;color:#fff;font-size:11px}.employee-avatar-button:hover:after{content:'Изменить';position:absolute;inset:auto 0 0;padding:3px;background:#242329bb;color:#fff;font-size:8px}.team-chat-sender-avatar{overflow:hidden}
.install-app-button{background:#e8eaff!important;color:#30355e;font-weight:700;white-space:nowrap}.pwa-install-dialog{width:min(430px,calc(100% - 30px));padding:0}.pwa-install-body{padding:28px;text-align:center}.pwa-install-body>img{display:block;margin:0 auto 14px;border-radius:19px}.pwa-install-body h3{margin:0 0 12px}.pwa-install-help{margin:0 0 18px;color:#5f5d58;font-size:14px;line-height:1.55;text-align:left}.pwa-install-help ol{margin:10px 0 0;padding-left:22px}.pwa-install-help strong{color:#30355e}.pwa-install-body .primary-button{width:100%}@media(display-mode:standalone){.install-app-button{display:none!important}body{padding-bottom:env(safe-area-inset-bottom)}}@media(max-width:760px){.install-app-button{padding:8px!important;font-size:11px}.pwa-install-body{padding:24px}}
.team-chat-layout{display:grid;grid-template-columns:98px minmax(0,1fr);width:min(1160px,100%);height:100%;margin:0 auto;overflow:hidden;border:1px solid #dedbd5;border-radius:20px;background:#fff;box-shadow:0 14px 45px #34322c18}.team-chat-contact-rail{min-height:0;padding:10px 7px;border-right:1px solid #e3e0d9;background:#fff;overflow-x:hidden;overflow-y:auto}.direct-chat-contacts{display:grid;gap:7px;margin-top:7px;padding-top:7px;border-top:1px solid #eee}.team-chat-contact{position:relative;display:grid;width:100%;justify-items:center;gap:5px;padding:7px 3px;border:0;border-radius:14px;background:transparent;color:#666;cursor:pointer}.team-chat-contact:hover,.team-chat-contact.active{background:#eef0ff;color:#30355e}.team-chat-contact-avatar{display:grid;place-items:center;width:52px;height:52px;overflow:hidden;border:2px solid #dedbd5;border-radius:50%;background:#f0efe9;color:#515a9b;font-size:12px;font-style:normal;font-weight:900}.team-chat-contact.active .team-chat-contact-avatar{border-color:#747fd9;box-shadow:0 0 0 3px #e2e5ff}.team-chat-contact-avatar.general{background:#bcc2ff;color:#30355e;font-size:11px}.team-chat-contact-avatar img,.team-chat-avatar img{display:block;width:100%;height:100%;object-fit:cover}.team-chat-contact strong{display:block;width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;text-align:center}.team-chat-contact i{position:absolute;right:8px;top:4px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border:2px solid #fff;border-radius:11px;background:#cf5d5d;color:#fff;font-size:9px;font-style:normal;font-weight:900}.team-chat-no-contacts{margin:12px 3px;color:#999;font-size:9px;line-height:1.35;text-align:center}.team-chat-layout .team-chat-shell{width:100%;margin:0;border:0;border-radius:0;box-shadow:none}.team-chat-avatar{overflow:hidden}
@media(max-width:760px){.team-chat-layout{grid-template-columns:1fr;grid-template-rows:84px minmax(0,1fr);width:100%;border:0;border-radius:0}.team-chat-contact-rail{display:flex;align-items:flex-start;gap:6px;padding:6px 9px;border-right:0;border-bottom:1px solid #e3e0d9;overflow-x:auto;overflow-y:hidden}.direct-chat-contacts{display:flex;gap:6px;margin:0;padding:0 0 0 7px;border-top:0;border-left:1px solid #eee}.team-chat-contact{width:64px;min-width:64px;padding:3px}.team-chat-contact-avatar{width:46px;height:46px}.team-chat-contact strong{width:60px;font-size:8px}.team-chat-contact i{right:1px;top:0}.team-chat-no-contacts{min-width:95px}.team-chat-layout .team-chat-shell{min-height:0}}

/* Mobile workspace: compact CRM card, accessible chat contacts and collapsible reports. */
.mobile-chat-contact-label{display:none}
.mobile-client-disclosure{align-self:start;height:auto!important;padding:0!important;border:1px solid #e5e2dc;border-radius:14px;background:#fff;overflow:hidden!important}
.mobile-client-disclosure>summary,.call-transcript-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 14px;color:#343866;font-size:14px;font-weight:800;cursor:pointer;list-style:none}
.mobile-client-disclosure>summary::-webkit-details-marker,.call-transcript-disclosure>summary::-webkit-details-marker{display:none}
.mobile-client-disclosure>summary:after,.call-transcript-disclosure>summary:after{content:'⌄';margin-left:auto;color:#747fd9;font-size:18px;transition:transform .15s}
.mobile-client-disclosure[open]>summary:after,.call-transcript-disclosure[open]>summary:after{transform:rotate(180deg)}
.mobile-client-disclosure>summary small{display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:13px;background:#eef0ff;color:#515a9b;font-size:10px}
.mobile-client-disclosure[open]>summary{border-bottom:1px solid #ece9e2}
.mobile-client-disclosure-body{height:auto;min-height:0;padding:18px}
.client-content-block.mobile-client-disclosure .mobile-client-disclosure-body{display:flex;flex-direction:column}
.client-content-block.mobile-client-disclosure[open] .mobile-client-disclosure-body{height:370px;max-height:55vh}
.mobile-client-disclosure .client-content-head h3,.contact-history-block .mobile-client-disclosure-body>h3{display:none}
.call-transcript-disclosure{margin-top:12px;border:1px solid #e7e4dd;border-radius:12px;background:#fcfbf9;overflow:hidden}
.call-transcript-disclosure>summary small{color:#777;font-size:10px;font-weight:600}
.call-transcript-disclosure .readable-block{margin:0;border:0;border-top:1px solid #e7e4dd;border-radius:0}
.call-transcript-disclosure .readable-heading{display:none}
.marketing-panel-actions{display:flex;align-items:center;gap:8px}
.marketing-campaign-toggle{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;background:#eef0ff;color:#515a9b;padding:8px 10px;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer}
.marketing-campaigns-body{display:none}
.marketing-panel.campaigns-expanded .marketing-campaigns-body{display:block}
.team-chat-contact-avatar{position:relative;overflow:visible}
.team-chat-contact-avatar>img{overflow:hidden;border-radius:50%}
.team-chat-contact-message-icon{position:absolute;right:-4px;bottom:-3px;display:grid;place-items:center;width:20px;height:20px;border:2px solid #fff;border-radius:50%;background:#747fd9;color:#fff;font-size:10px;line-height:1}
.contact-history-block{max-width:900px}

@media(max-width:760px){
  header .account #installAppButton,header .account #notificationsButton,header .account #logout{display:none!important}
  .desktop-explanation{display:none!important}
  #card{padding:12px;overflow-x:hidden}
  .profile{padding:15px;gap:11px;border-radius:14px}
  .profile .avatar,.profile .social-avatar img{width:46px;height:46px}
  .profile-info h2{font-size:19px;overflow-wrap:anywhere}
  .profile-info p{font-size:12px;overflow-wrap:anywhere}
  .profile-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;margin:8px 0 0;gap:7px}
  .profile-actions>*{min-width:0;max-width:none;margin:0}
  .profile-actions .client-stage-control,.profile-actions .responsible-control,.profile-actions .responsible-current,.profile-actions .responsible-claim{grid-column:1/-1}
  .profile-action-button,.edit-client-button{width:100%;padding:9px 7px;font-size:11px}
  .client-workspace{display:block;margin-top:12px}
  .client-data-column{max-height:none!important}
  .client-data-form{padding:15px;border-radius:14px}
  .client-data-title p{margin-bottom:10px}
  .client-data-form label{margin:8px 0}
  .client-main-column{margin-top:12px}
  .client-content-grid{display:flex;flex-direction:column;gap:10px}
  .client-content-grid>.client-content-block:not(.mobile-client-disclosure){order:1}
  .client-content-grid>.mobile-client-disclosure{order:2}
  .client-content-block{height:340px;padding:14px;border-radius:14px}
  .mobile-client-disclosure{height:auto!important;margin:10px 0;padding:0!important;border:1px solid #e5e2dc;border-radius:14px;background:#fff;overflow:hidden!important}
  .mobile-client-disclosure>summary,.call-transcript-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 14px;color:#343866;font-size:14px;font-weight:800;cursor:pointer;list-style:none}
  .mobile-client-disclosure>summary::-webkit-details-marker,.call-transcript-disclosure>summary::-webkit-details-marker{display:none}
  .mobile-client-disclosure>summary:after,.call-transcript-disclosure>summary:after{content:'⌄';margin-left:auto;color:#747fd9;font-size:18px;transition:transform .15s}
  .mobile-client-disclosure[open]>summary:after,.call-transcript-disclosure[open]>summary:after{transform:rotate(180deg)}
  .mobile-client-disclosure>summary small{display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:13px;background:#eef0ff;color:#515a9b;font-size:10px}
  .mobile-client-disclosure[open]>summary{border-bottom:1px solid #ece9e2}
  .mobile-client-disclosure>.mobile-client-disclosure-body{height:auto;padding:13px}
  .mobile-client-disclosure .client-content-head h3,.contact-history-block .mobile-client-disclosure-body>h3{display:none}
  .mobile-client-disclosure .client-content-head p{margin:0}
  .client-content-block.mobile-client-disclosure .mobile-client-disclosure-body{max-height:350px}
  .client-content-block.mobile-client-disclosure .client-documents{margin-top:10px}
  .site-leads-block{margin:10px 0}
  .site-leads-block .site-leads-list{max-height:52vh;margin-top:10px}
  .contact-history-block{margin:10px 0}
  .contact-history-block>.mobile-client-disclosure-body{padding:5px 10px 10px}
  .timeline article{padding:14px;margin:9px 0}
  .contact-entry{padding:14px!important}
  .call-transcript-disclosure{margin-top:10px;border:1px solid #e7e4dd;border-radius:12px;background:#fcfbf9;overflow:hidden}
  .call-transcript-disclosure>summary{min-height:44px;padding:10px 12px;font-size:13px}
  .call-transcript-disclosure>summary small{color:#777;font-size:9px;font-weight:600}
  .call-transcript-disclosure .readable-block{margin:0;border:0;border-top:1px solid #e7e4dd;border-radius:0}
  .call-transcript-disclosure .readable-heading{display:none}
  .readable-short,.readable-full{padding:10px}
  .speech-row{max-width:100%;padding:9px 10px}
  .marketing-panel{padding:14px}
  .marketing-panel-head{display:flex;align-items:flex-start}
  .marketing-panel-head>div:first-child{min-width:0;flex:1}
  .marketing-panel-head p{display:none}
  .marketing-panel-actions{display:grid;justify-items:end;flex:0 0 auto}
  .marketing-status{margin:0;white-space:normal;text-align:center}
  .marketing-campaign-toggle{padding:7px 9px;font-size:10px}
  .team-chat-layout{grid-template-rows:108px minmax(0,1fr)}
  .team-chat-contact-rail{display:flex;flex-wrap:wrap;align-content:flex-start;gap:5px;padding:5px 8px;overflow-x:auto}
  .mobile-chat-contact-label{display:block;flex:0 0 100%;height:17px;color:#777;font-size:10px;font-weight:800}
  .direct-chat-contacts{flex:0 0 auto;height:70px}
  .team-chat-contact{height:68px}
  .team-chat-contact-avatar{overflow:visible}
  .team-chat-message{cursor:pointer;touch-action:manipulation}
}

/* CRM 0.15.21: inline history images, global chat search and safe client merge. */
.history-image-preview,.client-document-preview{display:block;border-radius:12px;overflow:hidden;background:#eef1f6;margin:.45rem 0;max-width:520px}
.history-image-preview img,.client-document-preview img{display:block;width:100%;max-height:360px;object-fit:contain;background:#f4f6f9}
.client-document-card{display:block;border:1px solid #e2e6ee;border-radius:12px;padding:.5rem;margin:.4rem 0;background:#fff}
.client-document-card .client-document{border:0;margin:0;padding:.35rem}
.team-chat-search-form{display:flex;align-items:center;gap:.45rem;width:clamp(260px,32vw,440px);height:38px;margin-left:auto;padding:0 .5rem 0 .7rem;border:1px solid #cfd5df;border-radius:10px;background:#fff}
.team-chat-search-form:focus-within{border-color:#6874d8;box-shadow:0 0 0 3px #6874d81c}
.team-chat-search-form>.ti-icon{width:17px;height:17px;flex:0 0 auto;color:#70798b}
.team-chat-search-form input{min-width:0;height:34px;flex:1;padding:0;border:0;outline:0;background:transparent;font-size:13px}
.team-chat-search-form button{display:grid;width:26px;height:26px;place-items:center;padding:0;border:0;border-radius:50%;background:#eef0f4;color:#586174;font-size:18px;line-height:1;cursor:pointer}
.team-chat-search-form button[hidden]{display:none}
.chat-search-inline-results{display:grid;width:min(100%,900px);gap:.55rem;margin:0 auto;padding:.4rem}
.chat-search-state{margin:auto;padding:1rem;color:#697386;text-align:center}.chat-search-state.error{color:#a23d45}
.chat-search-result{border:1px solid #dde2eb;border-radius:12px;padding:.75rem;background:#f8f9fc}
.chat-search-result header{display:flex;justify-content:space-between;gap:1rem}.chat-search-result time,.chat-search-result small,.chat-search-route{font-size:.8rem;color:#697386}.chat-search-result p{margin:.35rem 0;white-space:pre-wrap}
.merge-client-choices{display:grid;gap:.5rem;margin:1rem 0;max-height:50vh;overflow:auto}
.merge-client-choice{display:flex!important;align-items:center;gap:.65rem;border:1px solid #dde2eb;border-radius:12px;padding:.75rem;background:#f8f9fc}
.merge-client-choice input{width:auto!important}.merge-client-choice span{display:grid}.merge-client-choice small{color:#697386}
.site-queue-action-buttons select{min-width:190px}
@media(max-width:760px){
  .history-image-preview,.client-document-preview{max-width:100%}.history-image-preview img,.client-document-preview img{max-height:260px}
  .team-chat-search-form{display:none!important}
  .site-queue-action-buttons select{width:100%}
}

.pipeline-pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin:4px auto 22px}
.pipeline-pagination .pipeline-load-more{margin:0}

.account-profile-button{border:0;border-radius:9px;background:#eef0ff!important;color:#414a91;cursor:pointer;font-weight:700}
@media(max-width:760px){.account-profile-button{width:38px;overflow:hidden;position:relative}.account-profile-button>span{display:none}.account-profile-button .ti-icon{color:#414a91}}

.site-queue-action-buttons{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.site-queue-action-buttons button{min-width:0;padding:9px 11px;border:0;border-radius:9px;cursor:pointer}.site-queue-disposition.refused{background:#f7e8e8;color:#9a4141}.site-queue-disposition.non-target{background:#ece9e4;color:#625f59}.employee-name-edit{margin-top:4px;padding:0;border:0;background:transparent;color:#515a9b;font-size:10px;font-weight:700;cursor:pointer}.employee-name-edit:hover{text-decoration:underline}@media(max-width:760px){.site-queue-action-buttons{display:grid;grid-template-columns:1fr 1fr}.site-queue-action-buttons .primary-button{grid-column:1/-1}}

/* Compact desktop CRM shell and client card. */
:root{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
header{height:72px;padding:0 22px;gap:20px}
header .brand{display:grid!important;grid-template-columns:38px auto;grid-template-rows:auto auto;align-items:center;column-gap:9px;flex:0 0 auto}
.brand-mark{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#bcc2ff;color:#30355e!important;font-size:12px!important;font-weight:900;letter-spacing:.5px}
.brand-copy{display:grid;line-height:1}
.brand-copy b{font-size:16px;letter-spacing:1.5px}
.brand-copy small{margin-top:4px;color:#777;font-size:9px}
header h1{font-size:18px;margin:0}
header nav{gap:5px}
header button,.section-head button{padding:9px 12px;border-radius:10px;font-size:13px;white-space:nowrap}
.account{gap:7px}.account span{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
main{height:calc(100vh - 72px)}
.pipeline-view,.employees-view,.site-leads-queue-view,.statistics-view,.tasks-view,.team-chat-view,.telegram-view,.max-view{height:calc(100vh - 72px)}
.pipeline-toolbar-head{justify-content:flex-end;margin-bottom:10px}.pipeline-toolbar-head>div{display:none}
.statistics-settings-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:12px 0 18px;padding:13px 15px;border:1px solid #e5e2dc;border-radius:14px;background:#fff}
.statistics-settings-card>div:first-child{display:grid;gap:3px}.statistics-settings-card strong{font-size:13px}.statistics-settings-card span{color:#777;font-size:11px}
.statistics-settings-actions{display:flex;gap:8px}.statistics-settings-actions button{border:0;border-radius:10px;padding:9px 12px;background:#efede8;cursor:pointer;font-size:12px}.statistics-settings-actions .install-app-button{background:#e8eaff!important}
.profile{display:grid;grid-template-columns:auto minmax(220px,1fr) minmax(460px,auto);align-items:center;gap:12px;padding:16px 18px;border-radius:15px}
.profile-info{align-self:center}.profile-info h2{max-width:100%;margin:0;font-size:clamp(18px,1.55vw,22px);line-height:1.15;overflow-wrap:anywhere}.profile-info p{margin:4px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.profile .avatar{width:48px;height:48px;font-size:19px}.client-tags{min-height:22px;align-items:center;gap:5px;margin-top:6px}.client-tag{padding:3px 7px;font-size:10px}.profile-tags-empty{display:inline-flex;align-items:center;height:22px;color:#8a877f;font-size:10px;white-space:nowrap}
.profile-actions{gap:6px;align-content:center}.profile-action-button,.edit-client-button{padding:8px 10px;border-radius:9px;font-size:11px}.client-stage-control,.responsible-control{min-width:150px}.client-stage-control select,.responsible-control select{height:34px;padding:6px 8px;font-size:11px}.responsible-current,.responsible-claim{padding:6px 9px}
.client-workspace{grid-template-columns:minmax(340px,390px) minmax(0,1fr);gap:16px;margin-top:8px}.client-data-column{top:8px}.client-data-form{display:grid;grid-template-columns:1fr 1fr;column-gap:6px;padding:10px 14px;border-radius:15px}.client-data-title,.client-data-form>label:has(#profileClientName),.client-phone-field,.client-profile-pair,.client-data-form>label:has(#profileComplex),.money-row,.object-row,.client-data-form>.task-error,.profile-save{grid-column:1/-1}.client-data-title h3{margin:0 0 3px;font-size:14px}.client-data-form label{margin:3px 0;font-size:9px}.client-data-form input,.client-data-form select{min-height:31px;margin:2px 0 0;padding:5px 8px;border-radius:8px;font-size:11px}.money-row,.object-row,.client-profile-pair{display:grid;grid-template-columns:1fr 1fr;gap:6px}.profile-save{margin-top:3px;padding:8px;font-size:11px}.client-data-form .task-error{min-height:0;margin:0}.client-data-form .task-error:empty{display:none}
.kanban-phone{display:inline-block;margin-top:6px;padding:0;border:0;background:transparent;color:#515a9b;text-decoration:underline;text-underline-offset:2px;font-size:13px;cursor:pointer}
@media(max-width:1380px){header{gap:13px;padding:0 16px}header h1{display:none}header nav{flex:1}}
@media(max-width:1100px){.client-workspace{grid-template-columns:1fr}.client-data-column{position:static;max-width:680px}.profile{grid-template-columns:auto minmax(0,1fr)}.profile-actions{grid-column:1/-1}}
@media(max-width:760px){header{height:auto;min-height:72px}.brand-copy{display:none}header .brand{grid-template-columns:38px}.statistics-settings-card{align-items:flex-start;flex-direction:column}.statistics-settings-actions{width:100%}.statistics-settings-actions button{flex:1}.profile{display:grid;grid-template-columns:auto minmax(0,1fr);padding:13px}.profile-actions{grid-column:1/-1}.client-profile-pair{grid-template-columns:1fr 1fr}.client-data-form{padding:13px}.pipeline-toolbar-head{display:none}}

/* Team chat workspace: monthly plan, priorities and reusable materials. */
.team-chat-layout{grid-template-columns:98px minmax(0,1fr) 310px;width:min(1480px,100%);position:relative}
.team-workspace-panel{display:flex;min-width:0;flex-direction:column;overflow:hidden;border-left:1px solid #e3e0d9;background:#f7f6f2;transition:width .18s ease}
.team-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:72px;padding:12px 13px;border-bottom:1px solid #e3e0d9;background:#fff}.team-workspace-head h2{margin:0;font-size:15px}.team-workspace-head span{display:block;margin-top:3px;color:#777;font-size:10px}.team-workspace-head-actions{display:flex!important;align-items:center;gap:6px;margin:0!important}.team-scan-link{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border-radius:9px;background:#0f9f86;color:#fff;text-decoration:none;font-size:10px;font-weight:900;box-shadow:0 4px 12px #0f9f8638}.team-scan-link:hover{background:#0b876f;color:#fff}.team-scan-link .ti-icon{width:15px;height:15px}.team-scan-link span{margin:0;color:inherit;font-size:inherit}.team-workspace-head button,.team-workspace-card-head button{border:0;border-radius:8px;background:#eef0ff;color:#515a9b;padding:6px 8px;font-size:9px;font-weight:800;cursor:pointer}.team-workspace-body{min-height:0;padding:10px;overflow:auto}.team-workspace-card{margin:0 0 9px;padding:11px;border:1px solid #e3e0d9;border-radius:13px;background:#fff}.team-workspace-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.team-workspace-card h3{margin:0;font-size:12px}.team-sales-plan-value{display:block;margin:11px 0 3px;color:#343866;font-size:23px}.sales-plan-card>small{color:#888;font-size:9px}.team-workspace-hint{margin:7px 0 9px;color:#777;font-size:10px;line-height:1.35}.team-monthly-tasks,.team-resources{display:grid;gap:7px;margin-top:9px}.team-monthly-task{display:grid;grid-template-columns:23px minmax(0,1fr) 22px;align-items:start;gap:7px;padding:8px;border-radius:10px;background:#f7f6f2}.team-monthly-task>span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#bcc2ff;color:#30355e;font-size:10px;font-weight:900}.team-monthly-task p{margin:2px 0;color:#444;font-size:11px;line-height:1.35;overflow-wrap:anywhere}.team-monthly-task button{border:0;background:transparent;color:#a25d5d;font-size:18px;line-height:1;cursor:pointer}.team-resource-item{display:grid;gap:7px;padding:9px;border:1px solid #e7e4dd;border-radius:10px;background:#fcfbf9}.team-resource-item>div:first-child{display:grid;gap:4px;min-width:0}.team-resource-item a,.team-resource-item strong{color:#343866;font-size:11px;font-weight:800;overflow-wrap:anywhere}.team-resource-item span,.team-resource-item small{color:#777;font-size:9px;overflow-wrap:anywhere}.team-resource-actions{display:flex;flex-wrap:wrap;gap:6px}.team-resource-actions button,.team-resource-actions a{border:0;border-radius:8px;background:#eef0ff;color:#515a9b;padding:6px 8px;font-size:9px;font-weight:800;text-decoration:none;cursor:pointer}.team-workspace-inline-form{display:grid;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid #ece9e2}.team-workspace-inline-form label{display:grid;gap:4px;color:#666;font-size:9px;font-weight:700}.team-workspace-inline-form input,.team-workspace-inline-form textarea{width:100%;margin:0;padding:8px;border:1px solid #dedbd5;border-radius:8px;background:#fff;font:inherit;font-size:11px;box-sizing:border-box}.team-workspace-inline-form>div{display:flex;gap:6px}.team-workspace-inline-form>div button{flex:1;border:0;border-radius:8px;padding:7px;background:#747fd9;color:#fff;font-size:9px;font-weight:800;cursor:pointer}.team-workspace-inline-form>div button+button{background:#efede8;color:#555}.team-workspace-inline-form>small{color:#888;font-size:9px}.team-workspace-panel.collapsed{width:58px}.team-workspace-panel.collapsed .team-workspace-head{height:100%;align-items:flex-start;padding:12px 8px}.team-workspace-panel.collapsed .team-workspace-head>div{display:none}.team-workspace-panel.collapsed .team-scan-link{display:none}.team-workspace-panel.collapsed .team-workspace-head button{writing-mode:vertical-rl;padding:10px 7px}
@media(max-width:1100px) and (min-width:761px){.team-chat-layout{grid-template-columns:82px minmax(0,1fr) 280px}.team-chat-contact-avatar{width:45px;height:45px}.team-chat-contact strong{width:68px}}
@media(max-width:760px){.team-chat-layout{grid-template-columns:1fr;grid-template-rows:108px minmax(340px,1fr) auto;height:auto;min-height:100%;overflow:visible}.team-chat-contact-rail{grid-row:1}.team-chat-layout .team-chat-shell{grid-row:2;height:calc(100dvh - 128px)}.team-workspace-panel{grid-row:3;max-height:52vh;border-top:1px solid #e3e0d9;border-left:0}.team-workspace-panel.collapsed{width:auto;max-height:58px}.team-workspace-panel.collapsed .team-workspace-head{height:auto;min-height:58px;align-items:center;padding:10px 12px}.team-workspace-panel.collapsed .team-workspace-head>div{display:block}.team-workspace-panel.collapsed .team-workspace-head button{writing-mode:horizontal-tb;padding:7px 9px}.team-workspace-head{min-height:58px}.team-workspace-body{padding:9px}.team-sales-plan-value{font-size:21px}}

/* Mobile chat: keep contacts, messages and composer inside one screen. */
.team-chat-author{min-width:0;padding:0;border:0;background:transparent;color:#515a9b;font-size:11px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.team-chat-author:hover{text-decoration:underline}
#teamChatUnreadCount:not(:empty){box-shadow:0 0 0 2px #fff}
@media(max-width:760px){
  #teamChatTab{position:relative}
  #teamChatUnreadCount:not(:empty){min-width:18px;height:18px;margin-left:3px;padding:0 5px;font-size:9px}
  .team-chat-view{height:var(--mobile-team-chat-height,calc(100dvh - 100px))!important;min-height:480px!important;padding:0!important;overflow:hidden!important}
  .team-chat-layout{grid-template-columns:1fr!important;grid-template-rows:74px minmax(0,1fr) auto!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important;border:0!important;border-radius:0!important}
  .team-chat-contact-rail{grid-row:1!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;align-content:center!important;gap:6px!important;height:74px!important;min-height:74px!important;padding:5px 8px!important;overflow-x:auto!important;overflow-y:hidden!important;border-right:0!important;border-bottom:1px solid #e3e0d9!important;scrollbar-width:thin}
  .mobile-chat-contact-label{display:none!important}
  .direct-chat-contacts{display:flex!important;flex:0 0 auto!important;gap:6px!important;height:auto!important;margin:0!important;padding:0 0 0 7px!important;border-top:0!important;border-left:1px solid #eee!important}
  .team-chat-contact{width:62px!important;min-width:62px!important;height:64px!important;padding:2px!important}
  .team-chat-contact-avatar{width:43px!important;height:43px!important}
  .team-chat-contact strong{width:58px!important;font-size:8px!important}
  .team-chat-layout .team-chat-shell{grid-row:2!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
  .team-chat-head{display:none!important}
  .team-chat-pinned{grid-row:1}
  .team-chat-messages{grid-row:2;min-height:0!important;overflow-y:auto!important}
  .team-chat-composer{grid-row:3;position:relative;z-index:3;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important}
  .team-workspace-panel{grid-row:3!important;max-height:36dvh!important;overflow:hidden!important;border-top:1px solid #e3e0d9!important;border-left:0!important}
  .team-workspace-panel.collapsed{max-height:58px!important}
}

/* Client workspace order and in-app service notifications. */
.client-data-column{display:grid;gap:12px}
.client-documents-block{width:100%;max-width:none;margin:0}
.client-content-grid>.client-tasks-block{width:100%;max-width:none;height:420px;margin:0;overflow:auto}
.team-chat-contact-avatar.service{background:#fff1d8;color:#8a6218}
.service-notification.unread .team-chat-bubble{border-color:#d8bc65;background:#fffaf0;box-shadow:0 0 0 2px #fff1c9}
.service-notification .team-chat-actions{opacity:1;justify-content:flex-start}
.service-notification .team-chat-actions button{border-radius:8px;background:#eef0ff;padding:7px 9px;color:#515a9b;font-size:10px;font-weight:800}
.app-toast-region{position:fixed;z-index:5000;top:84px;right:18px;display:grid;width:min(390px,calc(100vw - 28px));gap:9px;pointer-events:none}
.app-toast{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:10px;border:1px solid #d9d6cf;border-radius:15px;background:#fff;box-shadow:0 16px 45px #24232933;pointer-events:auto;animation:app-toast-in .2s ease-out}
.app-toast-content{display:grid;gap:4px;min-width:0;padding:4px 5px;border:0;background:transparent;text-align:left;cursor:pointer}
.app-toast-content strong{color:#343866;font-size:13px}.app-toast-content span{overflow:hidden;color:#555;font-size:11px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.app-toast-close{grid-column:2;grid-row:1;align-self:start;border:0;background:transparent;color:#777;font-size:20px;cursor:pointer}
.app-toast-allow{grid-column:1/-1;justify-self:start;border:0;border-radius:8px;background:#eef0ff;color:#515a9b;padding:7px 9px;font-size:10px;font-weight:800;cursor:pointer}
@keyframes app-toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){
  #clientsView:not(.client-card-open)>#card{display:none}
  #clientsView.client-card-open>aside{display:none}
  #clientsView.client-card-open>#card{display:block;width:100%}
  .client-data-column{gap:10px}
  .client-documents-block{margin:0!important}
  .client-content-grid>.client-tasks-block{order:1;height:360px;margin:0;overflow:auto}
  .app-toast-region{top:74px;right:8px;width:calc(100vw - 16px)}
}

/* Mobile task calendar: compact overdue disclosure and three visible days. */
.overdue-title{margin-bottom:16px}.overdue-title button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.overdue-title button span{flex:1;font-size:19px;font-weight:800}.overdue-title button b{display:grid;place-items:center;min-width:30px;height:30px;padding:0 8px;border-radius:15px;background:#fff0f0;color:#a12f2f;font-size:13px}.overdue-title button i{color:#777;font-style:normal;font-size:16px}
.week-grid{grid-template-columns:64px repeat(var(--calendar-day-count,7),minmax(125px,1fr))}
@media(max-width:760px){
  .tasks-view{display:grid;height:calc(100dvh - 72px);grid-template-rows:auto minmax(0,1fr);overflow:hidden;background:#f7f6f2}
  .overdue-panel{max-height:42vh;padding:7px 9px;border:0;border-bottom:1px solid #e5e2dc;overflow:auto}
  .overdue-title{margin:0}.overdue-title button{min-height:38px;padding:0 5px}.overdue-title button span{font-size:13px}.overdue-title button b{min-width:24px;height:24px;padding:0 6px;font-size:11px}.overdue-title button i{font-size:14px}
  .overdue-panel.mobile-collapsed{max-height:52px;overflow:hidden}.overdue-panel.mobile-collapsed #overdueTasks{display:none}
  .calendar-section{display:flex;min-height:0;flex-direction:column;padding:6px}
  .calendar-toolbar{display:block;margin:0 0 6px}.calendar-toolbar .calendar-navigation,.calendar-toolbar>h2,.calendar-toolbar .view-switch,.calendar-toolbar .completed-filter{display:none!important}
  .calendar-actions{display:block}.calendar-actions #newTaskButton{display:block;width:100%;min-height:40px;padding:8px 12px;border-radius:12px;font-size:13px;font-weight:800}
  .google-calendar-panel,.calendar-drag-hint{display:none!important}
  .calendar{flex:1;min-height:0;height:auto;border-radius:13px;overscroll-behavior:contain}
  .week-grid{grid-template-columns:42px repeat(var(--calendar-day-count,14),calc((100vw - 54px)/3));min-width:max-content}
  .week-corner,.week-day-head{height:42px}.week-day-head{gap:3px}.week-day-head span{font-size:10px}.week-day-head strong{width:25px;height:25px;font-size:12px}
  .week-time,.week-cell{box-sizing:border-box;min-height:76px;height:clamp(76px,calc((100dvh - 240px)/8),92px)}
  .week-time{padding:5px 5px 0 0;font-size:10px}.week-cell{padding:2px}
  .calendar-task{min-height:0;margin:0;border-radius:5px}.week-cell .calendar-task-body{gap:1px;padding:4px}.week-cell .calendar-task-body>time{font-size:9px}.week-cell .calendar-task-body>.calendar-task-client{font-size:10px}.week-cell .calendar-task-body>strong{font-size:9px;line-height:1.15}.calendar-task .google-sync-mark,.calendar-task>[data-complete-task]{display:none}
}

/* App-style mobile navigation and compact More sheet. */
#moreTab{display:none}
.mobile-more-menu{display:none}
@media(max-width:760px){
  body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  body>header{min-height:58px;padding:9px 12px}
  body>header .account{display:none!important}
  body>header nav{position:fixed;z-index:4200;left:0;right:0;bottom:0;display:grid!important;grid-template-columns:repeat(6,1fr);width:100%;height:calc(64px + env(safe-area-inset-bottom));gap:0;padding:4px 3px env(safe-area-inset-bottom);border-top:1px solid #ddd9d1;background:#fff;box-shadow:0 -8px 24px #24232918}
  body>header nav button{position:relative;display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:10px;padding:4px 1px;background:transparent!important;color:#68655f;font-size:0!important}
  body>header nav button::before{content:attr(data-mobile-icon);height:22px;color:#555;font-size:19px;line-height:22px;font-weight:800}
  body>header nav button::after{content:attr(data-mobile-label);max-width:100%;overflow:hidden;color:#68655f;font-size:9px;line-height:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
  body>header nav button.active{background:#eef0ff!important}
  body>header nav button.active::before,body>header nav button.active::after{color:#414a91}
  body>header nav #teamChatTab{order:1}body>header nav #siteLeadsTab{order:2}body>header nav #clientsTab{order:3}body>header nav #pipelineTab{order:4}body>header nav #tasksTab{order:5}body>header nav #moreTab{order:6;display:flex!important}
  body>header nav #statisticsTab,body>header nav #telegramTab,body>header nav #maxTab,body>header nav #employeesTab{display:none!important}
  #teamChatUnreadCount:not(:empty),#siteLeadsCount:not(:empty){position:absolute;top:2px;left:calc(50% + 7px);display:grid;place-items:center;min-width:17px;height:17px;margin:0;padding:0 5px;border:2px solid #fff;border-radius:10px;background:#dc5050;color:#fff!important;font-size:8px!important;line-height:1;z-index:2}
  main,.pipeline-view,.employees-view,.site-leads-queue-view,.statistics-view,.tasks-view,.team-chat-view,.telegram-view,.max-view{height:calc(100dvh - 58px - 64px - env(safe-area-inset-bottom))!important}
  .mobile-more-menu{position:fixed;z-index:4300;inset:0;display:block}
  .mobile-more-backdrop{position:absolute;inset:0;border:0;background:#24232966}
  .mobile-more-sheet{position:absolute;left:8px;right:8px;bottom:calc(68px + env(safe-area-inset-bottom));display:grid;gap:7px;padding:12px;border:1px solid #e1ded7;border-radius:18px;background:#fff;box-shadow:0 18px 55px #24232944}
  .mobile-more-head{display:flex;align-items:center;justify-content:space-between;padding:2px 3px 6px}.mobile-more-head strong{font-size:15px}.mobile-more-head button{width:34px;height:34px;border:0;border-radius:10px;background:#efede8;font-size:22px;cursor:pointer}
  .mobile-more-sheet>button{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;width:100%;padding:10px;border:0;border-radius:12px;background:#f7f6f2;text-align:left;cursor:pointer}
  .mobile-more-sheet>button>span{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eef0ff;font-size:18px}.mobile-more-sheet>button>b{font-size:13px}.mobile-more-sheet>button>small{margin-top:2px;color:#777;font-size:10px}
}

/* Client card v2: focused daily sales workspace. */
:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202638;background:#f5f6f8}
body{background:#f5f6f8;color:#202638;font-size:14px}
body>header{height:64px;padding:0 20px;gap:18px;border-color:#29324a;background:#29324a;color:#fff}
body>header .brand{display:flex;flex:0 0 38px;align-items:center;justify-content:center}
body>header .brand-mark{background:#5b67d6;color:#fff!important}
body>header .brand-copy b,body>header h1,body>header .account span{color:#fff}
body>header .brand-copy small{color:#c9cfdd}
body>header nav button,body>header .account button{border:0;background:transparent;color:#dfe3ec}
body>header nav button:hover,body>header .account button:hover{background:#39435f;color:#fff}
body>header nav button.active{background:#5b67d6;color:#fff}
main,.pipeline-view,.employees-view,.site-leads-queue-view,.statistics-view,.tasks-view,.team-chat-view,.telegram-view,.max-view{height:calc(100vh - 64px)}
#clientsView{background:#f5f6f8}
#clientsView>#card{padding:18px 20px 40px;background:#f5f6f8;overflow-x:hidden}
.clients-list-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:10px}
.clients-list-toolbar #search{min-width:0;margin:0}
.clients-list-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 11px;border:0;border-radius:9px;background:#5b67d6;color:#fff;cursor:pointer;font:inherit;font-size:12px;font-weight:600}
.clients-list-toolbar button:hover{background:#4854c5}
.clients-list-toolbar button .ti-icon{width:17px;height:17px}
.client{position:relative;display:grid;grid-template-columns:26px minmax(0,1fr);align-items:start;gap:4px;padding:8px}.client.bulk-selected,.kanban-card.bulk-selected{background:#eef0ff;border-color:#7d87df;box-shadow:0 0 0 2px #bcc2ff}.client-open{min-width:0;padding:5px 4px;border:0;background:transparent;text-align:left;cursor:pointer}.client-open strong,.client-open span,.client-open small{display:block}.client-open span{margin-top:5px}.bulk-select-checkbox{display:grid;place-items:center;width:24px;height:24px;margin:2px 0 0;cursor:pointer}.bulk-select-checkbox input{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}.bulk-select-checkbox span{display:block;width:18px;height:18px;border:1.5px solid #a8adba;border-radius:5px;background:#fff}.bulk-select-checkbox input:checked+span{border-color:#5b67d6;background:#5b67d6;box-shadow:inset 0 0 0 4px #fff}.kanban-card-head>.bulk-select-checkbox{flex:0 0 22px;margin:0}.bulk-action-bar{position:fixed;z-index:120;left:50%;bottom:18px;transform:translateX(-50%);display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:9px 18px;width:min(1120px,calc(100vw - 36px));padding:13px 16px;overflow:visible;border:1px solid #d8dce7;border-radius:16px;background:#202638;color:#fff;box-shadow:0 18px 46px #14182655}.bulk-action-summary,.bulk-action-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.bulk-action-summary{align-items:center}.bulk-action-summary strong{font-size:14px;white-space:nowrap}.bulk-action-bar button{min-height:36px;padding:8px 11px;border:0;border-radius:8px;background:#eef0ff;color:#3541a3;cursor:pointer;font-size:12px;font-weight:700}.bulk-action-bar button:hover{background:#dfe3ff}.bulk-action-bar button:disabled{opacity:.55;cursor:wait}.bulk-action-bar .bulk-danger{background:#ffe8e8;color:#a22e3b}.bulk-action-controls label{display:grid;gap:3px}.bulk-action-controls label span{color:#cbd0dc;font-size:10px}.bulk-action-controls select{min-width:170px;height:36px;margin:0;padding:7px 9px;border:1px solid #4b5368;border-radius:8px;background:#fff;color:#202638;font:inherit;font-size:12px}.bulk-action-bar>p{grid-column:1/-1;min-height:0;margin:0;color:#d8dcea;font-size:11px}.bulk-action-bar>p:empty{display:none}
@media(max-width:760px){.bulk-action-bar{bottom:10px;display:block;width:calc(100vw - 20px);max-height:52vh;padding:12px;overflow:auto}.bulk-action-summary{margin-bottom:9px}.bulk-action-controls{display:grid;grid-template-columns:minmax(0,1fr) auto}.bulk-action-controls label{min-width:0}.bulk-action-controls select{width:100%;min-width:0}.bulk-action-controls .bulk-danger{grid-column:1/-1}.bulk-action-bar>p{margin-top:7px}.client{grid-template-columns:28px minmax(0,1fr)}}
.create-client-dialog .task-error{min-height:20px}
.create-client-dialog button:disabled{cursor:wait;opacity:.6}
.archive-calls-section{margin-top:14px;padding:14px 0 0;border-top:1px solid #e1e4eb;overflow:visible}
.archive-calls-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 6px 8px;color:#202638;font-size:13px}
.archive-calls-heading span{display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:12px;background:#eef0ff;color:#5b67d6;font-size:12px;font-weight:600}
.archive-calls-list{display:grid;gap:4px}
.archive-call-row{display:flex;align-items:flex-start;gap:9px;width:100%;padding:10px;border:0;border-radius:10px;background:transparent;color:#202638;text-align:left;cursor:pointer}
.archive-call-row:hover,.archive-call-row:focus-visible{background:#eef0ff;outline:none}
.archive-call-row-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:9px;background:#f0f2f6;color:#5b67d6}
.archive-call-row-icon .ti-icon{width:18px;height:18px}
.archive-call-row-body{display:grid;min-width:0;gap:2px}
.archive-call-row-body strong{font-size:13px;font-weight:600}
.archive-call-row-body small{overflow:hidden;color:#6d7587;font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.archive-empty{margin:8px 10px}
.archive-call-view{width:min(900px,100%);margin:0 auto}
.archive-call-back{display:inline-flex;align-items:center;gap:7px;margin:0 0 12px;padding:8px 10px;border:0;border-radius:8px;background:#f0f2f6;color:#202638;cursor:pointer;font-weight:600}
.archive-call-back .ti-icon{width:18px;height:18px}
.archive-call-card{padding:22px;border:1px solid #e1e4eb;border-radius:14px;background:#fff;color:#202638}
.archive-call-title{display:flex;align-items:center;gap:12px}
.archive-call-title>span{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#eef0ff;color:#5b67d6}
.archive-call-title>span .ti-icon{width:23px;height:23px}
.archive-call-title small{color:#6d7587;font-size:12px}
.archive-call-title h2{margin:2px 0 0;font-size:21px;font-weight:600}
.archive-call-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:20px 0}
.archive-call-card dl>div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #e1e4eb}
.archive-call-card dt{color:#6d7587;font-size:13px}
.archive-call-card dd{margin:0;text-align:right;font-size:13px;font-weight:500}
.archive-player{display:grid;gap:10px;padding:16px;border-radius:10px;background:#f5f6f8}
.archive-player audio{width:100%}
.client-card-v2{width:min(1480px,100%);margin:0 auto;color:#202638;font-size:14px}
.client-card-v2 button,.client-card-v2 input,.client-card-v2 select,.client-card-v2 textarea{font:inherit}
.client-card-v2 .client-card-header{display:grid;grid-template-columns:auto minmax(220px,1fr) minmax(350px,auto);align-items:center;gap:8px 14px;width:100%;height:auto;min-height:0;padding:12px 16px;border:1px solid #e1e4eb;border-radius:14px;background:#fff;box-shadow:none;color:#202638}
.client-card-v2 .avatar{width:44px;height:44px;border-radius:12px;background:#eef0ff;color:#5b67d6;font-size:18px;font-weight:600}
.client-card-v2 .social-avatar img{width:44px;height:44px;border-radius:12px}
.client-card-v2 .social-avatar small{display:none}
.client-card-v2 .profile-info h2{margin:0;color:#202638;font-size:21px;font-weight:600;line-height:1.2}
.client-card-v2 .profile-info h2:hover{text-decoration-color:#5b67d6}
.client-card-v2 .profile-info p{margin:3px 0 0;color:#6d7587;font-size:13px}
.client-card-v2 .client-tags{min-height:0;margin-top:6px;gap:5px}
.client-card-v2 .client-tag{padding:3px 7px;border:1px solid #e1e4eb;border-radius:6px;font-size:12px;font-weight:500}
.client-card-state{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:8px}
.client-card-v2 .client-stage-control,.client-card-v2 .responsible-control{display:grid;gap:3px;min-width:165px;color:#6d7587;font-size:12px;font-weight:500}
.client-card-v2 .client-stage-control select,.client-card-v2 .responsible-control select{width:100%;min-width:0;height:34px;margin:0;padding:6px 9px;border:1px solid #e1e4eb;border-radius:8px;background:#fff;color:#202638;font-size:13px}
.client-card-v2 .responsible-current,.client-card-v2 .responsible-claim{min-width:145px;padding:7px 10px;border:1px solid #e1e4eb;border-radius:8px;background:#fff;color:#202638}
.client-card-v2 .responsible-current span,.client-card-v2 .responsible-claim span{color:#6d7587;font-size:12px}
.client-card-v2 .responsible-current strong{font-size:13px;font-weight:600}
.client-card-actions{grid-column:3;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.client-card-v2 .primary-button,.client-card-v2 .secondary-button{min-height:34px;margin:0;padding:8px 12px;border:0;border-radius:8px;cursor:pointer;font-size:13px;font-weight:600}
.client-card-v2 .primary-button{background:#5b67d6;color:#fff}
.client-card-v2 .primary-button:hover{background:#4854c5}
.client-card-v2 .secondary-button{background:#f0f2f6;color:#202638}
.client-card-v2 .secondary-button:hover{background:#e5e8ef}
.client-card-status-line{display:none}
.client-daily-layout{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);align-items:start;gap:16px;margin-top:16px}
.client-action-rail{display:grid;gap:12px;max-height:none;padding:0;border:0;background:transparent;overflow:visible}
.client-focus-card,.client-history-panel,.client-deal-data,.client-secondary-panel{padding:16px;border:1px solid #e1e4eb;border-radius:12px;background:#fff;box-shadow:none;overflow:visible}
.client-block-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.client-block-title h3{margin:0;color:#202638;font-size:16px;font-weight:600}
.client-block-title>span:not(.status-pill){display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:13px;background:#f0f2f6;color:#6d7587;font-size:12px;font-weight:600}
.status-pill{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;border-radius:12px;font-size:12px;font-weight:600}
.status-pill.info{background:#eaf3fc;color:#2f6fb3}
.status-pill.danger{background:#fdecee;color:#c53d4d}
.client-next-action{border-left:3px solid #5b67d6}
.client-next-action.is-overdue{border-left-color:#c53d4d}
.client-next-action.empty-action p,.client-next-action>p{margin:8px 0 12px;color:#6d7587;line-height:1.45}
.next-action-title{display:block;margin:2px 0 5px;font-size:15px;font-weight:600}
.client-next-action>time{display:block;color:#6d7587;font-size:13px}
.next-action-buttons{display:flex;gap:7px;margin-top:12px}
.client-card-v2 .task-form{display:grid;gap:9px;margin:0;padding:0;border-radius:0;background:transparent}
.client-card-v2 .task-form label{display:grid;gap:4px;margin:0;color:#6d7587;font-size:12px;font-weight:500}
.client-card-v2 .task-form input,.client-card-v2 .task-form select,.client-card-v2 .task-form textarea,.client-card-v2 .comment-form textarea{width:100%;min-height:36px;margin:0;padding:8px 10px;border:1px solid #e1e4eb;border-radius:8px;background:#fff;color:#202638;font-size:14px;outline:none}
.client-card-v2 .task-form textarea,.client-card-v2 .comment-form textarea{resize:vertical;line-height:1.45}
.client-card-v2 .task-form input:focus,.client-card-v2 .task-form select:focus,.client-card-v2 .task-form textarea:focus,.client-card-v2 .comment-form textarea:focus{border-color:#5b67d6;box-shadow:0 0 0 3px #eef0ff}
.client-card-v2 .task-form-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr);gap:8px}
.client-card-v2 .comment-form{display:grid;gap:9px;margin:0}
.client-card-v2 .task-error:empty{display:none}
.client-history-panel{min-width:0;padding:16px 18px}
.client-history-filters{display:flex;flex-wrap:wrap;gap:5px;margin:-2px 0 14px;padding-bottom:12px;border-bottom:1px solid #e1e4eb;overflow:visible}
.client-history-filters button{flex:0 0 auto;padding:7px 10px;border:0;border-radius:7px;background:transparent;color:#6d7587;cursor:pointer;font-size:12px;font-weight:500}
.client-history-filters button:hover{background:#f0f2f6;color:#202638}
.client-history-filters button.active{background:#eef0ff;color:#4854c5;font-weight:600}
.client-unified-history{position:relative;display:grid;gap:0;overflow:visible}
.client-unified-history:before{content:"";position:absolute;top:13px;bottom:13px;left:13px;width:1px;background:#e1e4eb}
.client-history-entry{position:relative;display:grid;grid-template-columns:27px minmax(0,1fr);gap:12px;padding:0 0 16px}
.client-history-entry:last-child{padding-bottom:0}
.history-marker{position:relative;z-index:1;display:grid;place-items:center;width:27px;height:27px;border:1px solid #e1e4eb;border-radius:50%;background:#fff;color:#6d7587;font-size:11px;font-weight:600}
.history-marker.success{border-color:#b9dfc8;background:#e8f6ee;color:#2f855a}
.history-entry-body{min-width:0;padding-top:1px}
.history-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.history-meta strong{font-size:13px;font-weight:600}
.history-meta time{color:#9aa1af;font-size:12px}
.client-card-v2 .history-entry-body>.contact-entry,.client-card-v2 .history-entry-body>.client-comment,.client-card-v2 .history-entry-body>.task,.client-card-v2 .history-entry-body>.telegram-message,.client-card-v2 .history-entry-body>article{margin:0;padding:12px!important;border:1px solid #e1e4eb;border-radius:10px;background:#fff;box-shadow:none}
.client-card-v2 .history-entry-body>.client-comment{background:#f8f9fb}
.client-card-v2 .history-entry-body>.client-comment>div{display:none}
.client-card-v2 .history-entry-body>.client-comment p{margin:0;font-size:14px;line-height:1.55}
.client-card-v2 .history-entry-body>.task{border-left:3px solid #5b67d6}
.client-card-v2 .history-entry-body>.task.done{border-left-color:#2f855a;background:#f8fcfa;opacity:1}
.client-card-v2 .history-entry-body>.task>div>time{display:block;margin-top:4px}
.client-card-v2 .history-entry-body>.task .task-client{display:none}
.client-card-v2 .history-entry-body>.task .task-actions button{padding:7px 9px;border-radius:7px;background:#f0f2f6;color:#202638;font-size:12px;font-weight:600}
.client-card-v2 .history-entry-body>.task .task-actions button:hover{background:#e5e8ef}
.client-card-v2 .history-entry-body>.telegram-message{max-width:82%}
.client-card-v2 .history-entry-body>.telegram-message.outgoing{margin-left:auto;background:#eef0ff}
.client-card-v2 .history-entry-body>.telegram-message.incoming{background:#f8f9fb}
.client-card-v2 .call-summary{align-items:center}
.client-card-v2 .call-summary h4{margin:0;color:#6d7587;font-size:13px;font-weight:500}
.client-card-v2 .call-history-entry{border-left:3px solid #61a6d6!important}
.client-card-v2 .call-history-entry.call-outgoing{border-left-color:#5b67d6!important}
.client-card-v2 .call-history-entry.call-missed{border-color:#f1c2c2!important;border-left-color:#d64545!important;background:#fffafa!important}
.client-card-v2 .call-history-entry.call-unanswered{border-left-color:#d98b2b!important;background:#fffaf2!important}
.call-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.call-history-head time{white-space:nowrap}
.call-history-title{display:flex;align-items:center;gap:8px;color:#2f6fb3;font-size:14px;font-weight:700}
.call-history-title .ti-icon{width:20px;height:20px}
.call-missed .call-history-title{color:#c93434}
.call-unanswered .call-history-title{color:#ad6917}
.call-route{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 12px;border-radius:9px;background:#f8f9fb}
.call-party{display:flex;align-items:center;gap:8px;min-width:0}
.call-party-icon{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:#eaf3fc;color:#2f6fb3}
.call-party-manager .call-party-icon{background:#eef0ff;color:#4f5ac3}
.call-party-icon .ti-icon{width:18px;height:18px}
.call-party>span:last-child{display:grid;min-width:0;line-height:1.2}
.call-party small{color:#8b93a3;font-size:10px;text-transform:uppercase}
.call-party strong{max-width:220px;overflow:hidden;color:#202638;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.call-party em{color:#6d7587;font-size:12px;font-style:normal;white-space:nowrap}
.call-route-arrow{color:#42a267;font-size:18px;font-weight:800}
.call-duration{margin-left:auto;color:#6d7587;font-size:12px;font-weight:600;white-space:nowrap}
.client-card-v2 .badge{margin:0 8px 0 0;padding:4px 7px;border-radius:6px;background:#eaf3fc;color:#2f6fb3;font-size:12px;font-weight:600;text-transform:none}
.client-card-v2 .history-entry-body audio{width:100%;margin:10px 0 0}
.client-card-v2 .readable-block{margin-top:10px;border-color:#e1e4eb;border-radius:9px;background:#fff}
.client-card-v2 .readable-heading{padding:10px 12px;border-color:#e1e4eb;background:#f8f9fb}
.client-card-v2 .readable-heading h4{font-size:14px;font-weight:600}
.client-card-v2 .assessment-score{background:#eef0ff;color:#4854c5;font-weight:600}
.client-card-v2 .readable-short,.client-card-v2 .readable-full{padding:12px}
.client-card-v2 .speech-row{max-width:92%;margin:7px 0;padding:9px 11px;border-radius:9px;background:#f0f2f6}
.client-card-v2 .speech-row.manager,.client-card-v2 .speech-row.speaker-0{background:#eef0ff}
.client-card-v2 .speech-row.client,.client-card-v2 .speech-row.speaker-1{background:#f0f2f6}
.client-card-v2 .speaker-name,.client-card-v2 .speech-row.client .speaker-name,.client-card-v2 .speech-row.speaker-1 .speaker-name{color:#6d7587;font-size:12px;font-weight:600;text-transform:none}
.client-card-v2 .call-transcript-disclosure{margin-top:10px;border-color:#e1e4eb;border-radius:9px;background:#fff}
.client-card-v2 .call-transcript-disclosure>summary{padding:9px 11px;color:#202638;font-size:13px;font-weight:600}
.client-card-v2 .call-transcript-disclosure>summary small{display:none}
.client-card-v2 .call-assessment-disclosure>summary .assessment-score{margin-left:auto}
.client-card-v2 .history-entry-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.client-card-v2 .history-entry-head time{white-space:nowrap}
.client-card-v2 .history-comment p,.client-card-v2 .history-task p,.client-card-v2 .history-message p,.client-card-v2 .history-lead p{margin:8px 0 0;line-height:1.5;white-space:pre-wrap}
.client-card-v2 .history-task>small{display:block;margin-top:8px;color:#777}
.client-card-v2 .history-file-link{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 8px;align-items:center;color:#343866;text-decoration:none}
.client-card-v2 .history-file-link:hover span{text-decoration:underline}
.client-card-v2 .history-file-link small{grid-column:2;color:#777}
.client-card-v2 .read-more-button{border-color:#e1e4eb;background:#f0f2f6;color:#4854c5;font-weight:600}
.client-deal-data{margin-top:16px}
.client-deal-grid{display:grid;grid-template-columns:minmax(340px,420px) minmax(0,1fr);gap:12px}
.client-card-v2 .client-data-form{box-shadow:none;border:1px solid #e1e4eb}
.client-card-v2 .client-documents-block{border-color:#e1e4eb}
.client-card-v2 .client-documents,.client-card-v2 .client-comments{max-height:none;overflow:visible}
.client-secondary-panel{margin-top:12px;padding:0}
.client-secondary-panel>summary{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;cursor:pointer;font-size:14px;font-weight:600;list-style:none}
.client-secondary-panel>summary::-webkit-details-marker{display:none}
.client-secondary-panel>summary:after{content:"⌄";color:#6d7587}
.client-secondary-panel[open]>summary{border-bottom:1px solid #e1e4eb}
.client-secondary-panel[open]>summary:after{transform:rotate(180deg)}
.client-secondary-panel>.telegram-client-threads,.client-secondary-panel>.site-leads-list{padding:14px}
.client-card-v2 .messenger-panel-hint,.client-card-v2 .client-content-head p,.client-card-v2 .tasks-head p{display:none}
.client-card-v2 .inline-name-input{font-size:21px;font-weight:600;border-color:#5b67d6}
@media(max-width:1180px){
  .client-card-v2 .client-card-header{grid-template-columns:auto minmax(200px,1fr) minmax(330px,auto)}
}
@media(max-width:900px){
  .client-daily-layout{grid-template-columns:1fr}
  .client-action-rail{grid-template-columns:1fr 1fr}
  .client-next-action{grid-column:1/-1}
  .client-card-v2 .client-card-header{grid-template-columns:auto minmax(0,1fr)}
  .client-card-state,.client-card-actions{grid-column:1/-1;justify-content:flex-start}
  .client-deal-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  body>header{height:58px;min-height:58px;padding:7px 10px}
  main,.pipeline-view,.employees-view,.site-leads-queue-view,.statistics-view,.tasks-view,.team-chat-view,.telegram-view,.max-view{height:calc(100dvh - 58px - 64px - env(safe-area-inset-bottom))!important}
  #clientsView>#card{padding:10px 10px 28px}
  .client-card-v2 .client-card-header{gap:10px;padding:12px}
  .client-card-v2 .profile-info h2{font-size:20px}
  .client-card-state{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .client-card-v2 .client-stage-control,.client-card-v2 .responsible-control{min-width:0}
  .client-card-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .client-card-actions button{width:100%}
  .client-action-rail{grid-template-columns:1fr}
  .client-next-action{grid-column:auto}
  .client-history-panel,.client-focus-card{padding:14px}
  .client-history-filters{margin-right:0;padding-right:0}
  .client-card-v2 .history-entry-body>.telegram-message{max-width:96%}
  .client-card-v2 .task-form-row{grid-template-columns:1fr}
  .client-card-v2 .call-summary{display:block}
  .client-card-v2 .call-summary h4{margin-top:7px;text-align:left}
  .call-history-head{align-items:flex-start}
  .call-history-head time{font-size:11px;text-align:right}
  .call-route{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 8px}
  .call-party{grid-column:1}
  .call-route-arrow{grid-column:1;margin-left:13px;line-height:12px;transform:rotate(90deg)}
  .call-duration{grid-column:2;grid-row:1/4;align-self:center;margin:0}
  .call-party strong{max-width:180px}
}

/* Keep every original client-card block while using the v2 visual system. */
.client-card-all-blocks>.profile{display:grid;grid-template-columns:auto minmax(220px,1fr) minmax(430px,auto);align-items:center;gap:12px;width:100%;height:auto;min-height:0;padding:12px 16px;border:1px solid #e1e4eb;border-radius:14px;background:#fff;box-shadow:none}
.client-card-all-blocks>.profile .avatar{width:44px;height:44px;border-radius:12px;background:#eef0ff;color:#5b67d6;font-size:18px;font-weight:600}
.client-card-all-blocks>.profile .social-avatar img{width:44px;height:44px;border-radius:12px}
.client-card-all-blocks>.profile .social-avatar small{display:none}
.client-card-all-blocks .profile-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.client-card-all-blocks .profile-action-button,.client-card-all-blocks .edit-client-button,.client-card-all-blocks .client-content-head button,.client-card-all-blocks .comment-form button,.client-card-all-blocks .task-form button{min-height:34px;margin:0;padding:8px 11px;border:0;border-radius:8px;background:#f0f2f6;color:#202638;cursor:pointer;font-size:13px;font-weight:600}
.client-card-all-blocks .profile-action-button:hover,.client-card-all-blocks .edit-client-button:hover,.client-card-all-blocks .client-content-head button:hover,.client-card-all-blocks .comment-form button:hover{background:#e5e8ef}
.client-card-all-blocks .messenger-button,.client-card-all-blocks .task-form button{background:#5b67d6;color:#fff}
.client-card-all-blocks .messenger-button:hover,.client-card-all-blocks .task-form button:hover{background:#4854c5}
.client-card-all-blocks .client-card-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:14px;padding:5px;border:1px solid #e1e4eb;border-radius:12px;background:#fff}
.client-card-all-blocks .client-card-tabs button{min-height:38px;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:#6d7587;cursor:pointer;font:inherit;font-size:13px;font-weight:600;white-space:nowrap}
.client-card-all-blocks .client-card-tabs button:hover{background:#f4f5f8;color:#202638}
.client-card-all-blocks .client-card-tabs button.active{background:#5b67d6;color:#fff;box-shadow:0 4px 12px #5b67d62a}
.client-card-all-blocks .client-card-tabs button span{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:5px;padding:0 6px;border-radius:10px;background:#eef0ff;color:#4854c5;font-size:10px}
.client-card-all-blocks .client-card-tabs button.active span{background:#ffffff30;color:#fff}
.client-card-all-blocks .client-workspace{display:block;margin-top:12px}
.client-card-all-blocks .client-data-column{max-height:none;gap:12px;overflow:visible}
.client-card-all-blocks .client-data-form{padding:14px;border:1px solid #e1e4eb;border-radius:12px;background:#fff;box-shadow:none}
.client-card-all-blocks .client-data-title h3{font-size:16px;font-weight:600}
.client-card-all-blocks .client-data-form label{color:#6d7587;font-size:12px;font-weight:500}
.client-card-all-blocks .client-data-form input,.client-card-all-blocks .client-data-form select{min-height:35px;border-color:#e1e4eb;background:#fff;color:#202638;font-size:13px}
.client-card-all-blocks .client-data-form input:focus,.client-card-all-blocks .client-data-form select:focus{border-color:#5b67d6;box-shadow:0 0 0 3px #eef0ff;outline:none}
.client-card-all-blocks .profile-save{background:#5b67d6;color:#fff}
.client-card-all-blocks .client-main-column{display:block;min-width:0}
.client-card-all-blocks .client-tab-panel[hidden]{display:none!important}
.client-card-all-blocks .client-tab-panel.active{display:grid;gap:12px}
.client-card-all-blocks .client-content-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;width:100%;max-width:none;align-items:start}
.client-card-all-blocks .client-content-block{height:auto;min-height:0;padding:16px;border:1px solid #e1e4eb;border-radius:12px;background:#fff;overflow:visible}
.client-card-all-blocks .client-content-grid>.client-tasks-block{width:100%;height:auto;max-width:none;margin:0;overflow:visible}
.client-card-all-blocks .tasks-list,.client-card-all-blocks .client-documents,.client-card-all-blocks .client-comments{max-height:none;overflow:visible}
.client-card-all-blocks .task-form{padding:12px;border-radius:9px;background:#f8f9fb}
.client-card-all-blocks .task{border-color:#e1e4eb;background:#fff}
.client-card-all-blocks .task-actions button{background:#f0f2f6;color:#202638}
.client-card-all-blocks .comment-form textarea{border-color:#e1e4eb;background:#fff;color:#202638;font-size:14px}
.client-card-all-blocks .client-comment{background:#f8f9fb}
.client-card-all-blocks .site-leads-block,.client-card-all-blocks .contact-history-block,.client-card-all-blocks .messenger-card-block{width:100%;max-width:none;margin:0;border:1px solid #e1e4eb;border-radius:12px;background:#fff;overflow:visible}
.client-card-all-blocks .messenger-card-tabs button{background:#eef0ff;color:#4854c5}
.client-card-all-blocks .timeline{width:100%;max-width:none}
.client-card-all-blocks .timeline article{border:1px solid #e1e4eb;border-radius:10px;box-shadow:none}
.client-card-all-blocks .client-overview-history{grid-column:1/-1}
.client-card-all-blocks .client-mobile-brief{display:none}
.client-card-all-blocks .timeline-preview{margin-top:14px}
.client-card-all-blocks .timeline-preview article:nth-child(n+5){display:none}
.client-card-all-blocks .client-history-panel{gap:12px}
.client-card-all-blocks .client-history-count{display:grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:14px;background:#eef0ff;color:#4854c5;font-size:11px;font-weight:700}
.client-card-all-blocks .client-deal-panel .client-data-form{width:100%;max-width:920px;margin:0 auto}
.client-card-all-blocks .client-documents-panel .client-documents-block{width:100%;min-height:180px}
.client-card-all-blocks .mobile-client-disclosure{border-color:#e1e4eb;border-radius:12px}
.client-card-all-blocks .mobile-client-disclosure>summary{color:#202638;font-size:14px;font-weight:600}
@media(max-width:1180px){
  .client-card-all-blocks>.profile{grid-template-columns:auto minmax(0,1fr)}
  .client-card-all-blocks .profile-actions{grid-column:1/-1;justify-content:flex-start}
  .client-card-all-blocks .client-workspace{grid-template-columns:1fr}
  .client-card-all-blocks .client-data-column{position:static;max-width:none}
}
@media(max-width:760px){
  .client-card-all-blocks>.profile{padding:12px}
  .client-card-all-blocks .profile-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .client-card-all-blocks .profile-actions>*{min-width:0;width:100%}
  .client-card-all-blocks .client-stage-control,.client-card-all-blocks .responsible-control{min-width:0}
  .client-card-all-blocks .client-card-tabs{position:sticky;top:0;z-index:8;grid-template-columns:repeat(4,minmax(max-content,1fr));gap:3px;margin:10px -2px 0;padding:4px;overflow-x:auto;box-shadow:0 5px 16px #29324a12}
  .client-card-all-blocks .client-card-tabs button{min-height:36px;padding:7px 9px;font-size:11px}
  .client-card-all-blocks .client-card-tabs button span{display:none}
  .client-card-all-blocks .client-workspace{margin-top:10px}
  .client-card-all-blocks .client-mobile-brief{display:block;padding:12px 14px;border:1px solid #dfe3ff;border-radius:11px;background:#f0f2ff;color:#202638}
  .client-card-all-blocks .client-mobile-brief strong{display:block;font-size:12px}
  .client-card-all-blocks .client-mobile-brief p{margin:5px 0 0;color:#687085;font-size:11px;line-height:1.45}
  .client-card-all-blocks .client-content-grid{display:grid;grid-template-columns:1fr;gap:10px}
  .client-card-all-blocks .client-content-grid>.client-tasks-block{height:auto;margin:0;overflow:visible}
  .client-card-all-blocks .client-overview-history{order:-1}
  .client-card-all-blocks .client-overview-history .client-content-head p{display:none}
  .client-card-all-blocks .timeline-preview article:nth-child(n+4){display:none}
  .client-card-all-blocks .client-deal-panel .client-data-form{max-width:none}
  .client-card-all-blocks .client-documents-panel .client-content-head{align-items:center}
}

/* Unified Tabler icon system. Icons are served locally for stable mobile rendering. */
.ti-icon{display:inline-block;width:18px;height:18px;flex:0 0 auto;vertical-align:-.22em;color:inherit;stroke:currentColor}
.ti-icon.inline-icon{width:14px;height:14px;vertical-align:-.2em}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.icon-label-button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px}
.icon-label-button[hidden]{display:none!important}
body>header nav button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
body>header nav button>.ti-icon{width:17px;height:17px;opacity:.9}
body>header nav button.active>.ti-icon{opacity:1}
.statistics-settings-actions .ti-icon{width:17px;height:17px}
.mobile-more-sheet>button>span .ti-icon{width:21px;height:21px}
.team-chat-contact-message-icon .ti-icon{width:11px;height:11px}
.team-chat-attach .ti-icon,.team-chat-send .ti-icon{width:21px;height:21px}
.messenger-choice>span .ti-icon{width:23px;height:23px}
.profile-actions .ti-icon,.client-content-head button .ti-icon{width:16px;height:16px}
.activity-icon .ti-icon{width:18px;height:18px}
.document-icon .ti-icon{width:21px;height:21px}
.statistics-card>span .ti-icon{width:21px;height:21px}
.team-chat-file>span .ti-icon{width:22px;height:22px}
.team-chat-pinned>span,.task-reminder,.telegram-file,.site-lead-title strong{align-items:center}
.team-chat-pinned>span,.task-reminder,.telegram-file,.site-lead-title strong{display:inline-flex;gap:5px}
.calendar-task-done .ti-icon,.calendar-task button .ti-icon{width:13px;height:13px}

@media(max-width:760px){
  body>header nav button::before,body>header nav button::after{content:none!important;display:none!important}
  body>header nav button{display:flex!important;min-height:54px;gap:3px;font-size:0!important}
  body>header nav button>.ti-icon{width:22px;height:22px;color:#555}
  body>header nav button>.nav-label{display:block;max-width:100%;overflow:hidden;color:#68655f;font-size:9px;line-height:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
  body>header nav button.active>.ti-icon,body>header nav button.active>.nav-label{color:#414a91}
  .mobile-more-sheet>button>span{font-size:0}
  .profile-actions .icon-label-button{min-height:40px}
}

/* Statistics decision dashboard. */
.statistics-cards{grid-template-columns:repeat(5,minmax(150px,1fr))}
.statistics-operational-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:14px;margin:0 0 14px}
.statistics-funnel{display:grid;gap:13px;margin-top:18px}
.statistics-funnel-row>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px;font-size:12px}
.statistics-funnel-row>div:first-child span{color:#6d7587;font-weight:700}
.statistics-funnel-track{height:13px;overflow:hidden;border-radius:8px;background:#efede8}
.statistics-funnel-track i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#5b67d6,#9ca5f1)}
.statistics-attention{margin-top:18px}
.statistics-attention-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.statistics-attention-summary>div{min-width:0;padding:12px;border-radius:12px;background:#f7f6f2}
.statistics-attention-summary small,.statistics-attention-summary strong{display:block}
.statistics-attention-summary small{min-height:28px;color:#777;font-size:9px;font-weight:800;text-transform:uppercase}
.statistics-attention-summary strong{margin-top:5px;font-size:20px}
.statistics-attention-summary .danger{background:#fff0f0;color:#9f3030}
.statistics-attention-summary .warning{background:#fff7df;color:#936a10}
.statistics-age-list{display:grid;gap:9px;margin-top:16px}
.statistics-age-list>div{display:grid;grid-template-columns:100px minmax(70px,1fr) 32px;align-items:center;gap:9px;font-size:11px}
.statistics-age-list>div>span{color:#666}
.statistics-age-list>div>div{height:8px;overflow:hidden;border-radius:5px;background:#efede8}
.statistics-age-list i{display:block;height:100%;border-radius:5px;background:#8f98ef}
.statistics-age-list strong{text-align:right}
.statistics-source-table{min-width:850px}
.statistics-source-table td small{margin-left:4px;color:#888;font-size:9px}
.statistics-managers-table{min-width:1180px}
.statistics-loss-reasons{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:8px;margin-top:16px}
.statistics-loss-reasons>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-radius:11px;background:#f7f6f2;font-size:12px}
.statistics-loss-reasons strong{display:grid;place-items:center;min-width:28px;height:28px;border-radius:50%;background:#fff;color:#9f3030}
.metric-danger{color:#a33131;font-weight:800}.metric-warning{color:#936a10;font-weight:800}
@media(max-width:1250px){.statistics-cards{grid-template-columns:repeat(3,1fr)}.statistics-operational-grid{grid-template-columns:1fr}}
@media(max-width:760px){.statistics-cards{grid-template-columns:1fr 1fr}.statistics-operational-grid{grid-template-columns:1fr}.statistics-attention-summary{grid-template-columns:1fr}.statistics-loss-reasons{grid-template-columns:1fr}.statistics-card{min-width:0}.statistics-card small{min-height:24px}.statistics-card strong{white-space:normal}}
@media(max-width:430px){.statistics-cards{grid-template-columns:1fr 1fr}.statistics-card{padding:13px;gap:9px}.statistics-card>span{width:32px;height:32px}.statistics-card strong{font-size:15px}.statistics-age-list>div{grid-template-columns:88px minmax(60px,1fr) 28px}}

/* Header contrast and mobile chat-first layout. */
@media(min-width:761px){
  body>header nav button,body>header nav button>.nav-label,body>header nav button>.ti-icon,body>header .account button,body>header .account button span,body>header .account button .ti-icon{color:#fff!important}
  body>header nav button:not(.active),body>header .account button{opacity:.88}
  body>header nav button:hover,body>header .account button:hover{opacity:1}
}
@media(max-width:760px){
  .team-chat-view{height:var(--mobile-team-chat-height,calc(100dvh - 122px))!important;min-height:0!important;background:#eceae5}
  .team-chat-layout{position:relative!important;grid-template-rows:70px minmax(0,1fr) 48px!important;height:100%!important;min-height:0!important}
  .team-chat-contact-rail{height:70px!important;min-height:70px!important;padding:4px 7px!important;background:#fff}
  .team-chat-contact{width:58px!important;min-width:58px!important;height:61px!important;gap:3px!important}
  .team-chat-contact-avatar{width:42px!important;height:42px!important}
  .team-chat-contact strong{width:55px!important;font-size:8px!important}
  .direct-chat-contacts{gap:4px!important;padding-left:5px!important}
  .team-chat-layout .team-chat-shell{grid-row:2!important;height:auto!important;min-height:0!important;align-self:stretch!important}
  .team-chat-messages{padding:12px 8px 14px!important;overscroll-behavior:contain}
  .team-chat-message{max-width:92%!important;margin:7px 0}
  .team-chat-text{font-size:14px;line-height:1.5}
  .team-chat-composer{position:relative!important;padding:7px 8px!important;background:#fff;box-shadow:0 -5px 18px #24232914}
  .team-chat-compose-row textarea{min-height:42px!important;margin:0!important;font-size:16px}
  .team-chat-attach,.team-chat-emoji-button,.team-chat-send{width:42px!important;height:42px!important}
  .team-workspace-panel,.team-workspace-panel.collapsed{grid-row:3!important;width:auto!important;min-height:48px!important;max-height:48px!important;border-top:1px solid #d8d5ce!important;background:#fff!important;box-shadow:0 -5px 18px #24232912}
  .team-workspace-panel:not(.collapsed){position:absolute!important;z-index:8;right:0;bottom:0;left:0;height:min(64dvh,520px)!important;max-height:min(64dvh,520px)!important;border-radius:18px 18px 0 0;box-shadow:0 -18px 46px #24232938}
  .team-workspace-head,.team-workspace-panel.collapsed .team-workspace-head{min-height:48px!important;height:48px!important;padding:7px 12px!important;align-items:center!important}
  .team-workspace-panel.collapsed .team-workspace-head>div{display:block!important}
  .team-workspace-head h2{font-size:13px}
  .team-workspace-head span{margin-top:1px;font-size:8px}
  .team-workspace-head button,.team-workspace-panel.collapsed .team-workspace-head button{writing-mode:horizontal-tb!important;min-width:88px;padding:7px 10px!important;font-size:9px}
  .team-workspace-body{min-height:0!important;padding:9px 9px calc(12px + env(safe-area-inset-bottom))!important;overflow-y:auto!important}
}

/* Direct handoff from a client card to MAX and VK. */
.messenger-dialog-body{width:min(480px,calc(100vw - 28px));max-height:min(88dvh,760px);overflow:auto}
.vk-choice:hover{border-color:#2787f5}
.vk-choice>span{background:#eaf3ff;color:#2787f5}
.messenger-link-settings{margin-top:12px;border:1px solid #e5e2dc;border-radius:12px;background:#f7f6f2}
.messenger-link-settings summary{padding:11px 13px;color:#515a9b;font-size:12px;font-weight:800;cursor:pointer}
.messenger-link-settings form{display:grid;gap:9px;padding:0 13px 13px}
.messenger-link-settings label{display:grid;gap:4px;color:#666;font-size:10px;font-weight:700}
.messenger-link-settings input{width:100%;margin:0;padding:10px 11px;border:1px solid #dedbd5;border-radius:9px;background:#fff;font:inherit;font-size:12px}
.messenger-link-settings small{color:#777;font-size:9px;line-height:1.4}
.messenger-link-settings .primary-button{justify-self:start;padding:9px 12px}
@media(max-width:760px){
  .messenger-dialog-body{padding:18px 14px}
  .messenger-choice{margin-top:8px;padding:10px}
  .messenger-link-settings{margin-top:10px}
}

/* Mobile content-first layout: the bottom navigation is the only app chrome. */
@media(max-width:760px){
  body>header{height:0!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important}
  body>header>.brand,body>header>h1,body>header>.account{display:none!important}
  main,.pipeline-view,.employees-view,.site-leads-queue-view,.statistics-view,.tasks-view,.team-chat-view,.telegram-view,.max-view{height:calc(100dvh - 64px - env(safe-area-inset-bottom))!important}
  .team-chat-view{height:var(--mobile-team-chat-height,calc(100dvh - 64px - env(safe-area-inset-bottom)))!important}
  .app-toast-region{top:max(8px,env(safe-area-inset-top))}

  #clientsView:not(.client-card-open){display:grid;grid-template-rows:minmax(0,1fr);overflow:hidden}
  #clientsView:not(.client-card-open)>aside{display:block;height:100%;max-height:none;padding:12px 14px 18px;border:0;overflow-y:auto;overscroll-behavior:contain}
  #clientsView:not(.client-card-open) .clients-list-toolbar{position:sticky;top:0;z-index:4;margin:-2px -2px 7px;padding:2px;background:#fff}
  #clientsView:not(.client-card-open) .clients-list-toolbar>#search{padding:10px 12px}
  #clientsView:not(.client-card-open) .clients-list-toolbar button{width:42px;padding:0}
  #clientsView:not(.client-card-open) .clients-list-toolbar button span{display:none}
  #clientsView:not(.client-card-open) .client{gap:2px;padding:9px 10px;border-radius:9px}
  #clientsView:not(.client-card-open) .client strong{font-size:14px;line-height:1.25}
  #clientsView:not(.client-card-open) .client span,#clientsView:not(.client-card-open) .client small{font-size:11px;line-height:1.3}
  #clientsView:not(.client-card-open) .archive-call-row{padding:8px 9px}
  #clientsView.client-card-open>#card{height:100%;overflow-y:auto;overscroll-behavior:contain}
  .archive-call-card{padding:16px}
  .archive-call-card dl{grid-template-columns:1fr}

  .site-leads-queue-section{padding:10px}
  .site-leads-queue{gap:9px}
  .site-queue-card{min-height:0;padding:12px;border-radius:13px}
  .site-queue-card-head{display:flex;gap:8px}
  .site-queue-card-head>div{min-width:0;flex:1}
  .site-queue-new{padding:3px 6px;font-size:9px}
  .site-queue-card-head h3{margin:4px 0 2px;font-size:16px}
  .site-queue-phone,.site-queue-email{margin-top:2px;font-size:12px}
  .site-queue-card-head time{display:block;flex:0 0 auto;margin:2px 0 0;font-size:9px;text-align:right}
  .site-queue-meta{gap:4px;margin-top:8px;padding:8px;border-radius:9px}
  .site-queue-meta>div{grid-template-columns:72px minmax(0,1fr);gap:6px}
  .site-queue-meta span{font-size:10px}.site-queue-meta strong{font-size:11px}
  .site-queue-message{display:-webkit-box;margin:7px 0 0;overflow:hidden;font-size:11px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .site-queue-actions{display:grid;gap:7px;margin-top:0;padding-top:9px}
  .site-queue-actions>a{font-size:10px}
  .site-queue-action-buttons{gap:5px}
  .site-queue-action-buttons button{min-height:34px;padding:7px 8px;font-size:12px}

  .pipeline-section{padding:8px 10px 14px}
  .kanban-board{grid-template-columns:repeat(var(--kanban-columns,6),236px);min-width:max-content;gap:8px;padding-bottom:10px}
  .kanban-column{width:236px;min-height:calc(100dvh - 210px);padding:8px;border-radius:13px}
  .kanban-column-head{margin-bottom:8px}
  .kanban-card{padding:10px;border-radius:11px}
}

/* Chat composer, emoji and 24-hour message editing. */
.team-chat-edit-composer{border-left-color:#d89b3d;background:#fff8e9}
.team-chat-composer.editing .team-chat-attach{pointer-events:none;opacity:.42}

/* Chat delivery, reactions and incremental history (v0.14.0). */
.team-chat-composer[hidden]{display:none!important}
.team-chat-composer:not([hidden]){display:block}
.team-chat-load-older{display:block;margin:2px auto 16px;padding:8px 14px;border:1px solid #d6d2ca;border-radius:18px;background:#fff;color:#515a9b;font-size:11px;font-weight:700;cursor:pointer;box-shadow:0 2px 8px #39372f0c}
.team-chat-load-older:hover{background:#f5f5ff}
.team-chat-bubble-footer{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-height:15px;margin-top:3px}
.team-chat-reaction{display:inline-flex;align-items:center;gap:3px;padding:2px 7px;border:1px solid #ddd9d1;border-radius:11px;background:#f5f3ee;color:#555;font-size:10px;cursor:pointer}
.team-chat-reaction.active{border-color:#aeb5f3;background:#e4e7ff;color:#414a9e}
.team-chat-delivery{color:#8b8b87;font-size:11px;font-weight:800;letter-spacing:-2px;line-height:1}
.team-chat-delivery.read{color:#5867cf}
.team-chat-deleted{padding:2px 0;color:#8a8882;font-size:12px;font-style:italic}
.team-chat-message.deleted .team-chat-bubble{background:#f2f0ec;border-style:dashed;box-shadow:none}
.team-chat-actions .chat-delete-action{color:#b34848}
.team-chat-sender-avatar img,.team-chat-contact-avatar img,.team-chat-avatar img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}

@media(max-width:760px){
  .team-chat-load-older{margin-bottom:11px}
  .team-chat-actions{flex-wrap:wrap}
  .team-chat-bubble-footer{min-height:17px}
}
.team-chat-text{white-space:normal}
@media(max-width:760px){
  .team-chat-layout{grid-template-rows:70px minmax(0,1fr) 54px!important}
  .team-chat-layout .team-chat-shell{min-height:0!important;overflow:hidden!important}
  .team-chat-composer{padding:7px 8px max(7px,env(safe-area-inset-bottom))!important}
  .team-chat-compose-row{min-width:0}
  .team-chat-compose-row textarea{min-width:0;max-height:112px!important;overflow-y:auto}
  .team-workspace-panel,.team-workspace-panel.collapsed{align-self:start!important;margin:0!important}
  .team-workspace-panel:not(.collapsed){bottom:6px!important}
}
.pipeline-mode-switch .pipeline-archive-target{border-style:dashed;transition:background .15s,border-color .15s,color .15s,transform .15s}.pipeline-mode-switch .pipeline-archive-target.refused{border-color:#e3a3a3;color:#963b3b}.pipeline-mode-switch .pipeline-archive-target.non-target{border-color:#d6b27a;color:#805a1d}.pipeline-mode-switch .pipeline-archive-target.archived{border-color:#aeb5c5;color:#4f596f}.pipeline-mode-switch .pipeline-archive-target.archive-drop-over{border-style:solid;transform:translateY(-2px);box-shadow:0 6px 18px #24232920}.pipeline-mode-switch .pipeline-archive-target.refused.archive-drop-over{background:#fae6e6;border-color:#c94d4d}.pipeline-mode-switch .pipeline-archive-target.non-target.archive-drop-over{background:#fff2d8;border-color:#c58b2f}.pipeline-mode-switch .pipeline-archive-target.archived.archive-drop-over{background:#eef0f5;border-color:#727d96}

/* Desktop chat: keep the history scrollable and the composer inside the viewport. */
@media(min-width:761px){
  .team-chat-view{min-height:0;overflow:hidden}
  .team-chat-layout{height:100%;min-height:0;overflow:hidden}
  .team-chat-layout .team-chat-shell{height:100%;min-height:0;overflow:hidden;grid-template-rows:auto auto minmax(0,1fr) auto}
  .team-chat-head{grid-row:1}
  .team-chat-pinned{grid-row:2}
  .team-chat-messages{grid-row:3;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .team-chat-composer{grid-row:4;min-height:0;align-self:stretch}
  .team-workspace-panel{height:100%;min-height:0}
}
.team-chat-phone-link{display:inline-block;padding:0 2px;border-radius:4px;color:#4655ba!important;font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;white-space:nowrap}
.team-chat-phone-link:hover,.team-chat-phone-link:focus-visible{background:#eef0ff;color:#3644aa!important;outline:none}
@media(max-width:760px){.team-chat-phone-link{min-height:28px;padding:2px 4px;line-height:24px}}

.statistics-subtabs{display:inline-flex;gap:4px;margin:0 0 14px;padding:4px;border:1px solid #dedde8;border-radius:13px;background:#ebeaf1}.statistics-subtabs button{min-width:150px;padding:9px 15px;border:0;border-radius:9px;background:transparent;color:#65636e;font-size:12px;font-weight:800}.statistics-subtabs button.active{background:#fff;color:#444e98;box-shadow:0 3px 10px #31302b17}
.finance-panel{margin-top:14px;border-color:#dcdcf0;background:linear-gradient(180deg,#fff 0,#fbfbff 100%)}
.finance-panel-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.finance-start-note{padding:7px 10px;border-radius:999px;background:#eef0ff;color:#515a9b;font-size:10px;font-weight:800;white-space:nowrap}
.finance-cards{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr));gap:10px;margin:18px 0}.finance-card{min-height:84px;padding:14px;border:1px solid #e8e6df;border-radius:14px;background:#fff}.finance-card small,.finance-card strong{display:block}.finance-card small{min-height:25px;color:#777;font-size:10px;font-weight:800;text-transform:uppercase}.finance-card strong{margin-top:8px;font-size:18px}.finance-card.income{border-color:#b9dfc4;background:#f3fbf5}.finance-card.profit{border-color:#83c69a;background:#eaf8ee;color:#21673a}.finance-card.danger{border-color:#e4a6a6;background:#fff0f0;color:#9d3434}.finance-card.expense{border-color:#efd4a6;background:#fffaf0}.finance-card.tax{border-color:#e8c4c4;background:#fff8f8}
.finance-leader{display:flex;align-items:center;gap:13px;margin:2px 0 17px;padding:15px 17px;border:1px solid #e4cf8d;border-radius:15px;background:linear-gradient(135deg,#fff9e9,#fff)}.finance-leader>svg{width:34px;height:34px;color:#b68716}.finance-leader small,.finance-leader strong,.finance-leader span{display:block}.finance-leader small{color:#806a38;font-size:10px;text-transform:uppercase}.finance-leader strong{margin-top:3px;font-size:18px}.finance-leader span{margin-top:2px;color:#777;font-size:11px}
.finance-charts-grid,.finance-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}.finance-charts-grid>section,.finance-summary-grid>section{min-width:0;padding:16px;border:1px solid #e8e6df;border-radius:15px;background:#fff}.finance-charts-grid h4,.finance-summary-grid h4{margin:0 0 14px;font-size:14px}.finance-donut-block{display:flex;align-items:center;gap:20px;min-height:190px}.finance-donut{position:relative;display:grid;place-items:center;flex:0 0 154px;width:154px;height:154px;border-radius:50%}.finance-donut:after{position:absolute;inset:30px;border-radius:50%;background:#fff;content:""}.finance-donut>span{position:relative;z-index:1;text-align:center}.finance-donut strong,.finance-donut small{display:block}.finance-donut strong{font-size:22px}.finance-donut small{color:#777;font-size:10px}.finance-donut-legend{display:grid;gap:8px;min-width:0;flex:1}.finance-donut-legend>div{display:grid;grid-template-columns:9px minmax(80px,1fr) auto;align-items:center;gap:7px;font-size:11px}.finance-donut-legend i{width:9px;height:9px;border-radius:50%}.finance-donut-legend span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.finance-donut-legend strong{font-size:10px;white-space:nowrap}
.finance-compact-table{min-width:560px}.finance-import-box{margin-top:16px;padding:14px 16px;border:1px solid #dfe1f4;border-radius:15px;background:#f8f8ff}.finance-import-box>summary{cursor:pointer;color:#3e4789;font-weight:800}.finance-import-form{display:grid;grid-template-columns:180px 240px minmax(260px,1fr) auto;gap:10px;align-items:end;margin-top:15px}.finance-import-form label{display:grid;gap:5px;color:#666;font-size:10px;font-weight:800}.finance-import-form input,.finance-import-form select{width:100%;height:40px;padding:7px 9px;border:1px solid #d9d7d0;border-radius:9px;background:#fff}.finance-import-actions{display:flex;gap:8px}.finance-import-actions button{height:40px}.finance-import-actions button:last-child{background:#555fa6;color:#fff}.finance-import-actions button:disabled{opacity:.45}.finance-preview-issues{margin:10px 0}.finance-preview-issues p{margin:5px 0;padding:7px 9px;border-radius:8px;font-size:11px}.finance-preview-issues .error{background:#fff0f0;color:#963b3b}.finance-preview-issues .warning{background:#fff7e8;color:#80611c}.finance-preview-table{min-width:860px}
.monthly-expense-box{display:flex;align-items:center;gap:14px;margin-top:15px;padding:13px 15px;border:1px solid #ead6af;border-radius:13px;background:#fffaf0}.monthly-expense-box>div{margin-right:auto}.monthly-expense-box strong,.monthly-expense-box span{display:block}.monthly-expense-box>div span{margin-top:3px;color:#777;font-size:10px}.monthly-expense-box label{display:flex;align-items:center;gap:5px}.monthly-expense-box input{width:150px;height:38px;padding:7px 9px;border:1px solid #d9d7d0;border-radius:9px;text-align:right}.finance-deals-table{min-width:1600px}.finance-deals-table input{width:95px;height:34px;padding:5px 7px;border:1px solid #dad7d0;border-radius:7px}.finance-deals-table td:nth-child(8){display:flex;align-items:center;gap:4px}.finance-deals-table button{padding:7px 9px;font-size:10px}.finance-deals-table td:first-child small{max-width:210px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1250px){.finance-cards{grid-template-columns:repeat(3,1fr)}.finance-import-form{grid-template-columns:1fr 1fr}.finance-file-field{grid-column:1/2}}
@media(max-width:900px){.finance-charts-grid,.finance-summary-grid{grid-template-columns:1fr}.finance-donut-block{align-items:flex-start}.monthly-expense-box{align-items:stretch;flex-direction:column}.monthly-expense-box>div{margin-right:0}}
@media(max-width:600px){.statistics-subtabs{display:grid;width:100%;grid-template-columns:1fr 1fr}.statistics-subtabs button{min-width:0;padding:9px 7px}.finance-panel-head{display:block}.finance-start-note{display:inline-block;margin-top:10px}.finance-cards{grid-template-columns:1fr 1fr}.finance-card strong{font-size:15px}.finance-donut-block{display:block}.finance-donut{margin:0 auto 16px}.finance-import-form{grid-template-columns:1fr}.finance-file-field{grid-column:auto}.finance-import-actions{flex-direction:column}.finance-import-actions button{width:100%}}

/* Compact task calendar and calendar integration inside CRM settings. */
.statistics-settings-content{display:grid;min-width:0;flex:1;gap:9px;justify-items:end}
.statistics-settings-card .google-calendar-panel{width:100%;margin:0;padding:10px 12px}
.calendar-section{display:flex;min-height:0;flex-direction:column;padding:12px 16px 16px;overflow:hidden}
.calendar-toolbar{margin-bottom:10px}
.calendar{min-height:0;flex:1;scroll-padding-left:64px}
.week-corner{left:0;z-index:4}
.week-time{position:sticky;left:0;z-index:2;background:#fff}
.week-time,.week-cell{min-height:0;height:clamp(44px,calc((100dvh - 220px)/10),58px)}
.week-cell .calendar-task-body,.month-tasks .calendar-task-body{display:flex;min-width:0;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:1px;padding:3px 4px;overflow:hidden;color:#2c3051;text-align:left}
.week-cell .calendar-task-body>time,.week-cell .calendar-task-body>.calendar-task-client,.week-cell .calendar-task-body>strong,.month-tasks .calendar-task-body>time,.month-tasks .calendar-task-body>.calendar-task-client,.month-tasks .calendar-task-body>strong{display:block;width:100%;grid-column:auto;grid-row:auto;align-self:flex-start;overflow:hidden;text-align:left}
.week-cell .calendar-task-body>time,.month-tasks .calendar-task-body>time{font-size:9px;font-weight:800;line-height:1.1}
.week-cell .calendar-task-body>.calendar-task-client,.month-tasks .calendar-task-body>.calendar-task-client{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.15}
.week-cell .calendar-task-body>strong,.month-tasks .calendar-task-body>strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;font-size:9px;line-height:1.15}
.week-cell .calendar-task-body:has(.calendar-task-tag)>strong{-webkit-line-clamp:1}
.month-tasks .calendar-task{min-height:0;margin:2px 0;border-radius:6px}
.month-tasks .calendar-task-body{padding:4px 5px}
.month-tasks .calendar-task-tag{display:block;max-width:100%}
.month-tasks .calendar-task-body:not(.has-client)>strong{align-self:flex-start}

@media(max-width:760px){
  .statistics-settings-content{width:100%;justify-items:stretch}
  .statistics-settings-card .google-calendar-panel{display:flex!important;width:100%;align-items:flex-start;flex-direction:column}
  .calendar-section{padding:6px}
  .calendar-toolbar{display:none!important}
  .calendar{scroll-padding-left:42px}
  .week-time,.week-cell{min-height:0;height:clamp(50px,calc((100dvh - 220px)/9),68px)}
}

/* Keep every task readable even when a day has many tasks in one hour. */
.week-grid .week-cell,.week-grid .week-time{height:auto;min-height:58px}
.week-grid .calendar-task-stack{height:auto;grid-template-rows:none;grid-auto-rows:minmax(54px,auto);gap:3px}
.week-grid .calendar-task-stack>.calendar-task{height:auto;min-height:54px}
.week-grid .calendar-task-stack.multiple .calendar-task-body{padding:4px 5px;gap:2px}
.week-grid .calendar-task-stack.multiple .calendar-task-body>time{font-size:9px;line-height:1.2}
.week-grid .calendar-task-stack.multiple .calendar-task-body>.calendar-task-client{font-size:10px;line-height:1.2}
.week-grid .calendar-task-stack.multiple .calendar-task-body>strong{font-size:10px;line-height:1.2;white-space:normal}
.more-tasks{display:block;border:0;border-radius:6px;background:#eef0ff;color:#414a91;text-align:left;cursor:pointer;font:inherit;font-size:11px;padding:6px}
.chat-notifications-button{flex:none;border:0;border-radius:8px;padding:8px;background:#eef0ff;color:#414a91;cursor:pointer}
.chat-notifications-button .ti-icon{width:19px;height:19px}
@media(max-width:760px){.calendar-toolbar{display:grid!important;gap:8px}.calendar-toolbar h2{font-size:14px}.calendar-toolbar .calendar-actions{gap:6px}.calendar-toolbar .completed-filter{font-size:11px}.calendar-toolbar button{padding:7px 9px;font-size:11px}}

/* Client workbench: compact UCRM-inspired card without the client directory. */
#clientsView.client-card-open{grid-template-columns:minmax(0,1fr)!important}
#clientsView.client-card-open>.clients-sidebar{display:none!important}
#clientsView.client-card-open>#card{padding:10px 12px 22px;background:#f4f6f9}
.client-card-workbench{width:100%;max-width:1800px;margin:0 auto;color:#202638;font-size:12px}
.client-workbench-grid{display:grid;grid-template-columns:minmax(315px,365px) minmax(500px,1fr) minmax(270px,315px);gap:10px;align-items:start}
.client-summary-rail,.client-contact-workspace,.client-messenger-workspace,.client-next-action,.client-quick-messengers,.client-profile-accordion{border:1px solid #e2e6ed;border-radius:11px;background:#fff;box-shadow:0 1px 4px #24304a0a}
.client-summary-rail{padding:13px}
.client-identity{display:grid;grid-template-columns:42px minmax(0,1fr) 28px;gap:9px;align-items:center}
.client-identity .avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#ebeaff;color:#5662d5;font-size:17px;font-weight:800}
.client-identity .social-avatar img{width:42px;height:42px;border-radius:11px;object-fit:cover}
.client-identity .social-avatar small{display:none}
.client-identity h2{max-width:100%;margin:0;overflow:hidden;font-size:16px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.client-identity p{margin:3px 0 0;color:#697285;font-size:12px}
.client-identity>button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:7px;background:#f1f3f7;color:#596276;cursor:pointer}
.client-summary-rail>.client-tags{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0 12px;padding-bottom:11px;border-bottom:1px solid #edf0f4}
.client-fact-list{display:grid;gap:0;margin:0}
.client-fact-list>div{display:grid;grid-template-columns:minmax(92px,42%) minmax(0,1fr);gap:7px;padding:7px 0;border-bottom:1px solid #f0f2f5}
.client-fact-list>div.wide{grid-template-columns:1fr}
.client-fact-list dt{display:flex;align-items:center;gap:5px;color:#737c8d;font-size:11px}
.client-fact-list dt .ti-icon{width:13px;height:13px}
.client-fact-list dd{min-width:0;margin:0;overflow-wrap:anywhere;color:#202638;font-size:11px;font-weight:600;line-height:1.35}
.client-fact-list>[data-profile-target]{cursor:pointer;border-radius:6px}.client-fact-list>[data-profile-target]:hover{margin-inline:-5px;padding-inline:5px;background:#f4f6ff}.client-fact-list>[data-profile-target]:hover dd{color:#4654c5}
.client-quick-profile{grid-template-columns:1fr 1fr;gap:7px 8px}
.client-fact-edit{display:grid;align-content:start;gap:4px;min-width:0;margin:0;padding:0;color:#737c8d;font-size:10px;font-weight:700}
.client-fact-edit.wide,.quick-profile-actions{grid-column:1/-1}
.client-fact-edit>span{display:flex;align-items:center;gap:5px;min-height:15px}.client-fact-edit>span .ti-icon{width:13px;height:13px}
.client-fact-edit input,.client-fact-edit select,.client-fact-edit textarea{width:100%;min-width:0;min-height:34px;margin:0;padding:7px 8px;border:1px solid #dfe3ea;border-radius:7px;background:#fff;color:#202638;font:inherit;font-size:11px;font-weight:600;line-height:1.3}
.client-fact-edit textarea{min-height:58px;resize:vertical}.client-fact-edit input:focus,.client-fact-edit select:focus,.client-fact-edit textarea:focus{border-color:#6572df;box-shadow:0 0 0 3px #eef0ff;outline:0}
.client-fact-edit select.category-A{background:#fff4f4;color:#a93636}.client-fact-edit select.category-B{background:#fff8eb;color:#95600f}.client-fact-edit select.category-C{background:#f1f6ff;color:#3869a8}.client-fact-edit select.category-D{background:#f4f5f7;color:#616a79}
.quick-profile-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:1px}.quick-profile-actions span{min-height:15px;color:#687184;font-size:10px}.quick-profile-actions span.saved{color:#297447}.quick-profile-actions span.error{color:#b43b3b}.quick-profile-actions button{min-height:32px;padding:0 11px;border:0;border-radius:7px;background:#5b67d6;color:#fff;cursor:pointer;font-size:10px;font-weight:800}.quick-profile-actions button:disabled{cursor:wait;opacity:.65}
.client-last-comment{margin-top:10px;padding:8px 9px;border:1px solid #e7eaf0;border-radius:8px;background:#f8f9fb}.client-last-comment>span{display:flex;align-items:center;gap:5px;color:#687184;font-size:10px;font-weight:700}.client-last-comment .ti-icon{width:13px;height:13px}.client-last-comment p{margin:5px 0 0;color:#30394c;font-size:11px;line-height:1.35;white-space:pre-wrap}
.client-category{display:inline-block;padding:3px 7px;border-radius:999px;background:#f0f2f6;color:#697285;font-size:10px}
.client-category.category-A{background:#fde6e6;color:#b43b3b}.client-category.category-B{background:#fff0d8;color:#a2660d}.client-category.category-C{background:#e8f1ff;color:#3869a8}.client-category.category-D{background:#eef0f3;color:#697285}
.client-milestones{margin-top:13px}
.compact-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.compact-section-head h3,.compact-section-head h4{margin:0;font-size:13px}.compact-section-head small{display:block;margin-top:2px;color:#8a92a1;font-size:10px}
.client-milestone-list{display:grid;gap:5px;margin-top:8px}
.client-milestone{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:center;width:100%;min-height:40px;padding:8px 9px;border:1px solid #e8ebf0;border-radius:8px;background:#fafbfc;color:#4f5869;cursor:pointer;text-align:left}
.client-milestone>span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#eceff4;color:#7b8391}.client-milestone>span .ti-icon{width:13px;height:13px}
.client-milestone b{font-size:11px;font-weight:600}.client-milestone small,.client-milestone time{color:#9aa1af;font-size:9px;white-space:nowrap}
.client-milestone.completed{border-color:#c7e7d1;background:#f3fbf6;color:#297447}.client-milestone.completed>span{background:#35a861;color:#fff}
.client-milestone-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-top:7px}.client-milestone-form input{min-width:0;height:32px;padding:6px 8px;border:1px solid #dfe3ea;border-radius:7px;font:inherit;font-size:10px}.client-milestone-form button{display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 9px;border:1px solid #d9def5;border-radius:7px;background:#eef0ff;color:#4d59c4;font-size:10px;font-weight:700;cursor:pointer}.client-milestone-form button .ti-icon{width:13px;height:13px}.client-milestone-form .task-error{grid-column:1/-1;margin:0}
.client-contact-column{display:flex;min-width:0;flex-direction:column}
.client-primary-actions{display:flex;gap:6px;align-items:center;min-height:39px;margin-bottom:8px;overflow-x:auto;scrollbar-width:thin}
.client-primary-actions>button,.client-primary-actions .action-select,.client-primary-actions .responsible-control,.client-color-compact{flex:0 0 auto}
.client-primary-actions>button{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 11px;border:1px solid #e0e4eb;border-radius:8px;background:#fff;color:#374054;cursor:pointer;font-size:11px;font-weight:700;white-space:nowrap}
.client-primary-actions>button:hover{border-color:#bec5d2;background:#f8f9fb}
.client-primary-actions .client-stage-control,.client-primary-actions .responsible-control{display:flex;align-items:center;gap:5px;min-width:0;color:#687184;font-size:11px}
.client-primary-actions .client-stage-control>.ti-icon{width:15px;height:15px}
.client-primary-actions select{height:36px;max-width:175px;margin:0;padding:6px 24px 6px 8px;border:1px solid #e0e4eb;border-radius:8px;background-color:#fff;color:#30394c;font-size:11px;font-weight:600}
.client-primary-actions .responsible-control>span{display:none}
.client-color-compact{display:flex;align-items:center;gap:5px;height:36px;padding:0 6px 0 8px;border:1px solid #e0e4eb;border-radius:8px;background:#fff;color:#596276;font-size:11px;font-weight:700;white-space:nowrap}.client-color-compact>.ti-icon{width:15px;height:15px}.client-color-compact select{width:92px;max-width:92px;height:30px!important;padding:4px 22px 4px 6px!important;border:0!important;background-color:#f6f7fa!important;color:#30394c!important}
.client-contact-workspace,.client-messenger-workspace{display:flex;min-height:0;flex-direction:column;padding:13px}
.client-messenger-workspace[hidden]{display:none}
.client-contact-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:1px 2px 10px;border-bottom:1px solid #edf0f4}
.client-contact-toolbar h3{margin:0;font-size:15px}.client-contact-toolbar p{margin:3px 0 0;color:#818999;font-size:10px}
.client-history-count{display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:13px;background:#eef0ff;color:#4b58c4;font-size:10px;font-weight:800}
.client-workspace-timeline{min-height:190px;max-height:min(52dvh,560px);padding:7px 2px 3px;overflow-y:auto;overscroll-behavior:contain}
.client-card-v3 .client-history-entry{grid-template-columns:23px minmax(0,1fr);gap:8px;padding-bottom:7px}.client-card-v3 .history-marker{width:23px;height:23px;font-size:9px}.client-card-v3 .client-unified-history:before{left:11px}.client-card-v3 .history-meta{margin-bottom:4px}.client-card-v3 .history-meta strong{font-size:11px}.client-card-v3 .history-meta time{font-size:10px}
.client-card-v3 .timeline article{margin:0 0 5px;border:1px solid #e4e8ef;border-radius:8px;box-shadow:none}
.client-card-v3 .contact-entry{padding:7px}.client-card-v3 .call-history-head{margin-bottom:5px}.client-card-v3 .call-history-title{font-size:11px}.client-card-v3 .call-history-title .ti-icon{width:16px;height:16px}.client-card-v3 .call-route{gap:7px;padding:5px 7px}.client-card-v3 .call-party-icon{width:27px;height:27px;flex-basis:27px}.client-card-v3 .call-party-icon .ti-icon{width:15px;height:15px}.client-card-v3 .call-party strong{font-size:11px}.client-card-v3 .call-party em,.client-card-v3 .call-duration{font-size:10px}.client-card-v3 .history-entry-body>.contact-entry,.client-card-v3 .history-entry-body>article{padding:7px!important}.client-card-v3 .history-entry-head{margin-bottom:5px}.client-card-v3 .history-comment p,.client-card-v3 .history-task p,.client-card-v3 .history-message p,.client-card-v3 .history-lead p{margin-top:4px;line-height:1.35}
.client-history-composer{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:7px;align-items:end;margin-top:8px;padding-top:9px;border-top:1px solid #d8dde6}
.history-comment-label{grid-column:1/-1;color:#202638;font-size:12px;font-weight:800}
.client-history-composer textarea{min-height:42px;max-height:110px;resize:vertical;padding:10px 11px;border:1.5px solid #687184;border-radius:8px;background:#fff;color:#111827;font:inherit;font-weight:600;line-height:1.4}
.client-history-composer>button{height:36px;padding:0 12px;border:0;border-radius:8px;background:#5b67d6;color:#fff;cursor:pointer;font-size:11px;font-weight:700}
.client-history-composer>button:first-child{display:grid;place-items:center;padding:0;background:#eef0f4;color:#596276}
.client-history-composer .task-error{grid-column:2/4}
.client-messenger-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.client-messenger-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;height:36px;border:1px solid #dfe3ea;border-radius:8px;background:#f7f8fa;color:#596276;font-weight:700;cursor:pointer}.client-messenger-tabs button.active{border-color:#7884e5;background:#eef0ff;color:#4654c5}.client-messenger-tabs button .ti-icon{width:16px;height:16px}.messenger-history-back,.messenger-panel-tools button{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:#4d59c4;font-size:10px;font-weight:700;cursor:pointer}.messenger-history-back .ti-icon{width:14px;height:14px}.client-messenger-panel{min-height:260px}.client-messenger-panel[hidden]{display:none}.client-messenger-panel .telegram-client-threads{display:grid;gap:8px}.client-messenger-panel .crm-telegram-thread{margin:0}.client-messenger-panel .telegram-thread{max-height:430px}.messenger-panel-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.client-max-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end;margin-top:8px;padding-top:8px;border-top:1px solid #e2e6ed}.client-max-compose[hidden]{display:none}.client-max-compose textarea{min-height:42px;padding:9px 10px;border:1px solid #687184;border-radius:8px;font:inherit}.client-max-compose button{height:38px;padding:0 12px;border:0;border-radius:8px;background:#5b67d6;color:#fff;font-weight:700}.client-max-compose .task-error{grid-column:1/-1;margin:0}.client-messenger-panel>.messenger-readonly-hint{margin-top:8px}
.client-action-rail{display:grid;gap:8px;min-width:0}
.client-next-action,.client-quick-messengers{padding:12px}
.compact-task-form{display:grid;gap:7px;margin-top:8px;padding:10px;border-radius:9px;background:#f7f8fa}
.compact-task-form label,.client-profile-accordion label{display:grid;gap:3px;color:#687184;font-size:10px;font-weight:700}
.compact-task-form input,.compact-task-form select,.compact-task-form textarea,.client-profile-accordion input,.client-profile-accordion select,.client-profile-accordion textarea{width:100%;min-height:32px;margin:0;padding:6px 8px;border:1px solid #dfe3ea;border-radius:7px;background:#fff;color:#202638;font:inherit;font-size:11px}
.compact-task-form .task-form-row{display:grid;grid-template-columns:1.35fr .8fr;gap:6px}.compact-task-form>button{min-height:34px;margin:0;border:0;border-radius:7px;background:#5b67d6;color:#fff;font-size:11px;font-weight:700}
.nearest-task{margin-top:10px;padding-top:9px;border-top:1px solid #edf0f4}.nearest-task .compact-section-head button{border:0;background:transparent;color:#5361cd;font-size:10px;cursor:pointer}.nearest-task .task{margin:7px 0 0;padding:8px;border-radius:8px}.nearest-task .task-actions{margin-top:6px}
.client-quick-messengers h3{margin:0 0 8px;font-size:13px}.client-quick-messengers>div{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.client-quick-messengers button{display:flex;min-width:0;height:32px;align-items:center;justify-content:center;gap:4px;padding:0 5px;border:0;border-radius:7px;background:#eef0ff;color:#4d59c4;cursor:pointer;font-size:9px;font-weight:700}.client-quick-messengers button .ti-icon{width:14px;height:14px}.client-quick-messengers button:nth-child(1){background:#dff2ff;color:#1686c5}.client-quick-messengers button:nth-child(2){background:#eee8ff;color:#6b43c2}.client-quick-messengers button:nth-child(3){background:#e7efff;color:#2c63ac}
.client-profile-accordion{display:grid;gap:0;padding:5px}
.client-rail-section{border-bottom:1px solid #edf0f4}.client-rail-section:last-of-type{border-bottom:0}
.client-rail-section>summary{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:6px;align-items:center;min-height:39px;padding:6px 7px;cursor:pointer;list-style:none;color:#242c3d;font-size:12px;font-weight:700}.client-rail-section>summary::-webkit-details-marker{display:none}.client-rail-section>summary .ti-icon{width:15px;height:15px;color:#687184}.client-rail-section>summary small{max-width:105px;overflow:hidden;color:#9098a6;font-size:9px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.client-rail-section-body{display:grid;gap:7px;padding:5px 7px 10px}.client-profile-accordion .client-profile-pair,.client-profile-accordion .money-row,.client-profile-accordion .object-row{display:grid;grid-template-columns:1fr 1fr;gap:6px}.client-profile-accordion .profile-save{min-height:34px;margin:7px;border:0;border-radius:7px;background:#5b67d6;color:#fff;font-size:11px;font-weight:700}.client-profile-accordion>#profileError{margin:0 7px}
.client-rail-documents .client-content-block{padding:0;border:0;box-shadow:none}.client-rail-documents .client-content-head h3,.client-rail-documents .client-content-head p{display:none}.client-rail-documents .client-content-head{justify-content:flex-end}.client-rail-documents .client-content-head button{min-height:30px;padding:6px 9px;font-size:10px}.client-rail-documents .client-document{padding:7px;font-size:10px}.client-rail-documents .client-document small{font-size:9px}

@media(max-width:1180px){
  .client-workbench-grid{grid-template-columns:minmax(285px,330px) minmax(460px,1fr)}
  .client-action-rail{grid-column:1/-1;grid-template-columns:1fr 1fr}.client-profile-accordion{grid-column:1/-1;grid-template-columns:repeat(3,1fr);align-items:start}.client-profile-accordion>.profile-save,.client-profile-accordion>#profileError{grid-column:1/-1}.client-profile-accordion .client-rail-section{border-right:1px solid #edf0f4;border-bottom:0}
}
@media(min-width:761px){
  .client-contact-column{position:sticky;top:0;align-self:start;height:calc(100dvh - 108px)}
  .client-contact-workspace,.client-messenger-workspace{flex:1;height:auto;min-height:0}
  .client-workspace-timeline{flex:1;min-height:0;max-height:none}
}
@media(max-width:760px){
  #clientsView.client-card-open>#card{padding:7px 7px 22px}
  .client-card-workbench{font-size:11px}.client-workbench-grid{display:flex;flex-direction:column;gap:7px}.client-summary-rail,.client-contact-column,.client-action-rail{width:100%}
  .client-summary-rail{padding:10px}.client-fact-list{grid-template-columns:1fr 1fr;column-gap:10px}.client-fact-list>div,.client-fact-list>div.wide{grid-template-columns:1fr;padding:5px 0}.client-fact-list>div.wide,.client-fact-edit.wide,.quick-profile-actions{grid-column:1/-1}.client-summary-rail>.client-tags{margin:8px 0;padding-bottom:8px}
  .client-milestone-list{grid-template-columns:1fr 1fr}.client-milestone{grid-template-columns:18px minmax(0,1fr)}.client-milestone small,.client-milestone time{grid-column:2}
  .client-contact-column{order:2}.client-action-rail{order:3;grid-template-columns:1fr}.client-next-action{order:1}.client-quick-messengers{order:2}.client-profile-accordion{order:3;grid-template-columns:1fr}.client-primary-actions{position:sticky;top:0;z-index:7;margin:0 0 7px;padding:5px;border:1px solid #e2e6ed;border-radius:9px;background:#fff;box-shadow:0 4px 12px #26304a14}.client-primary-actions>button{height:34px;padding:0 9px}.client-primary-actions select{height:34px;max-width:150px}
  .client-contact-workspace,.client-messenger-workspace{min-height:0;padding:10px}.client-contact-toolbar p{display:none}.client-workspace-timeline{max-height:58dvh}.client-history-composer{grid-template-columns:34px minmax(0,1fr) 70px}.client-history-composer>button{padding:0 7px}
  .client-profile-accordion .client-rail-section{border-right:0;border-bottom:1px solid #edf0f4}.client-profile-accordion .client-profile-pair,.client-profile-accordion .money-row,.client-profile-accordion .object-row{grid-template-columns:1fr 1fr}
}
.site-queue-card.notification-target{
  outline:3px solid #4f63e9;
  outline-offset:3px;
  box-shadow:0 0 0 7px rgba(79,99,233,.16),0 18px 42px rgba(31,42,83,.18);
}

/* Single left editor and contrasting side panels. */
.client-card-workbench .client-summary-rail,.client-card-workbench .client-action-rail{background:#e9edf2;border:1px solid #cdd5df;border-radius:11px}
.client-card-workbench .client-action-rail{padding:8px}
.client-card-workbench .client-action-rail>section{background:#f0f3f7;border-color:#cdd5df}
.client-card-workbench .client-identity h2{font-size:21px;line-height:1.25;font-weight:750;color:#172238;white-space:normal;overflow-wrap:anywhere}
.client-card-workbench .client-identity p{font-size:16px;line-height:1.4;font-weight:700;color:#273952;overflow-wrap:anywhere}
.client-summary-rail .profile-tags-empty{padding:5px 9px;border:1px dashed #78869b;border-radius:6px;background:#f8fafc;color:#334763;cursor:pointer;font:inherit}
.client-summary-rail .profile-tags-empty:hover{background:#fff;border-color:#4f5fc5}
.client-summary-rail .client-profile-accordion{display:grid;grid-template-columns:minmax(0,1fr);padding:0;background:transparent;border:0;box-shadow:none}
.client-summary-rail .client-profile-accordion .client-rail-section{min-width:0;border-right:0;border-bottom:1px solid #cdd5df}
.client-summary-rail .client-rail-section-body{padding:7px 0 10px}
.client-summary-rail .client-profile-accordion .profile-save{margin:7px 0}
.client-summary-rail .client-rail-section>summary{padding:10px 0}
.client-summary-rail .client-rail-section>summary small{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* History composition and readable activity hierarchy. */
.client-card-workbench .client-workbench-grid{column-gap:18px}
.client-card-workbench .client-contact-workspace{width:100%;max-width:none;margin:0}
.client-card-workbench .client-history-composer{grid-template-columns:minmax(0,1fr) 36px auto;align-items:center;margin:0;padding:12px 0;border-top:0;border-bottom:1px solid #edf0f4}
.client-card-workbench .client-history-composer textarea{grid-column:1;min-width:0;width:100%;font-size:14px}
.client-card-workbench .client-history-composer #historyAttachButton{display:grid;place-items:center;grid-column:2;padding:0;background:#eef0f4;color:#596276}
.client-card-workbench .client-history-composer .history-send-button{grid-column:3;min-width:85px}
.client-card-workbench .client-history-composer .task-error{grid-column:1/-1;margin:0}
.client-card-workbench .client-history-composer .task-error:empty{display:none}
.client-card-workbench .history-entry-head{gap:8px;margin-bottom:5px}
.client-card-workbench .history-entry-head .badge{padding:0;background:none;color:#737e8d;font-size:10px;font-weight:400;border:0;border-radius:0}
.client-card-workbench .history-entry-head time,.client-card-workbench .contact-entry>small,.client-card-workbench .history-comment>strong,.client-card-workbench .history-message>strong{color:#737e8d;font-size:11px;font-weight:400}
.client-card-workbench .history-comment>p,.client-card-workbench .history-message>p{font-size:15px;line-height:1.5;font-weight:600;color:#202c40;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.client-card-workbench .history-task>strong{font-size:14px;color:#202c40}
@media(max-width:760px){.client-card-workbench .client-history-composer{gap:5px;grid-template-columns:minmax(0,1fr) 32px auto}.client-card-workbench .client-history-composer .history-send-button{min-width:70px;padding:0 6px}}

.client-card-workbench .client-history-composer textarea,.client-card-workbench .client-history-composer #historyAttachButton,.client-card-workbench .client-history-composer .history-send-button{grid-row:1}
.client-card-workbench .client-workspace-timeline{max-width:none}
/* Documents grow with their contents, not the old fixed-height panel. */
.client-card-workbench .client-rail-documents{padding:8px 0 14px}
.client-card-workbench .client-rail-documents .client-documents-block{height:auto;min-height:0;padding:0;background:transparent;overflow:visible}
.client-card-workbench .client-rail-documents .client-content-head{justify-content:flex-start;margin:0}
.client-card-workbench .client-rail-documents .client-content-head>div{display:none}
.client-card-workbench .client-rail-documents .client-documents{height:auto;min-height:0;max-height:none;margin:12px 0 0;overflow:visible}
.client-card-workbench .client-rail-documents .client-documents:empty,.client-card-workbench .client-rail-documents .task-error:empty{display:none}
.client-history-composer{position:relative}.client-history-composer.file-drop-active{border-color:#5b67d6!important;background:#f0f2ff!important;box-shadow:inset 0 0 0 2px #5b67d6}.client-history-composer.file-drop-active::after{content:'Отпустите файлы, чтобы прикрепить';position:absolute;inset:4px;display:grid;place-items:center;border:2px dashed #5b67d6;border-radius:9px;background:#f7f8fff2;color:#3f478e;font-size:13px;font-weight:800;z-index:3;pointer-events:none}.history-attachment-status{grid-column:1/-1;min-height:0;color:#526078;font-size:11px}.history-attachment-status:empty{display:none}
.client-card-workbench .client-action-rail .client-milestones{margin:0;padding:12px;border:1px solid #cdd5df;border-radius:11px;order:3}
.client-card-workbench .history-comment .history-entry-head{display:flex;justify-content:flex-start;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.client-card-workbench .history-comment-author{color:#737e8d;font-size:11px;font-weight:400}
.client-card-workbench .history-comment>p{margin:4px 0}
.calls-journal-view{display:block;height:calc(100dvh - 64px);overflow:auto}
.calls-journal-section{max-width:1400px;margin:auto;padding:20px}
.calls-journal-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px}
.calls-journal-filters label{display:grid;gap:6px;font-size:12px}
.calls-journal-filters input,.calls-journal-filters select{margin:0;min-height:40px;padding:8px 12px;border:1px solid #d5dce5;border-radius:8px;background:white}
.calls-journal-filters button,#callsJournalMore{border:0;border-radius:8px;padding:11px 16px;background:#5b67d6;color:white;cursor:pointer}
.calls-journal-rows{display:grid;gap:8px;margin-bottom:16px}
.calls-journal-row{display:grid;grid-template-columns:minmax(150px,2fr) minmax(110px,1fr) minmax(180px,1fr) minmax(80px,1fr);gap:14px;padding:15px;background:#fff;border:1px solid #e0e5ec;border-radius:10px}
.calls-journal-row a,.calls-journal-row>div{display:grid;gap:5px;align-content:start}
.calls-journal-row a{color:#273952;text-decoration:none}.calls-journal-row a:hover strong{text-decoration:underline}
.calls-journal-row small,.calls-journal-row time,.calls-journal-row a span{font-size:12px;color:#737e8d}
.call-outcome{font-size:13px;font-weight:600}.call-outcome.missed,.call-outcome.rejected{color:#a63838}.call-outcome.attempted{color:#986317}
@media(max-width:760px){body>header nav #callsTab{display:none!important}.calls-journal-section{padding:12px 10px 90px}.calls-journal-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.calls-journal-filters label{flex:1;min-width:130px}.calls-journal-filters input,.calls-journal-filters select{width:100%;min-width:0}.calls-journal-row a{overflow-wrap:anywhere}}
/* Compact chat, grouped image messages and clipboard attachment previews. */
.team-chat-head{min-height:60px;padding:8px 14px}
.team-chat-messages{padding:14px 20px}
.team-chat-message{margin:6px 0}
.team-chat-composer{padding:6px 10px 7px}
.team-chat-compose-row{gap:7px}
.team-chat-attach,.team-chat-emoji-button,.team-chat-send{width:36px;height:36px}
.team-chat-compose-row textarea{min-height:36px;padding:7px 12px}
.team-chat-files{margin-bottom:5px}
.team-chat-files span{display:flex;align-items:center;gap:5px;max-width:330px;padding:4px 7px}
.team-chat-files span b{overflow:hidden;text-overflow:ellipsis;font-weight:700}
.team-chat-files span button{display:grid;place-items:center;width:20px;height:20px;flex:0 0 auto;padding:0;border:0;border-radius:50%;background:#ddd9d1;color:#555;font-size:15px;line-height:1;cursor:pointer}
.team-chat-attachments.grouped{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px;gap:4px}
.team-chat-image-card{position:relative;min-width:0;overflow:hidden;border-radius:10px;background:#ddd}
.team-chat-image{max-width:none;border-radius:0}
.team-chat-attachments.grouped .team-chat-image img{height:190px;max-height:none}
.team-chat-image-download{position:absolute;right:6px;bottom:6px;display:flex;align-items:center;gap:4px;min-height:30px;padding:5px 8px;border-radius:9px;background:#242329d9;color:#fff;text-decoration:none;font-size:10px;font-weight:800;box-shadow:0 2px 8px #0004}
.team-chat-image-download .ti-icon{width:15px;height:15px}
.team-chat-file{grid-column:1/-1}
.team-chat-bubble-footer:empty{display:none}

@media(max-width:760px){
  .team-chat-layout{grid-template-rows:56px minmax(0,1fr)!important}
  .team-chat-contact-rail{height:56px!important;min-height:56px!important;padding:2px 6px!important}
  .team-chat-contact{width:53px!important;min-width:53px!important;height:52px!important;gap:1px!important}
  .team-chat-contact-avatar{width:34px!important;height:34px!important}
  .team-chat-contact strong{width:51px!important;font-size:7px!important;line-height:9px}
  .team-chat-contact i{min-width:17px;height:17px;padding:0 4px;font-size:8px}
  .team-chat-layout .team-chat-shell{grid-row:2!important}
  .team-chat-messages{padding:5px 6px 6px!important}
  .team-chat-message{max-width:96%!important;margin:3px 0;gap:5px}
  .team-chat-sender-avatar{width:25px;height:25px;font-size:8px}
  .team-chat-bubble{min-width:112px;padding:5px 7px 3px;border-radius:11px 11px 11px 3px}
  .team-chat-message.own .team-chat-bubble{border-radius:11px 11px 3px 11px}
  .team-chat-meta{gap:5px;margin-bottom:2px}
  .team-chat-meta strong,.team-chat-author{font-size:9px!important}
  .team-chat-meta time{font-size:7px}
  .team-chat-text{font-size:12px;line-height:1.28}
  .team-chat-quote{margin-bottom:4px;padding:4px 6px}
  .team-chat-attachments{gap:3px;margin-top:4px}
  .team-chat-attachments.grouped{max-width:min(78vw,420px)}
  .team-chat-attachments.grouped .team-chat-image img{height:34vw;max-height:155px}
  .team-chat-image-download span{display:none}
  .team-chat-image-download{min-width:30px;justify-content:center;padding:5px}
  .team-chat-bubble-footer{min-height:0;margin-top:1px}
  .team-chat-delivery{font-size:9px}
  .team-chat-reaction{padding:1px 5px;font-size:8px}
  .team-chat-actions{min-height:0;margin-top:1px;gap:2px}
  .team-chat-actions button{padding:1px 3px;font-size:8px;line-height:12px}
  .team-chat-composer{padding:3px 5px max(3px,env(safe-area-inset-bottom))!important}
  .team-chat-compose-row{gap:4px}
  .team-chat-attach,.team-chat-emoji-button,.team-chat-send{width:34px!important;height:34px!important}
  .team-chat-compose-row textarea{min-height:34px!important;padding:6px 9px;font-size:14px}
  .team-chat-composer{min-width:0;max-width:100%;overflow:hidden}
  .team-chat-files{width:100%;min-width:0;max-width:100%;height:34px;max-height:34px;margin-bottom:3px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;flex-wrap:nowrap}
  .team-chat-files span{height:30px;max-width:min(68vw,280px);padding:3px 6px;flex:0 0 auto}
  .team-chat-files span b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .team-chat-files span small{flex:0 0 auto;white-space:nowrap}
  .team-chat-compose-row{position:relative;z-index:2;min-width:0;max-width:100%;flex:0 0 auto;background:#fff}
  .team-workspace-panel,.team-workspace-panel.collapsed{display:none!important}
  .team-workspace-panel.mobile-open{position:fixed!important;z-index:4250;right:8px!important;bottom:calc(68px + env(safe-area-inset-bottom))!important;left:8px!important;display:flex!important;width:auto!important;height:min(72dvh,600px)!important;min-height:280px!important;max-height:min(72dvh,600px)!important;align-self:auto!important;overflow:hidden!important;border:1px solid #d8d5ce!important;border-radius:18px!important;background:#fff!important;box-shadow:0 18px 55px #24232955!important}
  .team-workspace-panel.mobile-open .team-workspace-head{min-height:52px!important;height:52px!important;padding:8px 12px!important}
  .team-workspace-panel.mobile-open .team-workspace-body{display:block;min-height:0;overflow-y:auto}
}

/* Desktop client card: use the available viewport for messenger history. */
@media(min-width:761px){
  .client-messenger-workspace{height:100%;overflow:hidden}
  .client-messenger-panel:not([hidden]){display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}
  .client-messenger-panel .telegram-client-threads{display:flex;min-height:0;flex:1;flex-direction:column;overflow-y:auto}
  .client-messenger-panel .crm-telegram-thread{display:flex;height:100%;min-height:100%;flex-direction:column;padding:0;overflow:hidden}
  .client-messenger-panel .crm-telegram-thread>header{height:38px;min-height:38px;padding:5px 8px;gap:8px;flex:0 0 auto}
  .client-messenger-panel .telegram-thread{min-height:0;max-height:none;flex:1;overflow-y:auto}
  .telegram-compose-form{display:grid;height:40px;min-height:40px;max-height:40px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;margin-top:5px;padding-top:5px;border-top:1px solid #e2e6ed}
  .telegram-compose-form textarea{height:34px;min-height:34px;max-height:72px;margin:0;padding:6px 9px;resize:none;border:1px solid #687184;border-radius:8px;font:inherit;line-height:1.35}
  .telegram-compose-form>div{display:flex;align-items:center;gap:5px;min-width:0}
  .telegram-compose-form>div>button{height:34px;padding:0 9px;border:0;border-radius:8px;background:#5b67d6;color:#fff;font-size:10px;font-weight:700;cursor:pointer}
  .telegram-compose-form .telegram-attach-button{width:34px;padding:0;background:#eef0f4;color:#596276}
  .telegram-compose-form .telegram-attach-button span{display:none}
  .telegram-compose-form .telegram-selected-file,.telegram-compose-form .task-error{max-width:160px;margin:0;overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
  .client-max-compose{margin-top:5px;padding-top:5px}
  .client-max-compose textarea{height:34px;min-height:34px;max-height:72px;padding:6px 9px;resize:none;line-height:1.35}
  .client-max-compose button{height:34px}
}

/* One-line metadata for compact client history cards. */
.client-card-workbench .history-entry-head{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:nowrap;min-width:0}
.client-card-workbench .history-entry-head time{margin-left:auto;flex:0 0 auto;white-space:nowrap}
.client-card-workbench .history-entry-head .history-actor{min-width:0;max-width:38%;overflow:hidden;color:#737e8d;font-size:11px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}

/* Mobile navigation and calendar controls remain available at every breakpoint. */
#objectsTab{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px;color:inherit;text-decoration:none}
.team-chat-day-separator{display:flex;justify-content:center;margin:10px 0 6px;clear:both}
.team-chat-day-separator time{padding:3px 10px;border-radius:10px;background:#dce1ed;color:#536079;font-size:10px;font-weight:600;line-height:1.3}
.team-chat-meta .team-chat-delivery{flex:0 0 auto;margin:0;white-space:nowrap;letter-spacing:-2px;font-size:10px}
.team-chat-meta>strong,.team-chat-meta>.team-chat-author{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-chat-emoji-picker{position:fixed;z-index:5000;bottom:auto;left:auto;display:flex;grid-template-columns:none;flex-direction:column;gap:7px;width:min(360px,calc(100vw - 16px));max-height:310px;padding:8px;overflow:hidden}
.team-chat-emoji-tabs{display:flex;flex:0 0 auto;gap:4px;overflow-x:auto;scrollbar-width:thin}
.team-chat-emoji-tabs button{width:auto;height:30px;padding:4px 8px;flex:0 0 auto;font-size:11px;white-space:nowrap}
.team-chat-emoji-tabs button[aria-selected="true"]{background:#e2e4ff;color:#414a91}
.team-chat-emoji-grid{display:grid;min-height:0;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;overflow-y:auto;overscroll-behavior:contain}
.team-chat-emoji-grid button{width:100%;height:34px;font-size:22px}
@media(max-width:760px){
  body>header nav{grid-template-columns:repeat(8,minmax(0,1fr))!important}
  body>header nav #objectsTab,body>header nav #callsTab{display:flex!important;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 1px;background:transparent!important;color:#68655f;overflow:hidden}
  body>header nav #objectsTab{order:7}
  body>header nav #callsTab{order:6}
  body>header nav #moreTab{order:8}
  body>header nav #objectsTab .ti-icon{display:block;width:22px;height:22px}
  body>header nav #objectsTab .nav-label{display:block;font-size:8px;line-height:12px}
  body>header nav button::after{font-size:8px}
  #tasksView .calendar-toolbar{display:grid!important;grid-template-columns:1fr;gap:5px}
  #tasksView .calendar-toolbar>h2{display:block!important;grid-row:1;text-align:left;font-size:12px}
  #tasksView .calendar-toolbar .calendar-navigation{display:flex!important;grid-row:2;gap:5px}
  #tasksView .calendar-toolbar .calendar-actions{display:flex;grid-row:3;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:5px}
  #tasksView .calendar-toolbar .view-switch{display:flex!important;gap:3px}
  #tasksView .calendar-toolbar .view-switch button{min-width:60px}
  #tasksView .calendar-toolbar .primary-button{margin-left:auto;white-space:nowrap}
  #tasksView #newTaskButton{width:auto!important;min-width:0;flex:0 0 auto;padding:7px 9px;font-size:10px}
  .month-grid.mobile-month-grid{grid-template-columns:repeat(7,minmax(0,1fr));min-width:0;width:100%}
  .mobile-month-grid .month-weekday{position:static;padding:7px 2px;font-size:10px}
  .mobile-month-grid .month-day{min-width:0;min-height:0;height:44px;padding:0}
  .mobile-month-day-button{display:flex;align-items:center;justify-content:center;gap:3px;width:100%;height:100%;padding:2px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
  .mobile-month-day-button time{font-size:12px;font-weight:600}
  .mobile-month-task-count{display:grid;place-items:center;min-width:14px;height:16px;padding:0 3px;border-radius:6px;background:#dfe3ff;color:#414a91;font-size:8px;font-weight:700}
  .mobile-month-grid .month-day.selected{background:#e6e9ff;box-shadow:inset 0 0 0 2px #8f98ef}
  .mobile-month-agenda{padding:9px 7px}
  .mobile-month-agenda>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
  .mobile-month-agenda h3{margin:0;font-size:13px}
  .mobile-month-agenda>header button{padding:5px 8px;border:0;border-radius:6px;background:#e6e9ff;color:#414a91;font-size:11px;cursor:pointer}
  .mobile-month-agenda .calendar-task{min-height:46px;margin:4px 0}
  .mobile-month-agenda .calendar-task-body{min-width:0;flex:1;padding:5px 7px;display:flex;flex-direction:column;gap:2px}
  .mobile-month-agenda .calendar-task-body time{font-size:10px}
  .mobile-month-agenda .calendar-task-body strong{font-size:12px;white-space:normal}
  .mobile-month-agenda .calendar-task-client{font-size:11px}
  .team-chat-day-separator{margin:7px 0 4px}
  .team-chat-day-separator time{padding:2px 8px;font-size:9px}
  .team-chat-meta .team-chat-delivery{font-size:9px}
  .team-chat-emoji-picker{left:auto;grid-template-columns:none}
}

/* Voice commands: feedback stays inside the active client card. */
.client-primary-actions>button.client-voice-button{width:36px;min-width:36px;padding:0;justify-content:center;background:#fff0f1;border-color:#f2bac1;color:#b4233b;white-space:nowrap}
.client-primary-actions>button.client-voice-button:hover{background:#ffe0e4;border-color:#d85c6e}
.client-voice-button svg{flex:none}
.client-voice-button span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.client-primary-actions>button.client-voice-button.recording{background:#b4233b;color:#fff;border-color:#b4233b;box-shadow:0 0 0 3px #b4233b26}
.client-primary-actions>button.client-voice-button:focus-visible{outline:2px solid #b4233b;outline-offset:2px}
.client-voice-status{margin:0 0 6px;padding:7px 10px;background:#eef0ff;border-radius:8px;font-size:12px;line-height:1.35;overflow-wrap:anywhere;white-space:pre-line;max-height:240px;overflow-y:auto}
.voice-assistant-toast{position:fixed;right:12px;bottom:76px;z-index:6000;max-width:min(440px,calc(100vw - 24px));padding:12px 16px;border-radius:10px;background:#25314a;color:#fff;font-size:13px;box-shadow:0 6px 30px #0003}
@media(max-width:760px){.client-primary-actions>button.client-voice-button{width:34px;min-width:34px;min-height:34px}.client-voice-status{font-size:11px;padding:6px 8px}}

/* 0.15.29: targeted compact layouts; do not change desktop or other views. */
button.team-chat-image{display:block;width:100%;border:0;padding:0;background:transparent;text-align:left;cursor:zoom-in;color:inherit;font:inherit}
.chat-image-viewer{width:min(1100px,calc(100vw - 20px));max-width:none;max-height:calc(100dvh - 20px);padding:0;border:0;border-radius:12px;background:#161b26;color:#fff;overflow:hidden}
.chat-image-viewer::backdrop{background:#101522d9}
.chat-image-viewer-toolbar{display:flex;align-items:center;gap:12px;padding:10px 12px;font-size:13px}
.chat-image-viewer-toolbar strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-image-viewer-toolbar a{display:flex;align-items:center;gap:5px;color:#fff;text-decoration:none;white-space:nowrap}
.chat-image-viewer-toolbar button{width:36px;height:36px;border:0;border-radius:7px;background:#343d50;color:#fff;font-size:26px;cursor:pointer}
.chat-image-viewer-content{display:flex;align-items:center;justify-content:center;overflow:auto;max-height:calc(100dvh - 88px);padding:0 8px 10px}
.chat-image-viewer-content img{display:block;max-width:100%;max-height:calc(100dvh - 100px);width:auto;height:auto;object-fit:contain;touch-action:pinch-zoom}
.kanban-deal-commission{display:flex;align-items:baseline;justify-content:space-between;gap:5px;padding:7px 0;margin-top:5px;border-top:1px solid #d5dfd8;color:#256642;font-size:11px}
.kanban-deal-commission strong{font-size:13px;white-space:nowrap}
.calls-journal-recording-button{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:6px 10px;border:0;border-radius:8px;background:#e5e9ff;color:#414a91;cursor:pointer;font:inherit;font-size:12px}
.calls-journal-player{grid-column:1/-1;min-width:0}
.calls-journal-player audio{display:block;width:min(100%,600px);height:38px;margin-top:5px}
.calls-journal-player p{margin:4px 0;color:#a12d36;font-size:11px}
@media(max-width:760px){
  #pipelineView .pipeline-section{padding:6px 10px 10px}
  #pipelineView .kanban-board{width:100%;min-width:0!important;grid-template-columns:repeat(var(--kanban-columns,6),calc((100% - 8px)/2));gap:8px}
  #pipelineView .kanban-column{width:auto;padding:5px;border-radius:10px;min-width:0}
  #pipelineView .kanban-column-head{gap:3px;margin-bottom:6px;padding:0}
  #pipelineView .kanban-column-head h3{font-size:11px;line-height:1.2}
  #pipelineView .kanban-column-head span{min-width:20px;height:20px;font-size:10px;padding:0 4px}
  #pipelineView .kanban-card{padding:6px;border-radius:8px;font-size:11px}
  #pipelineView .kanban-card-head{gap:3px;align-items:flex-start}
  #pipelineView .kanban-client-link{font-size:11px;line-height:1.25;overflow-wrap:anywhere}
  #pipelineView .kanban-avatar{width:20px;height:20px;min-width:20px;font-size:11px}
  #pipelineView .call-count{min-width:17px;height:17px;padding:0 3px;font-size:9px}
  #pipelineView .kanban-phone{font-size:11px;margin-top:4px;max-width:100%}
  #pipelineView .kanban-responsible,#pipelineView .kanban-complex{font-size:10px;line-height:1.25;overflow-wrap:anywhere}
  #pipelineView .kanban-tags .client-tag{font-size:8px;padding:2px 4px}
  #pipelineView .kanban-last-call{gap:3px;margin-top:6px;padding-top:6px}
  #pipelineView .kanban-last-call time{font-size:9px}
  #pipelineView .call-direction{padding:3px 4px;font-size:8px}
  #pipelineView .kanban-deal-commission{flex-wrap:wrap;padding:5px 0;font-size:10px}
  #pipelineView .kanban-deal-commission strong{font-size:11px}
  #tasksView #overduePanel,#tasksView .calendar-toolbar .calendar-navigation,#tasksView #newTaskButton{display:none!important}
  #tasksView .calendar-toolbar .calendar-actions{grid-row:2}
  #tasksView .calendar-section{padding:3px 6px 0;min-height:0;flex:1}
  #tasksView .calendar-toolbar{gap:3px;margin-bottom:3px}
  #tasksView .calendar{flex:1;min-height:0}
  .chat-image-viewer-toolbar{gap:8px;font-size:11px;padding:7px 8px}
}

/* One UI font across CRM pages, forms and native controls. */
:root{--crm-ui-font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body,button,input,select,textarea{font-family:var(--crm-ui-font)}
