:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--theme-text-primary, #243247);background:var(--theme-surface-soft, #f5f7fa);font-synthesis:none;font-size:14px;--navy: #17233b;--muted: var(--theme-text-secondary, #8792a3);--line: var(--theme-accent-border, #e8edf2);--green: #198b71;--mint: #73ddc0;--shadow: 0 8px 30px #1b294508}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button{color:inherit}input,select,textarea{outline:none;border:1px solid var(--theme-border, #dde4ec);border-radius:8px;background:var(--theme-surface, #fff);color:var(--theme-text-primary, #243247);padding:10px 12px;max-width:100%;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:#4aad98;box-shadow:0 0 0 3px #4aad9814}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px;flex-shrink:0}textarea{resize:vertical;line-height:1.55}input::placeholder,textarea::placeholder{color:var(--theme-text-secondary, #a1aab8)}h1,h2,h3,p{margin:0}h1{font-size:29px;letter-spacing:-1px;line-height:1.3;font-weight:650}h2{font-size:17px;font-weight:650;letter-spacing:-.3px}h3{font-size:15px;font-weight:600}small{color:var(--muted);font-size:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border-radius:8px;border:1px solid var(--theme-border, #dfe5ed);background:var(--theme-surface, white);color:var(--theme-text-primary, #3f4c60);font-size:13px;font-weight:550;white-space:nowrap;transition:background .15s}.button:hover{background:var(--theme-surface-soft, #f4f7f9)}.button.primary{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 2px 3px #198b7112}.button.primary:hover{background:#11735e}.button.danger{color:var(--theme-warm-text, #bd5050);border-color:var(--theme-border, #eccdcd)}.button.small{padding:7px 12px;font-size:12px}.icon-button{display:inline-flex;align-items:center;justify-content:center;position:relative;background:none;border:0;border-radius:7px;width:33px;height:33px;color:var(--theme-text-secondary, #8090a1);flex-shrink:0}.icon-button:hover{background:var(--theme-selected, #edf2f6);color:var(--theme-text-primary, #344a60)}.text-button{border:0;background:none;display:inline-flex;align-items:center;gap:6px;color:var(--theme-text-secondary, #688193);font-size:12px;font-weight:550;padding:4px}.text-button:hover{color:var(--green)}.button-row{display:flex;gap:10px;align-items:center;margin-top:24px}.muted{color:var(--muted)}.success-text{color:var(--theme-accent-text, #198b71)}.danger-text{color:var(--theme-warm-text, #cb5757)!important}.full-width{grid-column:1/-1}.padded{padding:24px}.align-right{text-align:right}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--theme-text-secondary, #98a3b5)}.mint-dot{color:var(--theme-accent-text, #4cb99a)}.tag,.pill{display:inline-flex;align-items:center;padding:4px 8px;background:var(--theme-surface-soft, #f0f3f8);border-radius:5px;color:var(--theme-text-secondary, #64758c);font-size:11px;white-space:nowrap;margin:2px 3px 2px 0}.tag.success{background:var(--theme-selected, #e7f7f0);color:var(--theme-accent-text, #258261)}.tag.warning{background:var(--theme-surface-soft, #fff3db);color:var(--theme-warm-text, #b48027)}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#b5bdc8}.dot.live{background:#33b88e}.avatar{display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:13px;background:var(--theme-selected, #e8eff4);color:var(--theme-blue-text, #608093);font-size:13px;font-weight:650;flex-shrink:0}.avatar.small{width:30px;height:30px;border-radius:9px;font-size:10px}.channel-icon{display:inline-flex;width:21px;height:21px;align-items:center;justify-content:center;border-radius:6px;font-size:10px;color:#fff;background:#5c7daa;font-weight:700;flex-shrink:0}.channel-icon.telegram,.floating-channel.telegram{background:#49a8d4}.channel-icon.whatsapp{background:#48b482}.channel-icon.max{background:#8670dd}.channel-icon.vk,.floating-channel.vk{background:#5689de}.channel-icon.email,.floating-channel.email{background:#d89a63}.app-shell{display:flex;min-height:100dvh}.sidebar{width:242px;position:fixed;top:0;bottom:0;left:0;z-index:40;display:flex;flex-direction:column;background:var(--navy);color:var(--theme-text-secondary, #9ba9be);padding:29px 18px 17px;height:100dvh;overflow:hidden}.wordmark{display:flex;gap:0;align-items:center;font-size:18px;font-weight:650;letter-spacing:-.6px;color:#f8fbff;white-space:nowrap}.wordmark img{width:32px;height:32px;margin-right:8px}.wordmark>span{font-weight:400;color:var(--theme-text-secondary, #c4cfdd)}.workspace{display:flex;gap:10px;align-items:center;border:1px solid #ffffff12;border-radius:9px;padding:11px 10px;margin:32px 0 30px;background:#ffffff04}.workspace-avatar{display:inline-flex;align-items:center;justify-content:center;height:30px;width:30px;border-radius:7px;background:#31415b;color:var(--theme-text-secondary, #c7d5e5);font-size:12px}.workspace>div{flex:1}.workspace strong{display:block;font-size:11px;color:#e3e9f1;font-weight:550}.workspace small{display:block;font-size:10px;color:var(--theme-text-secondary, #788ba5);margin-top:4px}.nav-label{font-size:9px;font-weight:650;letter-spacing:1.4px;color:var(--theme-text-secondary, #637590);padding:0 12px;display:block;margin-bottom:12px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav button{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 13px;border:0;border-radius:8px;background:none;color:var(--theme-text-secondary, #9dadc3);font-size:12px;text-align:left;font-weight:500}.sidebar nav button:hover{background:#ffffff07;color:#d6e4f0}.sidebar nav button.active{background:#2c3d52;color:var(--theme-accent-text, #9cebd7)}.sidebar nav button svg{color:var(--theme-blue-text, #7b8ea9);stroke-width:1.6}.sidebar nav button.active svg{color:var(--theme-accent-text, #7ed6bc)}.nav-count{background:#7adac0;color:var(--theme-text-primary, #1c4239);border-radius:5px;font-size:10px;font-weight:750;padding:2px 6px;margin-left:auto}.nav-subcount{margin-left:auto;color:var(--theme-text-secondary, #6f819b);font-size:11px}.sidebar-bottom{margin-top:auto;padding-top:24px}.connection-state{font-size:10px;display:flex;align-items:center;gap:7px;color:var(--theme-blue-text, #71859f);margin:22px 9px 17px}.connection-state i{width:5px;height:5px;border-radius:50%;background:#d69a61}.connection-state i.live{background:#56bda0}.sidebar-user{border:0;border-top:1px solid #ffffff0c;padding:17px 7px 0;display:flex;align-items:center;gap:10px;background:none;width:100%;text-align:left}.sidebar-user .avatar{background:#43546a;color:var(--theme-text-secondary, #d5e2ed)}.sidebar-user>span:nth-child(2){flex:1;min-width:0}.sidebar-user strong{display:block;font-size:11px;color:var(--theme-text-secondary, #d3dce9);font-weight:500;overflow:hidden;text-overflow:ellipsis}.sidebar-user small{display:block;font-size:10px;color:var(--theme-text-secondary, #7487a1);margin-top:3px}.main{margin-left:242px;min-width:0;flex:1}.topbar{height:73px;border-bottom:1px solid var(--line);background:var(--theme-surface, #fff);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:30}.breadcrumb{display:flex;gap:13px;align-items:center;font-size:11px;color:var(--theme-text-secondary, #9da6b4)}.breadcrumb strong{color:var(--theme-text-secondary, #536178);font-weight:500}.slash{color:var(--theme-text-secondary, #d3d9e2)}.topbar-right{display:flex;gap:15px;align-items:center}.today{font-size:11px;color:var(--theme-text-secondary, #8c98a7);margin-right:10px}.topbar-right>.avatar{background:var(--theme-surface-raised, #e7efe9);color:var(--theme-text-secondary, #70917a)}.mobile-toggle{display:none}.page{padding:34px;max-width:1800px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading .eyebrow{margin-bottom:10px}.page-heading p{color:var(--theme-text-secondary, #8b96a7);font-size:12px;margin-top:8px}.heading-count{font-size:13px;letter-spacing:0;color:var(--theme-text-secondary, #94a0ae);font-weight:500;margin-left:12px;background:var(--theme-selected, #eaf0f4);border-radius:7px;padding:4px 8px;vertical-align:middle}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:25px}.stat-card{text-align:left;background:var(--theme-surface, white);border:1px solid var(--line);border-radius:11px;padding:21px 22px;box-shadow:var(--shadow)}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--theme-text-secondary, #8693a5);font-size:11px}.stat-top svg{color:var(--theme-text-secondary, #91a5b4);stroke-width:1.5}.stat-card>strong{display:block;font-size:33px;font-weight:600;letter-spacing:-1px;color:var(--theme-text-primary, #2c3b50);margin:15px 0 16px}.stat-bottom{display:flex;align-items:center;justify-content:space-between}.stat-bottom small{font-size:10px}.stat-bottom svg{color:var(--theme-text-secondary, #a0aebb)}.dashboard-grid{display:grid;grid-template-columns:1.16fr 1fr;gap:24px}.panel{background:var(--theme-surface, #fff);border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 24px;border-bottom:1px solid var(--theme-border, #eff2f6);gap:16px}.panel-heading h2{font-size:15px}.panel-heading p{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.5}.dashboard-dialog{display:flex;width:100%;gap:13px;align-items:center;text-align:left;border:0;border-bottom:1px solid var(--theme-border, #f0f3f6);background:var(--theme-surface, white);padding:17px 24px}.dashboard-dialog:hover{background:var(--theme-surface, #fafcfd)}.dashboard-dialog>div:nth-child(2){flex:1;min-width:0}.dashboard-dialog strong{font-size:12px;font-weight:600}.dashboard-dialog p{font-size:11px;color:var(--theme-text-secondary, #929eae);margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-dialog .align-right{display:flex;flex-direction:column;align-items:flex-end;gap:9px}.dashboard-dialog small{font-size:10px}.conversation-avatar{position:relative;flex-shrink:0}.conversation-avatar>.channel-icon{position:absolute;right:-3px;bottom:-3px;border:2px solid var(--theme-border, white);width:20px;height:20px;border-radius:6px;font-size:8px}.unread-count{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;border-radius:5px;background:#209879;color:#fff;font-size:9px;font-weight:650}.dashboard-task{display:flex;align-items:center;gap:12px;padding:21px 24px;width:100%;background:none;border:0;border-bottom:1px solid var(--theme-border, #f0f3f6);text-align:left}.task-check{color:var(--theme-text-secondary, #a4b4c0)}.task-check.high{color:var(--theme-warm-text, #ca8e76)}.dashboard-task>div{flex:1}.dashboard-task strong{font-size:12px;font-weight:500}.dashboard-task small{display:block;font-size:10px;margin-top:6px}.pipeline-summary{grid-column:1/-1}.pipeline-bars{display:grid;grid-template-columns:repeat(5,1fr);gap:22px;padding:24px}.pipeline-bars>div>div:first-child{display:flex;justify-content:space-between;margin-bottom:12px;font-size:11px}.pipeline-bars span{display:flex;gap:7px;align-items:center;color:var(--theme-text-secondary, #758295)}.pipeline-bars i{display:inline-block;width:6px;height:6px;border-radius:50%}.pipeline-bars strong{font-size:12px;font-weight:600}.bar{height:5px;background:var(--theme-surface-soft, #f0f3f6);border-radius:9px;overflow:hidden;margin-bottom:10px}.bar>span{height:100%;border-radius:9px}.pipeline-bars small{font-size:10px;color:var(--theme-text-secondary, #9fa9b6)}.workspace-tip{display:flex;gap:14px;align-items:center;border:1px dashed var(--theme-border, #d5e0e8);border-radius:10px;padding:20px 22px;margin-top:26px}.tip-icon{display:flex;align-items:center;justify-content:center;color:var(--theme-text-secondary, #729a91);background:var(--theme-selected, #e9f2ef);width:40px;height:40px;border-radius:10px}.workspace-tip>div{flex:1}.workspace-tip strong{font-size:12px;font-weight:550}.workspace-tip p{font-size:11px;color:var(--theme-text-secondary, #95a0ae);margin-top:5px}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 24px;min-height:200px}.empty-icon{height:57px;width:57px;background:var(--theme-surface-soft, #f1f5f7);display:flex;align-items:center;justify-content:center;color:var(--theme-text-secondary, #9eafba);border-radius:17px;margin-bottom:19px}.empty h3{font-size:14px;font-weight:550;color:var(--theme-text-secondary, #5d6d82)}.empty p{font-size:12px;color:var(--theme-text-secondary, #96a1b0);line-height:1.8;max-width:290px;margin:9px 0 15px}.search-field{display:flex;gap:9px;align-items:center;background:var(--theme-surface, #fff);border:1px solid var(--theme-accent-border, #e2e8ef);border-radius:8px;padding:0 11px;color:var(--theme-text-secondary, #9faab8)}.search-field input{width:100%;border:0;background:none;font-size:12px;box-shadow:none;padding:11px 0}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.list-toolbar>.search-field{width:320px}.tabs,.inbox-filters{display:flex;gap:4px}.tabs button,.inbox-filters button{padding:8px 12px;border:0;background:none;border-radius:6px;font-size:11px;color:var(--theme-text-secondary, #94a0af)}.tabs button.active,.inbox-filters button.active{background:var(--theme-selected, #e7f2ee);color:var(--theme-accent-text, #25856d);font-weight:600}.table-panel{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{font-weight:500;color:var(--theme-text-secondary, #96a2b3);background:var(--theme-surface, #fafbfd);padding:14px 20px;white-space:nowrap;font-size:10px}td{border-bottom:1px solid var(--theme-border, #eff3f6);padding:17px 20px;color:var(--theme-text-secondary, #627184);vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--theme-surface, #fbfcfd)}tr[tabindex],.table-panel tbody tr{cursor:pointer}td strong{font-weight:550;color:var(--theme-text-secondary, #4d5d71)}td small{display:block;margin-top:5px;font-size:10px}.name-cell{display:flex;align-items:center;gap:11px;white-space:nowrap}.cell-stack{display:flex;flex-direction:column}.task-title{display:flex;gap:12px;align-items:center;border:0;background:none;padding:0;color:var(--theme-text-secondary, #4b5e72);text-align:left}.task-title svg{color:var(--theme-text-secondary, #a4b4c4);flex-shrink:0}.status-select{border:0;font-size:11px;padding:6px 9px;background:var(--theme-selected, #edf2f9);color:var(--theme-text-secondary, #73859c)}.status-select.done{background:var(--theme-selected, #e8f5ec);color:var(--theme-accent-text, #589369)}.status-select.doing{background:var(--theme-blue-surface, #eaf0fe);color:var(--theme-blue-text, #647dc3)}.priority{font-size:10px;color:var(--theme-text-secondary, #8c9bad)}.priority.high{color:var(--theme-warm-text, #c5816b)}.priority.low{color:var(--theme-text-secondary, #80a4a1)}.kanban{display:grid;grid-template-columns:repeat(5,minmax(205px,1fr));gap:17px;overflow-x:auto;padding-bottom:30px;min-height:calc(100dvh - 260px)}.kanban-column{background:var(--theme-surface-raised, #eef2f6);border-radius:9px;padding:12px;min-width:0;align-self:start;min-height:300px}.kanban-column>header{padding:4px 2px 15px}.kanban-column>header>div{display:flex;gap:8px;align-items:center}.kanban-column>header strong{font-size:12px;font-weight:600;flex:1}.kanban-column>header i{width:7px;height:7px;border-radius:50%}.kanban-column>header span{font-size:11px;color:var(--theme-text-secondary, #8e9aab)}.kanban-column>header small{display:block;margin:8px 0 0 15px;font-size:10px}.deal-card{background:var(--theme-surface, #fff);border:1px solid var(--theme-accent-border, #e6ebf1);border-radius:8px;padding:16px;margin-bottom:10px;box-shadow:0 2px 3px #17233b03;cursor:pointer}.deal-card:hover{box-shadow:0 3px 10px #17233b09}.deal-company{font-size:10px;color:var(--theme-text-secondary, #98a5b4)}.deal-card h3{font-size:13px;font-weight:550;line-height:1.5;margin:9px 0 16px}.deal-amount{font-size:14px;font-weight:600;color:var(--theme-text-secondary, #4e6277)}.deal-card footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--theme-border, #eff3f6);margin-top:16px;padding-top:11px}.deal-card footer span{font-size:10px;color:var(--theme-text-secondary, #9ba7b6)}.deal-card .avatar{width:24px;height:24px;font-size:8px}.add-card{border:0;background:none;display:flex;align-items:center;justify-content:center;gap:6px;width:100%;font-size:11px;color:var(--theme-text-secondary, #99a6b6);padding:10px}.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px}.calendar-header{padding:22px;display:flex;justify-content:space-between;align-items:center}.calendar-header h2{text-transform:capitalize}.calendar-header>div{display:flex;gap:5px}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:10px;color:var(--theme-text-secondary, #98a5b4);padding:12px 0;background:var(--theme-surface, #fafbfd);border-top:1px solid var(--line)}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-day{height:104px;background:var(--theme-surface, #fff);border:0;border-top:1px solid var(--line);border-right:1px solid var(--line);text-align:left;padding:9px;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;gap:5px;color:var(--theme-text-secondary, #607183);font-size:11px}.calendar-day.outside{color:var(--theme-text-secondary, #c0c8d2);background:var(--theme-surface, #fcfdfe)}.calendar-day.today>span{display:flex;align-items:center;justify-content:center;background:#238e74;color:#fff;width:23px;height:23px;border-radius:50%;margin:-3px}.calendar-day.selected{background:var(--theme-surface-soft, #f1f8f5);box-shadow:inset 0 0 0 1px #95cabb}.calendar-chip{background:var(--theme-surface-soft, #e9edfb);color:var(--theme-blue-text, #7283b4);padding:3px 4px;font-size:9px;border-radius:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:left}.calendar-chip.tasks{background:var(--theme-selected, #edf4e9);color:var(--theme-accent-text, #7f9765)}.calendar-day>small{font-size:9px}.day-agenda>header{padding:25px;border-bottom:1px solid var(--line)}.day-agenda h2{margin-top:10px;font-size:23px}.day-agenda p{font-size:12px;color:var(--theme-text-secondary, #97a4b6);margin-top:7px}.agenda-event{width:100%;display:flex;gap:14px;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:18px}.agenda-event>span{font-size:11px;color:var(--theme-text-secondary, #8e9aab)}.agenda-event strong{font-size:12px;line-height:1.5}.agenda-event small{display:block;font-size:10px;margin-top:5px}.inbox{display:flex;height:calc(100dvh - 73px);background:var(--theme-surface, #fff)}.conversation-pane{width:335px;display:flex;flex-direction:column;border-right:1px solid var(--line);flex-shrink:0}.pane-title{display:flex;justify-content:space-between;align-items:center;padding:24px 20px 20px}.pane-title h1{font-size:21px;letter-spacing:-.6px}.pane-title h1 span{font-size:12px;color:var(--theme-text-secondary, #a7b1be);letter-spacing:0;margin-left:6px;font-weight:500}.conversation-pane>.search-field{margin:0 18px;background:var(--theme-surface-soft, #f7f9fb);border-color:var(--theme-border, #edf1f5)}.conversation-pane>.search-field input{font-size:10px}.inbox-filters{padding:13px 18px 8px}.inbox-filters button{padding:7px 11px;font-size:10px}.channel-filter{font-size:10px;color:var(--theme-text-secondary, #96a2b2);background:none;border:0;margin:0 12px 8px;padding:6px}.conversation-list{flex:1;overflow-y:auto}.conversation{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;background:var(--theme-surface, white);padding:18px;border-left:3px solid transparent;border-bottom:1px solid var(--theme-border, #f4f6f8)}.conversation:hover{background:var(--theme-surface, #fafcfd)}.conversation.selected{background:var(--theme-surface-soft, #eff6f3);border-left-color:#52ad91}.conversation-summary{min-width:0;flex:1}.conversation-summary>div{display:flex;align-items:center;justify-content:space-between;gap:5px}.conversation-summary strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;color:var(--theme-text-secondary, #516174)}.conversation-summary time{font-size:9px;color:var(--theme-text-secondary, #a6afbc);white-space:nowrap}.conversation-summary p{font-size:10px;color:var(--theme-text-secondary, #94a0b0);margin:7px 0 9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-summary small{font-size:9px;color:var(--theme-text-secondary, #a5afbd)}.conversation .avatar{width:37px;height:37px;border-radius:12px;font-size:11px}.conversation-list .empty{padding:40px 28px}.conversation-list .empty p{font-size:11px}.chat-pane{flex:1;min-width:0;display:flex;flex-direction:column;position:relative;background:var(--theme-surface, #f9fbfc)}.chat-pane.no-chat{align-items:center;justify-content:center;background:var(--theme-surface, #fafcfd)}.no-chat h2{font-size:21px;color:var(--theme-text-secondary, #65768a);font-weight:550;margin-top:30px}.no-chat>p{color:var(--theme-text-secondary, #9ba8b7);font-size:12px;text-align:center;line-height:1.9;margin-top:13px}.inbox-illustration{width:150px;height:150px;background:radial-gradient(circle,var(--theme-selected, #e9f2ef) 0%,#e9f2ef00 70%);display:flex;align-items:center;justify-content:center;position:relative;color:var(--theme-text-secondary, #9cbeae)}.inbox-illustration>svg{stroke-width:1.1}.floating-channel{position:absolute;display:flex;align-items:center;justify-content:center;width:31px;height:31px;box-shadow:0 4px 10px #17233b12;border:4px solid var(--theme-border, white);border-radius:10px;color:#fff;font-size:11px;font-weight:600}.floating-channel.telegram{top:15px;left:19px;transform:rotate(-12deg)}.floating-channel.vk{right:4px;top:61px;transform:rotate(10deg)}.floating-channel.email{bottom:12px;left:33px;transform:rotate(-10deg)}.chat-header{display:flex;gap:12px;align-items:center;padding:19px 26px;background:var(--theme-surface, #fff);border-bottom:1px solid var(--line)}.chat-heading{flex:1;min-width:0}.chat-heading h2{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-heading>span{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--theme-text-secondary, #9aa7b8);margin-top:7px}.chat-heading .channel-icon{width:15px;height:15px;font-size:8px;border-radius:4px}.chat-heading i{width:3px;height:3px;background:#b4bfcc;border-radius:50%}.chat-header>select{font-size:10px;border:0;background:var(--theme-surface-raised, #edf4f0);color:var(--theme-accent-text, #66967c);padding:8px 11px}.chat-context{display:flex;gap:20px;background:var(--theme-surface, #fff);border-bottom:1px solid var(--theme-border, #edf1f5);padding:10px 26px}.chat-context>label{font-size:9px;color:var(--theme-text-secondary, #a3afbd);display:flex;align-items:center;gap:7px;min-width:0}.chat-context select{border:0;color:var(--theme-text-secondary, #798ba0);font-size:10px;padding:3px;background:none;max-width:155px}.message-list{flex:1;min-height:0;overflow-y:auto;padding:12px 28px 22px;scroll-behavior:smooth}.message-day{font-size:10px;color:var(--theme-text-secondary, #a6b0bf);text-align:center;margin:20px 0}.message-row{display:flex;justify-content:flex-start;margin:13px 0}.message-row.out{justify-content:flex-end}.message-row.note{justify-content:center}.message-bubble{position:relative;max-width:min(85%,680px);background:var(--theme-surface, #fff);border:1px solid var(--theme-accent-border, #eaf0f4);border-radius:11px 11px 11px 2px;padding:12px 15px;box-shadow:0 2px 3px #1a335002;min-width:100px}.message-row.out .message-bubble{background:var(--theme-selected, #eaf4ee);border-color:var(--theme-accent-border, #deece4);border-radius:11px 11px 2px}.message-row.note .message-bubble{background:var(--theme-surface-soft, #fff9e8);border:1px solid var(--theme-border, #f4e9c6);border-radius:8px;max-width:100%;width:100%}.message-sender{font-size:9px;color:var(--theme-text-secondary, #8a9d9b);margin-bottom:5px}.message-text{font-size:12px;line-height:1.75;color:var(--theme-text-secondary, #506273);white-space:pre-wrap;overflow-wrap:anywhere}.message-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;color:var(--theme-text-secondary, #a4b2b6);margin-top:6px;font-size:9px}.message-meta small{font-size:8px}.message-meta .read{color:var(--theme-blue-text, #39a8be)}.message-error{font-size:10px;color:var(--theme-warm-text, #bc7972);margin-top:6px;max-width:330px}.send-error{display:inline-flex;gap:3px;color:var(--theme-warm-text, #c27b6e)}.note-label{display:flex;align-items:center;gap:5px;color:var(--theme-warm-text, #c0a051);font-size:9px;margin-bottom:8px}.message-actions{position:absolute;top:-17px;right:4px;display:none;align-items:center;border:1px solid var(--line);border-radius:7px;background:var(--theme-surface, #fff);box-shadow:0 3px 8px #00000008}.message-bubble:hover .message-actions{display:flex}.message-actions .icon-button{height:25px;width:27px}.quoted{border-left:2px solid var(--theme-accent-border, #98b7ad);background:#92b9a911;padding:6px 9px;font-size:10px;color:var(--theme-text-secondary, #8ca19d);margin:5px 0 10px}.load-earlier{display:block;margin:5px auto;padding:7px 13px;border:1px solid var(--line);border-radius:6px;background:var(--theme-surface, white);color:var(--theme-text-secondary, #93a0b0);font-size:10px}.composer{background:var(--theme-surface, #fff);border-top:1px solid var(--line);padding:0 25px 18px}.composer.note{background:var(--theme-surface-soft, #fffcf1)}.composer-tabs{display:flex;gap:15px;align-items:center;margin-bottom:5px;border-bottom:1px solid var(--theme-border, #f1f4f6)}.composer-tabs>button{display:flex;align-items:center;gap:5px;padding:13px 0 11px;background:none;border:0;border-bottom:2px solid transparent;font-size:10px;color:var(--theme-text-secondary, #a0adbb)}.composer-tabs>button.active{border-bottom-color:#4ca88c;color:var(--theme-accent-text, #5b8e7c)}.composer-tabs>span{margin-left:auto;color:var(--theme-text-secondary, #a9b3bf);font-size:9px;display:flex;gap:5px;align-items:center}.composer textarea{display:block;width:100%;min-height:65px;max-height:180px;resize:vertical;border:0;background:none;box-shadow:none;font-size:12px;padding:12px 0}.composer>footer{display:flex;align-items:center;justify-content:space-between}.composer>footer>div{display:flex;align-items:center;gap:4px}.composer .button{font-size:11px;padding:9px 13px}.composer-hint{font-size:9px;color:var(--theme-text-secondary, #b4bdc8);margin-left:10px}.reply-preview{display:flex;align-items:center;gap:8px;font-size:11px;padding:10px 0;color:var(--theme-text-secondary, #89a49b)}.reply-preview>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-envelope{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;border-bottom:1px solid var(--line);padding:5px 0}.mail-envelope>label{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--theme-text-secondary, #a1adbb)}.mail-envelope>label:last-child{grid-column:1/-1}.mail-envelope input{font-size:11px;flex:1;border:0;background:none;padding:6px 0;box-shadow:none}.draft-files{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.draft-files>span{display:flex;align-items:center;gap:5px;font-size:10px;background:var(--theme-surface-soft, #f1f5f7);border:1px solid var(--theme-accent-border, #e5edf1);padding:5px 7px;border-radius:5px}.draft-files button{border:0;background:none;color:var(--theme-text-secondary, #a0abb7);font-size:15px;padding:0 3px}.upload-progress{position:relative;background:var(--theme-surface-raised, #eef4f0);height:18px;border-radius:5px;margin-bottom:8px;overflow:hidden}.upload-progress>span{position:absolute;left:0;top:0;height:100%;background:#a7d9c4;transition:width .2s}.upload-progress>small{position:relative;text-align:center;display:block;line-height:18px;font-size:9px;color:var(--theme-accent-text, #4c8b70)}.drop-zone{position:absolute;top:10px;right:10px;bottom:10px;left:10px;background:#f0faf7f5;border:2px dashed #67b49b;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;z-index:10;color:var(--theme-accent-text, #438d75);pointer-events:none}.drop-zone p{font-size:12px}.attachment{margin:9px 0 3px;max-width:360px}.attachment img,.attachment video{display:block;max-width:100%;max-height:320px;border-radius:7px;object-fit:contain}.attachment audio{max-width:100%;height:38px}.file-card{display:flex;gap:10px;align-items:center;background:#e5edf566;padding:10px;border-radius:7px;margin-top:5px;color:var(--theme-text-secondary, #8ba0b3)}.file-card>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--theme-text-secondary, #6d8495)}.file-card small{display:block;font-size:9px;margin-top:3px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#101c3590;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:30px;z-index:100}.modal{background:var(--theme-surface, #fff);max-height:90dvh;overflow:auto;border-radius:13px;box-shadow:0 20px 80px #0a132b44;width:500px;max-width:100%}.modal.wide{width:740px}.modal>header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:20px 24px;position:sticky;top:0;background:var(--theme-surface, #fff);z-index:2}.modal>header h2{max-width:90%;overflow:hidden;text-overflow:ellipsis}.form-body{padding:24px;display:flex;flex-direction:column;gap:17px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field>span,.password-field>label{font-size:12px;font-weight:500;color:var(--theme-text-secondary, #6f7e90)}.field>input,.field>select,.field>textarea,.password-input>input{width:100%;font-size:12px}.field>small{font-size:10px;line-height:1.6;color:var(--theme-text-secondary, #9aa6b5)}.password-input{position:relative;min-width:0}.password-input>input{padding-right:48px}.password-input>.icon-button{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:36px;height:36px}.password-input>.icon-button:focus-visible{outline:2px solid var(--green);outline-offset:-2px}.password-input>input::-ms-reveal{display:none}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.form-grid fieldset,fieldset.form-grid{border:0;padding:0;margin:0;min-width:0}.form-footer{padding:18px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;background:var(--theme-surface, #fcfdfe)}.form-error{color:var(--theme-warm-text, #b66060);background:var(--theme-surface-soft, #fff2f2);border:1px solid var(--theme-border, #f1d9d9);margin:0 24px 20px;padding:12px;border-radius:7px;font-size:12px}.modal-bottom{border-top:1px solid var(--line);padding:15px 24px;display:flex;justify-content:flex-start}.checkbox-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:7px;max-height:230px;overflow:auto}.checkbox-list>label{display:flex;gap:9px;align-items:center;font-size:12px;padding:10px 12px;border-bottom:1px solid var(--theme-border, #f2f4f7)}.checkbox-list>label:last-child{border:0}.check-label{display:flex;gap:9px;align-items:center;color:var(--theme-text-secondary, #778698);font-size:12px}.related-section{border-top:1px solid var(--line)}.related-section h3{margin-bottom:14px}.related-link{display:flex;gap:10px;width:100%;align-items:center;border:0;background:var(--theme-surface-soft, #f8fafb);border-radius:6px;padding:12px;margin-top:7px;font-size:12px}.related-link svg:last-child{margin-left:auto}.related-section p{font-size:12px;line-height:1.7}.comment{font-size:12px;border-bottom:1px solid var(--line);padding:12px 0}.comment>small{margin-left:10px;font-size:10px}.comment>p{margin-top:8px;color:var(--theme-text-secondary, #7b8a9a);white-space:pre-wrap}.comment+form .form-body{padding:15px 0}.toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translate(-50%);background:#25374b;color:#e7eef4;border:1px solid #43566c;padding:14px 18px;border-radius:9px;box-shadow:0 8px 25px #11233733;z-index:200;font-size:12px;max-width:min(600px,90vw);display:flex;gap:20px;align-items:center}.toast>button{border:0;background:none;color:var(--theme-text-secondary, #adc2d6);font-size:21px}.notification-dot{position:absolute;right:6px;top:5px;width:6px;height:6px;background:#e39876;border-radius:50%;border:1px solid var(--theme-border, white)}.bell-anchor{position:relative}.notification-panel{position:absolute;top:46px;right:0;width:365px;max-height:500px;overflow:auto;background:var(--theme-surface, white);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 40px #23324c17}.notification-panel>header{padding:17px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--theme-surface, white)}.notification-panel strong{font-size:12px;font-weight:550}.notification-row{display:flex;gap:10px;width:100%;padding:15px 18px;background:var(--theme-surface, #fff);border:0;border-bottom:1px solid var(--theme-border, #f1f4f7);text-align:left;align-items:center}.notification-row.unread{background:var(--theme-surface-soft, #f6fbf8)}.notification-row>i{width:5px;height:5px;flex-shrink:0;border-radius:50%;background:var(--theme-surface-soft, #dce3eb)}.notification-row.unread>i{background:#43ae87}.notification-row strong{font-size:11px;line-height:1.6}.notification-row small{display:block;font-size:9px;margin-top:4px}.channel-intro{display:flex;align-items:center;gap:25px;border:1px solid var(--theme-accent-border, #e0ebe8);border-radius:10px;background:var(--theme-surface-soft, #f0f7f4);padding:23px;margin-bottom:26px}.channel-intro-icons{display:flex;margin-left:5px}.channel-intro-icons .channel-icon{height:34px;width:34px;border-radius:10px;border:3px solid var(--theme-border, #f0f7f4);margin-left:-5px;font-size:12px}.channel-intro-icons svg{width:17px;height:17px}.channel-intro strong{font-size:12px;font-weight:550}.channel-intro p{color:var(--theme-text-secondary, #8da498);font-size:11px;margin-top:7px;line-height:1.6}.connection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.connection-card{padding:24px}.connection-card>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.connection-card>header>.channel-icon{width:40px;height:40px;border-radius:12px;font-size:17px}.connection-card>header>.channel-icon svg{width:21px;height:21px}.connection-badge{display:inline-flex;gap:5px;align-items:center;color:var(--theme-text-secondary, #a0aab6);background:var(--theme-surface-soft, #f4f6f9);font-size:10px;padding:5px 8px;border-radius:5px}.connection-badge i{width:5px;height:5px;border-radius:50%;background:currentColor}.connection-badge.connected{color:var(--theme-accent-text, #3b9c79);background:var(--theme-selected, #ebf7f0)}.connection-badge.error{background:var(--theme-surface-soft, #fff2ed);color:var(--theme-warm-text, #bf8a71)}.connection-card>h2{font-size:16px}.connection-card>p{font-size:11px;color:var(--theme-text-secondary, #9eabba);margin:7px 0 19px}.connection-access{font-size:10px;color:var(--theme-text-secondary, #9ba9b9);display:flex;align-items:center;gap:6px}.connection-card>footer{margin-top:23px;border-top:1px solid var(--line);padding-top:18px;display:flex;justify-content:space-between}.connection-card .button{font-size:11px}.connection-error{color:var(--theme-warm-text, #c58675)!important;line-height:1.6}.add-connection{min-height:260px;background:none;border:1px dashed var(--theme-border, #d5dfe8);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--theme-text-secondary, #95a7b9);gap:10px}.add-connection>span{display:flex;align-items:center;justify-content:center;width:49px;height:49px;border-radius:14px;background:var(--theme-selected, #edf2f6);margin-bottom:7px}.add-connection strong{font-size:13px;font-weight:500}.add-connection p{font-size:11px;color:var(--theme-text-secondary, #a8b3c0)}.info-box{display:flex;gap:11px;background:var(--theme-surface-soft, #f2f7fa);border:1px solid var(--theme-accent-border, #e6eff4);border-radius:8px;padding:14px;color:var(--theme-blue-text, #81a0b2);font-size:11px;line-height:1.8}.info-box>svg{flex-shrink:0;margin-top:3px}.connection-form-section{border-top:1px solid var(--line);padding-top:20px;margin-top:4px}.connection-form-section h3{font-size:13px;color:var(--theme-text-secondary, #7c8b9b);margin-bottom:19px}.test-result{font-size:12px;color:var(--theme-text-secondary, #6d8692);background:var(--theme-surface-soft, #f4f8fa);padding:12px;border-radius:7px}.messenger-login{display:flex;flex-direction:column;gap:20px;align-items:center}.messenger-login p{font-size:12px;line-height:1.7;text-align:center}.messenger-login form{width:100%}.qr-code{width:230px;height:230px}.admin-label{display:flex;align-items:center;gap:7px;color:var(--theme-text-secondary, #889eaf);font-size:11px;background:var(--theme-selected, #edf2f6);border:1px solid var(--theme-accent-border, #e2eaf0);padding:9px 12px;border-radius:7px}.settings-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px}.settings-nav{display:flex;flex-direction:column;gap:6px;align-self:start}.settings-nav>button{display:flex;align-items:center;gap:10px;border:0;background:none;text-align:left;padding:13px 12px;font-size:11px;color:var(--theme-text-secondary, #92a0b2);border-radius:7px;white-space:nowrap}.settings-nav>button.active{background:var(--theme-selected, #e7f0ec);color:var(--theme-accent-text, #4b927b)}.settings-nav>button:hover{background:var(--theme-surface-raised, #edf2f4)}.settings-content{min-width:0;display:flex;flex-direction:column;gap:22px}.settings-content p{line-height:1.8;font-size:12px}.settings-panel>.padded>p{margin-bottom:20px}.storage-summary{display:flex;gap:23px;align-items:center;padding:30px}.storage-icon{display:flex;align-items:center;justify-content:center;width:65px;height:65px;background:var(--theme-surface-raised, #edf4f0);color:var(--theme-accent-text, #86b49e);border-radius:18px;flex-shrink:0}.storage-summary>div:last-child{flex:1}.storage-summary strong{font-size:25px;letter-spacing:-.8px;font-weight:600}.storage-summary strong>span{font-size:13px;color:var(--theme-text-secondary, #a4afbe);letter-spacing:0;font-weight:400;margin-left:4px}.storage-meter{height:7px;border-radius:8px;background:var(--theme-surface-raised, #edf2f5);margin:16px 0 11px;overflow:hidden}.storage-meter>span{display:block;height:100%;background:#57b696;border-radius:8px;min-width:2px}.storage-summary small{font-size:10px}.storage-health{border-top:1px solid var(--line);padding:22px 28px}.storage-health>span{display:flex;align-items:center;gap:7px;font-size:12px}.storage-health dl{display:grid;grid-template-columns:145px 1fr;gap:13px;font-size:11px;margin-top:22px}.storage-health dt{color:var(--theme-text-secondary, #9eabbc)}.storage-health dd{margin:0;color:var(--theme-text-secondary, #718396);overflow-wrap:anywhere}.file-name{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;font-size:11px}.settings-content td{padding:15px;font-size:11px}.settings-content th{padding:13px 15px}.toggle-row{display:flex;align-items:center;justify-content:space-between;margin:25px 0 30px}.toggle-row strong{display:block;font-size:13px;font-weight:550}.toggle-row small{display:block;font-size:11px;margin-top:7px}.retention-preview{display:flex;gap:15px;background:var(--theme-surface-soft, #fff7e8);border:1px solid var(--theme-border, #f3e5c5);border-radius:8px;color:var(--theme-warm-text, #b59358);padding:18px;margin-top:24px}.retention-preview strong{font-size:12px}.retention-preview small{font-size:10px;color:var(--theme-warm-text, #b9a585)}.retention-preview svg{flex-shrink:0}.warning-box{padding:17px;background:var(--theme-surface-soft, #fff4ed);border:1px solid var(--theme-border, #f1ddcc);color:var(--theme-warm-text, #b68e6f);font-size:12px;line-height:1.8;border-radius:8px}.health-worker{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line);font-size:11px}.health-worker strong{flex:1;font-size:12px;font-weight:550}.health-worker span{color:var(--theme-text-secondary, #8da0b4)}.settings-panel .padded>h3{margin:25px 0 10px}.stage-edit{display:flex;gap:13px;margin-bottom:13px;align-items:center}.stage-edit>input[type=color]{width:39px;height:37px;padding:3px}.stage-edit>input:nth-child(2){flex:1;font-size:12px}.loading-screen{display:flex;gap:14px;align-items:center;justify-content:center;min-height:100dvh;color:var(--theme-text-secondary, #8397a8);font-size:13px}.login-page{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:var(--theme-surface, #fff)}.login-story{background:radial-gradient(ellipse at 10% 100%,#28494700,#17233b 65%),linear-gradient(135deg,#203746,#335a54);color:#fff;padding:50px 60px;display:flex;flex-direction:column;justify-content:space-between;gap:60px}.login-story>.wordmark{font-size:23px}.login-story .wordmark img{width:40px;height:40px}.login-story .eyebrow{color:var(--theme-text-secondary, #6a928a);font-size:9px;letter-spacing:2px}.login-story h1{font-size:43px;line-height:1.36;font-weight:500;letter-spacing:-1.9px;margin-top:26px}.login-story h1 em{font-style:normal;color:var(--theme-accent-text, #93cfb8)}.login-story p{font-size:13px;line-height:1.9;color:var(--theme-text-secondary, #90a9ad);margin-top:25px}.login-foot{font-size:10px;letter-spacing:1.5px;color:var(--theme-text-secondary, #718e95)}.login-form{display:flex;align-items:center;justify-content:center;padding:55px}.login-form-inner{width:340px;max-width:100%}.login-form h2{font-size:28px;letter-spacing:-.7px;margin-top:15px}.login-form p{font-size:12px;line-height:1.8;color:var(--theme-text-secondary, #9aa6b6);margin:12px 0 30px}.login-form .form-body{padding:0;gap:22px}.login-form .form-footer{padding:25px 0 0;border:0;background:none}.login-form .button{width:100%;padding:12px}.login-form small{display:block;text-align:center;font-size:10px;color:var(--theme-text-secondary, #a9b3bf);margin-top:23px;line-height:1.7}.login-form .form-error{margin:18px 0 0}.login-form .eyebrow{font-size:9px;color:var(--theme-text-secondary, #7e9c90)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:var(--theme-selected, #dfe6ed);border-radius:8px}::-webkit-scrollbar-track{background:transparent}@media(min-width:1700px){.sidebar{width:258px}.main{margin-left:258px}.page{padding:42px 48px}.conversation-pane{width:370px}.chat-header{padding:24px 35px}.message-list{padding:16px 40px 30px}}@media(max-width:1200px){.sidebar{width:210px;padding:24px 12px 15px}.main{margin-left:210px}.wordmark{font-size:16px}.workspace{margin:25px 0}.page{padding:25px}.topbar{padding:0 25px}.stats-grid{gap:12px}.stat-card{padding:17px}.connection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.conversation-pane{width:290px}.chat-context{gap:10px;padding:10px 15px}.chat-context select{max-width:95px}.chat-heading>span{font-size:9px}.chat-header{padding:18px}.composer-hint{display:none}.calendar-layout{grid-template-columns:minmax(0,1fr) 225px}.calendar-day{height:88px;padding:7px}.settings-layout{grid-template-columns:170px minmax(0,1fr);gap:18px}.settings-nav>button{font-size:10px;gap:7px;padding:12px 8px}.storage-summary{padding:23px}.login-story{padding:40px}.login-story h1{font-size:36px}.workspace-tip>.text-button{display:none}}@media(max-width:980px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.pipeline-summary{grid-column:auto}.settings-layout{grid-template-columns:1fr}.settings-nav{flex-direction:row;overflow:auto;padding-bottom:5px}.calendar-layout{grid-template-columns:1fr}.day-agenda{display:none}.list-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.list-toolbar .tabs{overflow:auto;max-width:100%}.connection-grid{gap:15px}.connection-card{padding:19px}.channel-intro-icons{display:none}.composer-tabs>span{display:none}.conversation-pane{width:260px}.chat-context{flex-wrap:wrap;gap:8px 14px}.chat-context select{max-width:110px}.message-list{padding:10px 16px}.composer{padding:0 16px 14px}.chat-header>.avatar{display:none}.topbar-right{gap:8px}.today{display:none}.panel-heading{padding:20px}.calendar-chip{font-size:8px}}@media(max-width:760px){.sidebar{transform:translate(-100%);width:242px;transition:transform .2s;box-shadow:10px 0 50px #17233b25}.sidebar.visible{transform:translate(0)}.main{margin-left:0}.topbar{height:60px;padding:0 16px}.mobile-toggle{display:inline-flex}.breadcrumb{gap:7px}.breadcrumb>span:first-of-type,.breadcrumb .slash{display:none}.topbar-right{gap:7px}.topbar-right>.avatar{display:none}.page{padding:22px 17px}.page-heading{margin-bottom:22px;gap:10px;align-items:flex-start}.page-heading h1{font-size:25px}.page-heading .button{font-size:10px;padding:9px 10px}.page-heading p{font-size:11px;line-height:1.6}.page-heading .eyebrow{font-size:8px}.stats-grid{gap:11px;margin-bottom:18px}.stat-card{padding:16px}.stat-top{font-size:10px}.stat-card>strong{font-size:29px;margin:13px 0}.stat-bottom small{font-size:9px}.dashboard-grid{gap:18px}.panel-heading h2{font-size:14px}.panel-heading .text-button{font-size:10px}.pipeline-bars{gap:14px;padding:20px;grid-template-columns:1fr}.pipeline-bars>div{display:grid;grid-template-columns:110px 1fr 80px;gap:12px;align-items:center}.pipeline-bars>div>div:first-child{margin:0}.pipeline-bars .bar{margin:0}.pipeline-bars small{text-align:right}.workspace-tip{padding:17px;gap:10px;margin-top:18px}.workspace-tip p{font-size:10px;line-height:1.7}.workspace-tip strong{font-size:11px}.inbox{height:calc(100dvh - 60px)}.conversation-pane{width:100%}.chat-pane,.inbox.has-selected .conversation-pane{display:none}.inbox.has-selected .chat-pane{display:flex}.chat-header{padding:14px 12px;gap:8px}.chat-header>.avatar{display:flex;width:34px;height:34px}.chat-heading h2{font-size:13px}.chat-header select{max-width:86px;padding:6px;font-size:9px}.chat-context{padding:8px 15px;gap:9px;font-size:9px}.message-bubble{max-width:90%}.message-text{font-size:12px}.composer{padding:0 13px 12px}.composer textarea{font-size:12px;min-height:60px}.composer-tabs{gap:16px}.composer-tabs>button{font-size:10px}.conversation-summary strong{font-size:12px}.conversation-summary p{font-size:11px}.conversation-summary time{font-size:10px}.conversation-summary small{font-size:10px}.pane-title{padding:22px 20px}.connection-grid{grid-template-columns:1fr}.connection-card{padding:24px}.channel-intro{padding:18px}.settings-content .panel-heading{align-items:flex-start}.settings-content .panel-heading .button{font-size:10px;padding:8px 10px}.settings-content .panel-heading h2{font-size:14px}.settings-content .panel-heading p{font-size:11px}.settings-nav{margin-bottom:6px}.settings-nav>button{font-size:11px;padding:11px;flex-shrink:0}.storage-summary{padding:20px;gap:14px}.storage-icon{width:48px;height:48px;border-radius:13px}.storage-icon>svg{width:24px}.storage-summary strong{font-size:23px}.storage-summary strong>span{font-size:11px}.storage-summary small{font-size:9px;line-height:1.6}.storage-health{padding:20px}.storage-health dl{grid-template-columns:110px 1fr;font-size:10px}.settings-layout{gap:12px}.settings-content{gap:18px}.settings-content>.settings-panel>.padded{padding:20px}.settings-panel .form-grid{grid-template-columns:1fr}.calendar-header{padding:17px}.calendar-header h2{font-size:15px}.calendar-day{height:85px;padding:5px}.calendar-chip{font-size:8px;padding:2px}.calendar-day>span{font-size:10px}.calendar-header .button{font-size:10px}.calendar-panel{border-radius:9px}.kanban{grid-template-columns:repeat(5,235px);margin:0 -17px;padding:0 17px 25px;min-height:calc(100dvh - 230px)}.modal-backdrop{padding:12px}.modal{max-height:94dvh;border-radius:10px}.modal>header{padding:17px 18px}.modal>header h2{font-size:16px}.form-body{padding:20px}.form-grid{gap:16px;grid-template-columns:1fr}.form-footer{padding:16px 20px}.form-grid .full-width{grid-column:auto}.modal.wide{width:100%}.padded{padding:20px}.toast{left:50%;width:max-content;max-width:calc(100vw - 30px);bottom:15px;font-size:11px}.notification-panel{right:-30px;width:calc(100vw - 35px);max-height:65dvh}.login-page{grid-template-columns:1fr}.login-story{padding:28px;gap:25px;min-height:260px}.login-story>.wordmark{font-size:19px}.login-story .wordmark img{width:32px;height:32px}.login-story h1{font-size:27px;letter-spacing:-.9px;margin-top:14px}.login-story h1 br:nth-child(2){display:none}.login-story p,.login-foot{display:none}.login-form{padding:35px 25px}.login-form h2{font-size:25px}.login-form p{margin-bottom:25px}.login-form .eyebrow{display:none}.admin-label{font-size:9px;padding:7px}.today{display:none}.mail-envelope{grid-template-columns:1fr}.mail-envelope>label:last-child{grid-column:auto}}.sidebar>.wordmark,.workspace-label,.sidebar-footer{flex-shrink:0}.workspace-label{display:flex;align-items:center;gap:10px;margin:20px 0 22px;padding:0 9px;color:#dbe5f0}.workspace-label strong{display:block;font-size:12px;font-weight:550}.workspace-label small{display:block;font-size:10px;margin-top:4px;color:var(--theme-text-secondary, #8697ae)}.sidebar-scroll{min-height:0;flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#43536a transparent}.sidebar-bottom{margin-top:18px;padding-top:4px}.sidebar-footer{padding-top:9px;background:var(--navy)}.sidebar-footer .connection-state{margin:8px 9px 13px;line-height:1.5}.sidebar-user{padding-top:12px;min-height:49px}.channel-icon img{display:block;width:70%;height:70%;object-fit:contain;filter:brightness(0) invert(1)}.channel-icon.max{background:transparent}.channel-icon.max img{width:100%;height:100%;filter:none}.channel-icon.telegram{background:#26a5e4}.channel-icon.vk{background:#07f}.channel-icon.whatsapp{background:#25d366}.floating-channel>.channel-icon{width:100%;height:100%;border-radius:inherit}.channel-health-list{margin-bottom:28px}.channel-health-item{display:flex;gap:15px;padding:17px 0;border-bottom:1px solid var(--line)}.channel-health-item>.channel-icon{width:32px;height:32px;border-radius:9px;flex-shrink:0}.channel-health-item>div{flex:1;min-width:0}.channel-health-item strong{font-size:13px}.channel-health-item p{font-size:12px;margin:7px 0;color:var(--theme-text-secondary, #8391a1)}.channel-health-item small{font-size:11px}.channel-account-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 0;font-size:12px}.kanban{min-height:0;gap:12px;align-items:start;padding-bottom:16px;scrollbar-width:thin}.kanban-column{min-height:154px;padding:10px;border:1px solid var(--theme-accent-border, #e5eaf0);background:var(--theme-surface-soft, #eff3f7);border-radius:11px;max-height:calc(100dvh - 235px);overflow:auto;scrollbar-width:thin}.kanban-column>header{padding:4px 3px 12px}.kanban-column>header small{margin:5px 0 0 15px;font-size:11px}.deal-card{padding:11px 12px;margin-bottom:8px;border-radius:8px;transition:box-shadow .15s,border-color .15s}.deal-card:hover{border-color:var(--theme-accent-border, #9fcabb);box-shadow:0 3px 12px #17233b0a}.deal-card h3{margin:5px 0 8px;font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.deal-company{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.deal-amount{font-size:14px;color:var(--theme-text-primary, #243247)}.deal-card footer{padding-top:8px;margin-top:8px}.deal-card .avatar{width:21px;height:21px;border-radius:7px}.add-card{font-size:12px;color:var(--theme-text-secondary, #678879);border-radius:7px}.add-card:hover{background:var(--theme-selected, #e4eee9);color:var(--theme-accent-text, #17765e)}.stat-card{padding:17px 19px}.stat-card>strong{font-size:29px}.dashboard-grid>.panel .empty{padding:35px 22px;min-height:190px}.modal-backdrop{padding:16px}.modal{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}.modal>header{position:sticky;top:0;background:var(--theme-surface, #fff);z-index:2}.modal .form-footer{position:static;z-index:1}.related-section .panel-heading{padding:0 0 12px;border:0}.related-section .panel-heading h3{margin:0}.related-link span>small{display:block;margin-top:4px}.planner{overflow:hidden}.planner-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line);flex-wrap:wrap}.planner-date{display:flex;align-items:center;gap:20px}.planner-date>div{display:flex;align-items:center;gap:3px}.planner-date h2{font-size:16px;text-transform:capitalize}.view-switch{display:flex;padding:3px;border-radius:8px;background:var(--theme-surface-soft, #f0f3f6);gap:2px}.view-switch button{border:0;background:transparent;font-size:12px;padding:7px 12px;border-radius:6px;color:var(--theme-text-secondary, #7c8b9d)}.view-switch button.active{background:var(--theme-surface, white);color:var(--theme-accent-text, #216c5b);box-shadow:0 1px 4px #17233b0c}.planner-week{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));overflow-x:auto;min-height:280px;max-height:calc(100dvh - 325px);overflow-y:auto}.planner-day{border-right:1px solid var(--line);min-width:0}.planner-day:last-child{border-right:0}.planner-day>header{display:flex;align-items:center;justify-content:space-between;padding:10px 9px;border-bottom:1px solid var(--line);background:var(--theme-surface, #fafbfd);position:sticky;top:0;z-index:1}.planner-day>header>button{display:flex;align-items:center;gap:6px;border:0;background:none;padding:2px;color:var(--theme-text-secondary, #8a98a8);font-size:11px}.planner-day>header strong{font-size:17px;color:var(--theme-text-primary, #425269);font-weight:600}.planner-day.today>header{background:var(--theme-selected, #ecf7f3)}.planner-day.today>header strong{color:var(--green)}.planner-day>div{padding:7px}.planner-free{font-size:11px;color:var(--theme-text-secondary, #a3aebc);padding:14px 2px}.planner-event{display:block;width:100%;text-align:left;border:1px solid var(--theme-accent-border, #dceae5);border-left:3px solid #66b49b;background:var(--theme-surface-soft, #f1f8f5);border-radius:6px;padding:7px 8px;margin:0 0 6px;overflow:hidden}.planner-event.task{border-color:var(--theme-border, #dee5f4);border-left-color:var(--theme-border, #88a2d3);background:var(--theme-selected, #f2f5fb)}.planner-event:hover{filter:brightness(.98)}.planner-event time{font-size:10px;color:var(--theme-text-secondary, #718e81)}.planner-event strong{display:block;font-size:11px;font-weight:550;line-height:1.4;color:var(--theme-text-primary, #3e594f);overflow-wrap:anywhere;margin-top:2px}.planner-event small{display:block;font-size:9px;margin-top:3px}.planner-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.planner-cell{min-height:85px;padding:6px;border-bottom:1px solid var(--line);border-right:1px solid var(--line)}.planner-cell.outside{background:var(--theme-surface, #fafbfd)}.planner-cell.selected{box-shadow:inset 0 0 0 1px #8bcebb}.planner-cell .planner-event{padding:3px 5px;margin-top:4px}.planner-cell .planner-event time{display:none}.planner-cell .planner-event strong{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.planner-day-number{width:24px;height:24px;border:0;background:transparent;color:var(--theme-text-secondary, #6c7d94);border-radius:50%;font-size:11px}.planner-day-number.today{background:var(--green);color:#fff}.planner-agenda{padding:0 18px;max-height:calc(100dvh - 330px);min-height:180px;overflow-y:auto}.planner-agenda .planner-day{display:grid;grid-template-columns:155px 1fr;border-right:0;border-bottom:1px solid var(--line)}.planner-agenda .planner-day>header{background:var(--theme-surface, white);border:0;position:static;align-items:flex-start;padding:16px 6px}.planner-agenda .planner-day>div{padding:12px 0 6px}.planner-agenda .planner-event{display:grid;grid-template-columns:52px 1fr;align-items:center;padding:9px}.planner-agenda .planner-event small{grid-column:2}.planner-footer{padding:12px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line)}.planner-footer>span{font-size:11px;color:var(--theme-text-secondary, #93a0af)}@media(max-height:760px){.sidebar{padding-top:18px;padding-bottom:12px}.workspace-label{margin:15px 0}.sidebar nav button{min-height:39px;padding:8px 12px}.sidebar nav{gap:3px}.sidebar-bottom{margin-top:13px}.nav-label{margin-bottom:8px}.sidebar-footer .connection-state{font-size:9px;margin-bottom:9px}.page{padding-top:24px}.page-heading{margin-bottom:20px}}@media(max-width:760px){.planner-toolbar{padding:12px;gap:12px}.planner-date{width:100%;justify-content:space-between;gap:8px}.planner-week{grid-template-columns:repeat(7,150px);min-height:260px;max-height:450px}.planner-agenda{max-height:450px;padding:0 10px}.planner-agenda .planner-day{grid-template-columns:90px 1fr}.planner-agenda .planner-day>header>button{flex-wrap:wrap}.planner-month{min-width:0}.planner-cell{min-height:72px;padding:3px}.planner-cell .planner-event strong{font-size:9px}.planner-cell .planner-event{border-left-width:2px;padding:2px}.planner-footer>span{display:none}.planner-footer{justify-content:flex-end}.kanban-column{max-height:none}.channel-account-status{align-items:flex-start;flex-direction:column;gap:4px}.modal-backdrop{padding:8px}.modal{max-height:calc(100dvh - 16px)}}.project-selector{display:block;margin:22px 8px;color:var(--theme-text-secondary, #a6b4c7);flex-shrink:0}.project-selector>span{display:block;font-size:10px;margin-bottom:7px}.project-selector select{width:100%;background:#26354c;border:1px solid #41516b;color:#fff;padding:10px;border-radius:8px;font-size:12px}.project-selector option{color:#fff;background:#26354c}.project-dot{width:11px;height:11px;border-radius:50%;flex-shrink:0}.employee-projects{display:flex;flex-wrap:wrap;gap:8px}.employee-projects>div{border:1px solid var(--line);border-radius:8px;padding:10px;display:flex;gap:12px;align-items:center}.employee-projects>div.selected{border-color:var(--green);background:var(--theme-surface-soft, #f1f9f6)}.employee-projects label{display:flex;align-items:center;gap:7px;font-size:12px}.project-permissions>h3{margin-bottom:14px}.permission-sections{margin-top:16px;display:grid;gap:10px}.permission-sections details{border:1px solid var(--line);border-radius:9px;padding:12px}.permission-sections summary{cursor:pointer;font-size:13px;font-weight:600}.permission-sections summary small{float:right;font-weight:400;color:var(--theme-text-secondary, #8b9baa)}.permission-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:14px}.permission-actions .check-label{font-size:12px;margin:0;line-height:1.45}.permission-scope{display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:12px;margin-top:12px;color:var(--theme-text-secondary, #748397)}.permission-scope select{width:190px;font-size:12px;padding:8px}.permission-actions input:disabled{opacity:.4}.project-permissions{padding-top:12px}.detail-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:16px}.detail-tabs button{border:0;border-radius:7px;padding:8px 12px;background:var(--theme-surface-soft, #f0f3f6);font-size:12px;color:var(--theme-text-secondary, #748397)}.detail-tabs button.active{color:var(--theme-accent-text, #147d64);background:var(--theme-selected, #e8f4ef)}.document-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.document-grid .attachment img,.document-grid video{max-width:100%;max-height:160px}.purchase-totals{display:flex;gap:20px;flex-wrap:wrap;margin:16px 0}.purchase-totals strong{font-size:21px;display:block}.purchase-totals span{display:block;font-size:11px;color:var(--theme-text-secondary, #8393a4);margin-top:5px}.purchase-card{border:1px solid var(--line);border-radius:8px;padding:13px;margin-bottom:10px}.purchase-card summary{display:flex;justify-content:space-between;gap:16px;cursor:pointer;font-size:13px}.purchase-card small{display:block;color:var(--theme-text-secondary, #8292a4);font-size:11px;margin-top:5px}.purchase-card table{width:100%;font-size:12px;margin-top:15px}.purchase-card td,.purchase-card th{padding:8px;text-align:left;border-bottom:1px solid var(--line)}.card-field-group{border:1px solid var(--line);border-radius:8px;padding:12px}.card-field-group summary{font-size:12px;cursor:pointer}.card-field-group .form-grid{margin-top:14px}.custom-fields h3{margin-bottom:12px}.related-link>small:last-child{margin-left:auto}.integration-card{border:1px solid var(--line);border-radius:10px;padding:18px;margin-bottom:12px}.integration-card header{display:flex;justify-content:space-between;align-items:center;gap:12px}.integration-card h3{font-size:14px}.integrations-panel .panel-heading,.integration-card .button-row{flex-wrap:wrap}.integration-card header>div{min-width:0;overflow-wrap:anywhere}.integration-card .button{max-width:100%;white-space:normal;text-align:center}.integration-card p{overflow-wrap:anywhere}.integration-sync-mode{margin:12px 0;color:var(--theme-accent-text, #276c58)}.integration-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px;margin:16px 0}.integration-steps>section{display:flex;flex-direction:column;min-width:0;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--theme-surface, #f9fbfc)}.integration-steps h4{font-size:12px;line-height:1.5;margin:0}.integration-steps p{margin:8px 0 14px;color:var(--theme-text-secondary, #6d7f90);flex:1}.integration-steps .button{width:100%}.integration-diagnostics{border-top:1px solid var(--line);padding-top:14px;font-size:12px}.integration-diagnostics summary{cursor:pointer;color:var(--theme-text-secondary, #597186)}.integration-diagnostics p,.integration-diagnostics .button{margin:12px 0 0}.integration-card p{font-size:12px;line-height:1.6}.integration-secret-note{font-size:11px;color:var(--theme-text-secondary, #8193a3)}.integration-endpoint{display:block;width:100%;font-size:11px;overflow-wrap:anywhere;padding:10px;background:var(--theme-surface-soft, #f6f8fa);border:1px solid var(--line);border-radius:6px}.integration-fields{display:grid;gap:15px}.ms-results{display:grid;gap:8px;margin-top:14px}.ms-result{padding:12px;border:1px solid var(--line);border-radius:8px;text-align:left;background:var(--theme-surface, white)}.ms-result strong,.ms-result small{display:block}.ms-result small{margin-top:5px;color:var(--theme-text-secondary, #8492a0)}.search-result{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.search-result>div{flex:1}.search-result small{display:block;margin-top:4px}.mobile-integration-table{overflow-x:auto}.permission-help{font-size:12px;color:var(--theme-text-secondary, #7b8e9d);line-height:1.6}@media(max-width:760px){.permission-actions,.document-grid{grid-template-columns:1fr}.permission-scope{align-items:flex-start;flex-direction:column}.permission-scope select{width:100%}.integration-card header{align-items:flex-start;flex-direction:column}.project-selector{margin-top:14px;margin-bottom:14px}.employee-projects>div{width:100%;justify-content:space-between}}.woo-mappings{min-width:0}.woo-status-modal{display:flex;flex-direction:column;overflow:hidden}.woo-status-modal>header,.woo-status-modal .form-footer,.woo-status-modal .form-error{flex-shrink:0;position:static}.woo-status-modal>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.woo-status-modal .form-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}.woo-mappings section{min-width:0}.woo-mappings .field{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:16px;padding:9px 0;border-bottom:1px solid var(--line)}.woo-mappings .field>span{color:var(--theme-blue-text, #344b62)}.woo-mappings section[hidden]{display:none}.woo-mapping-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:14px 0 8px;font-size:11px;color:var(--theme-text-secondary, #778a9a)}.woo-direction button{flex:1}.woo-mappings h3{margin:8px 0}.woo-deal-status{border-top:1px solid var(--border, var(--theme-accent-border, #e6edf3))}.woo-deal-status p{margin:10px 0;font-size:13px}.stage-edit>select{width:145px;flex:0 0 145px}.woo-card-status{display:block;font-size:11px;color:var(--theme-text-secondary, #65778d);margin:8px 0}@media(max-width:640px){.woo-mappings .field,.woo-mapping-head{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:10px}.woo-mappings select{padding-left:7px;padding-right:7px}.stage-edit{flex-wrap:wrap}.stage-edit>input:nth-child(2){min-width:130px}}.record-modal.modal.wide{width:980px;height:min(820px,calc(100dvh - 32px));display:flex;flex-direction:column;overflow:hidden}.record-modal>header,.record-tabs{flex-shrink:0}.record-tabs{padding:12px 24px;margin:0;border-bottom:1px solid var(--line)}.record-body{overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain;scrollbar-gutter:stable}[hidden]{display:none!important}.record-summary{padding:18px 24px;display:grid;grid-template-columns:1fr 1fr;gap:14px 24px;background:var(--theme-surface, #f8fafc);border-bottom:1px solid var(--line)}.record-summary small{display:block;color:var(--theme-text-secondary, #718095);margin-bottom:5px;font-size:11px}.record-summary strong,.record-summary span{font-size:13px;overflow-wrap:anywhere}.record-modal .related-section{border-top:0}.record-modal .form-footer{position:static}.record-fields .form-grid{gap:16px}.amount-input{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:8px}.amount-input input,.amount-input select{width:100%;min-width:0}.order-items-scroll{overflow-x:auto;max-width:100%}.order-items{width:100%;min-width:420px;table-layout:fixed;border-collapse:collapse}.order-items th:first-child{width:46%}.order-items th:nth-child(2){width:12%}.order-items td:first-child{overflow-wrap:anywhere}.order-items td:not(:first-child),.order-items th:not(:first-child){text-align:right}.order-total{display:flex;justify-content:space-between;gap:12px;padding:14px 8px;font-size:14px}.order-refund{font-size:12px;padding:0 8px 12px;color:var(--theme-warm-text, #966239)}.purchase-card summary{align-items:flex-start;flex-wrap:wrap}.shipment-shortcut{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:var(--theme-surface-soft, #f5faf8);font-size:13px}.compact-filter{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--theme-text-secondary, #697b8c)}.compact-filter input,.compact-filter select{min-width:0;font-size:12px;color:var(--theme-text-primary, #243247)}.contact-toolbar,.contact-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:14px}.contact-toolbar .search-field{flex:1;min-width:240px}.contact-filters .compact-filter{flex:1;min-width:150px;max-width:260px}.column-picker{position:relative}.column-picker summary{list-style:none;cursor:pointer}.column-picker>div{position:absolute;right:0;top:calc(100% + 8px);z-index:5;width:220px;padding:12px;background:var(--theme-surface, white);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 30px #17233b20}.column-picker label{display:flex;align-items:center;gap:10px;padding:8px;font-size:12px}.contacts-table-scroll{overflow-x:auto}.contacts-panel table{width:100%;min-width:640px;border-collapse:collapse}.contacts-panel th{background:var(--theme-surface-soft, #f5f8fb);color:var(--theme-text-secondary, #65798e);text-align:left;font-size:11px;font-weight:600;padding:12px 16px;white-space:nowrap}.contacts-panel td{padding:13px 16px;font-size:12px;border-top:1px solid var(--line);max-width:280px;overflow-wrap:anywhere}.contacts-panel tbody tr:hover{background:var(--theme-surface-soft, #f8fbfa)}.client-name{display:flex;align-items:center;gap:10px;padding:0;background:none;border:0;text-align:left;font-size:13px;color:var(--theme-blue-text, #223c51)}.client-name:hover strong{color:var(--green);text-decoration:underline}.contacts-panel .cell-stack a{color:var(--theme-blue-text, #536d82);text-decoration:none}.contacts-panel .cell-stack a:hover{text-decoration:underline}.pagination{padding:14px 16px;border-top:1px solid var(--line);display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--theme-text-secondary, #64758a)}.pagination>label{display:flex;align-items:center;gap:8px;margin-left:auto}.pagination select{padding:6px;font-size:12px}.pagination-buttons{display:flex;align-items:center;gap:9px;margin-left:auto}.pagination.compact{padding:8px 0;gap:6px;font-size:11px}.pagination.compact .button{padding:5px 7px;font-size:10px;min-height:28px}.deal-page{height:calc(100dvh - 72px);display:flex;flex-direction:column;padding-bottom:16px;overflow:hidden}.deal-page>.page-heading,.deal-page>.list-toolbar{flex-shrink:0}.deal-page>.list-toolbar{gap:12px;flex-wrap:wrap;align-items:end}.deal-sort{margin-left:auto}.deal-page .kanban{grid-template-rows:minmax(0,1fr);flex:1;min-height:0;overflow-x:auto;overflow-y:hidden;align-items:stretch;padding-bottom:10px}.deal-page .kanban-column{align-self:stretch;min-height:0;max-height:none;display:flex;flex-direction:column;overflow:hidden}.kanban-column>header,.kanban-column>.pagination,.kanban-column>.add-card{flex-shrink:0}.kanban-cards{overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin;padding-right:3px}.kanban-empty{padding:12px;font-size:12px}.deal-date{display:block;font-size:10px;color:var(--theme-text-secondary, #758497);margin-bottom:7px}.deal-card footer{gap:6px}.deal-card footer>span:last-child{font-size:10px}@media(max-width:700px){.record-tabs{padding:10px 14px;gap:5px}.record-tabs button{padding:7px 9px}.record-summary{padding:14px;gap:12px}.record-modal.modal.wide{height:calc(100dvh - 24px)}.deal-page{height:calc(100dvh - 64px)}.deal-page .page-heading,.deal-page .list-toolbar{margin-bottom:12px}.deal-page .list-toolbar .search-field{width:100%}.deal-sort{margin-left:0}.contact-toolbar .search-field{width:100%;flex-basis:100%}.pagination{padding:10px}}.archive-browser{overflow:auto;min-height:0}.archive-settings{border-bottom:1px solid var(--line)}.archive-settings .padded{padding-bottom:0}.deal-record-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:8px 24px}.deal-record-actions:empty{display:none}.record-body>.padded:not(.related-section):not(.woo-deal-status):not(.shipment-shortcut){padding:12px 24px}@media(max-width:600px){.order-items{min-width:0}.order-items thead{display:none}.order-items tbody{display:block}.order-items tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.order-items td{padding:0;border:0;overflow-wrap:anywhere}.order-items td:first-child{grid-column:1 / -1}.order-items td:not(:first-child){text-align:left}.order-items td[data-label]:before{content:attr(data-label);display:block;margin-bottom:5px;color:var(--theme-text-secondary, #758497);font-size:10px}}.inbox .chat-pane{min-height:0;overflow:hidden}.conversation-row{position:relative}.conversation-row>.conversation{padding-right:42px}.conversation-row>.conversation-menu-trigger{position:absolute;right:6px;top:13px}.conversation-markers{display:inline-flex;gap:8px;align-items:center;color:var(--theme-text-secondary, #7d8e9f)}.conversation-menu{position:fixed;z-index:1200;width:236px;max-height:calc(100dvh - 16px);overflow-y:auto;padding:5px;border-radius:10px;background:var(--theme-surface, white);color:var(--theme-text-primary, #243247);border:1px solid var(--line);box-shadow:0 8px 28px #0003}.trash-dialog-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line)}.inbox-filters{flex-wrap:wrap}.conversation-menu button{display:flex;align-items:center;gap:9px;width:100%;padding:10px 8px;border:0;background:none;text-align:left;border-radius:6px;font-size:12px}.conversation-menu button:hover,.conversation-menu button:focus-visible{background:var(--theme-selected, #edf5f1);outline:none}.chat-header>.conversation-menu-trigger{order:5;flex-shrink:0}.conversation-pane{position:relative;min-height:0}.dialog-scroll-top{position:absolute;right:18px;bottom:16px;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;border:1px solid var(--theme-accent-border, #dce5ec);background:var(--theme-surface, #fff);color:var(--theme-text-secondary, #597386);box-shadow:0 3px 14px #24324720}.dialog-scroll-top:hover{background:var(--theme-selected, #eaf4f0);color:var(--theme-accent-text, #188b75)}.inbox .chat-header{flex-shrink:0;padding:14px 22px}.chat-channel-state{display:inline-flex;align-items:center;gap:5px}.chat-heading .chat-channel-state .dot{width:6px;height:6px;background:#c99449}.chat-heading .chat-channel-state .live{background:#38ae91}.chat-details-toggle{flex-shrink:0}.chat-details-toggle.active{background:var(--theme-selected, #eaf4f0);color:var(--theme-accent-text, #188b75)}.inbox .chat-context{flex-shrink:0;flex-wrap:wrap;padding:9px 22px}.inbox .message-list{padding:10px 22px 18px;overscroll-behavior:contain}.message-composer{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;max-height:60%;padding:0 18px 14px;background:var(--theme-surface, #f9fbfc)}.composer-mode{display:flex;flex-shrink:0;gap:4px;padding:6px 0}.composer-mode>button{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:7px;background:transparent;color:var(--theme-text-secondary, #788797);padding:7px 10px;font-size:12px}.composer-mode>button.active{background:var(--theme-selected, #e6f2ed);color:var(--theme-accent-text, #167d67)}.note .composer-mode>button.active{background:var(--theme-surface-soft, #fff0c4);color:var(--theme-warm-text, #856517)}.composer-box{display:flex;flex-direction:column;min-height:0;background:var(--theme-surface, #fff);border:1px solid var(--theme-accent-border, #dce5ec);border-radius:12px;box-shadow:0 2px 6px #24324704;overflow:hidden}.composer-box:focus-within{border-color:var(--theme-accent-border, #91c2b4)}.note .composer-box{background:var(--theme-surface-soft, #fffdf5);border-color:var(--theme-border, #e6d8a9)}.composer-content{min-height:0;overflow-y:auto;overscroll-behavior:contain}.mail-summary{display:flex;align-items:center;gap:10px;width:100%;min-width:0;border:0;background:var(--theme-surface-soft, #f5f8fa);text-align:left;padding:10px 14px;color:var(--theme-text-secondary, #63758a);font-size:12px}.mail-summary:hover{background:var(--theme-selected, #edf3f6)}.mail-recipient{display:flex;gap:6px;min-width:0;flex:0 1 auto}.mail-recipient>span,.mail-copy-count{flex-shrink:0;white-space:nowrap}.mail-recipient strong{font-weight:500;color:var(--theme-blue-text, #344d65)}.mail-recipient strong,.mail-subject-preview{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mail-subject-preview{margin-left:auto;flex:0 3 auto;color:var(--theme-text-secondary, #8190a0)}.mail-summary svg{flex-shrink:0;margin-left:auto}.mail-summary .expanded{transform:rotate(180deg)}.composer-envelope{display:grid;gap:8px;padding:12px 14px 4px}.composer-envelope label{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:8px;font-size:12px;color:var(--theme-text-secondary, #6a7d90)}.composer-envelope input{width:100%;min-width:0;padding:8px 10px;font-size:13px;border-radius:7px}.message-composer .composer-input{display:block;width:100%;min-height:104px;max-height:min(300px,30dvh);padding:12px 14px;resize:none;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent;color:var(--theme-text-primary, #344458);font-size:14px;line-height:22px}.composer-footer{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px 10px}.composer-footer>div{display:flex;align-items:center;min-width:0;gap:2px}.composer-footer .icon-button{width:34px;height:34px}.composer-footer .composer-hint{color:var(--theme-text-secondary, #8d9cac);font-size:10px;margin-left:8px}.composer-send{flex-shrink:0;min-height:36px;padding:8px 14px;border-radius:8px;font-size:12px;box-shadow:none}.note .composer-send{background:#876b27;border-color:#876b27}.message-composer .reply-preview{padding:8px 14px}.message-composer .draft-files{margin:0;padding:0 14px 8px}.message-composer .draft-files>span{max-width:100%;overflow-wrap:anywhere}.message-composer .draft-files svg,.message-composer .draft-files button{flex-shrink:0}.message-composer .upload-progress{margin:0 14px 8px}@media(max-width:1200px){.composer-footer .composer-hint,.mail-subject-preview{display:none}}@media(max-width:760px){.inbox .chat-header{padding:10px 12px}.inbox .chat-context{padding:8px 12px}.inbox .message-list{padding:8px 12px 12px}.message-composer{padding:0 8px max(8px,env(safe-area-inset-bottom));max-height:62%}.message-composer .composer-input{min-height:88px;font-size:16px}.composer-mode>button{padding:6px 9px}.mail-summary{padding:9px 12px;gap:6px}.composer-envelope input{font-size:16px}}@media(max-height:560px){.message-composer .composer-input{min-height:66px}}.modal-header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.modal>header{padding:16px 20px;gap:12px;flex-shrink:0}.modal>header h2{font-size:17px;min-width:0}.modal:not(.record-modal):not(.woo-status-modal){display:flex;flex-direction:column;overflow:hidden}.modal:not(.record-modal):not(.woo-status-modal)>form{display:flex;flex-direction:column;min-height:0}.modal:not(.record-modal):not(.woo-status-modal)>form>.form-body{overflow-y:auto;min-height:0;overscroll-behavior:contain}.modal>.padded{overflow-y:auto;min-height:0}.modal .form-body{padding:20px;gap:16px}.modal .form-footer{padding:14px 20px;flex-shrink:0;gap:12px;align-items:center}.modal .form-error{flex-shrink:0;margin:0 20px 12px}.form-footer-start{margin-right:auto}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.avatar{overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.avatar-editor{display:flex;align-items:center;gap:16px}.avatar-editor>.avatar{width:72px;height:72px;border-radius:18px;flex-shrink:0;font-size:24px}.avatar-editor>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0}.avatar-editor small{width:100%;font-size:11px;color:var(--theme-text-secondary, #8392a3);line-height:1.5}.profile-password{border-top:1px solid var(--line);padding-top:14px}.profile-password summary{cursor:pointer;font-size:13px;color:var(--theme-text-secondary, #4c6378)}.profile-password .field{margin-top:16px}.department-list>div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0}.department-list small{display:block;color:var(--theme-text-secondary, #8b98a6);font-size:12px;margin-top:5px}.staff-project{display:block;margin:4px 0;font-size:12px}.staff-project small{display:block;color:var(--theme-text-secondary, #8392a3);margin-top:3px}@media(max-width:760px){.sidebar:not(.visible){box-shadow:none}.modal>header{padding:14px 16px}.modal .form-body{padding:16px}.modal .form-footer{padding:12px 16px}.modal-header-actions{gap:4px}.modal-header-actions .button{padding:8px}.modal .form-grid{grid-template-columns:minmax(0,1fr)}}.contact-messengers{display:flex;flex-direction:column;gap:12px}.contact-messengers .related-link{margin:0;padding:10px 12px;gap:10px}.contact-messengers .related-link>span{min-width:0;overflow-wrap:anywhere}.contact-messengers .related-link>span small{display:block;margin-top:3px;color:var(--muted)}.contact-messengers .related-link>small{margin-left:auto;flex-shrink:0}.messenger-option{border:1px solid var(--line);border-radius:10px}.messenger-option summary{padding:12px 14px;cursor:pointer;font-weight:500}.messenger-option .form-body{padding:4px 14px 12px;gap:12px}.messenger-option .form-footer{position:static;padding:10px 14px;border-radius:0 0 10px 10px}.messenger-option .form-grid{gap:12px}.messenger-option .field{margin:0}.messenger-option .button{padding:8px 12px;min-height:36px}.contact-messengers .permission-help{margin:0}@media(max-width:600px){.contact-messengers .related-link>small{display:none}.messenger-option .form-grid{grid-template-columns:1fr}}:root[data-theme=dark]{--theme-surface: #1c2835;--theme-surface-soft: #192430;--theme-surface-raised: #263544;--theme-selected: #203e3b;--theme-blue-surface: #243447;--theme-warm-surface: #3c3327;--theme-text-primary: #e1e9f2;--theme-text-secondary: #a1b2c3;--theme-accent-text: #7bd9be;--theme-warm-text: #e8b694;--theme-blue-text: #99bdec;--theme-border: #344354;--theme-accent-border: #3d7269;--navy: #14202d;--muted: #a1b2c3;--line: #344354;--shadow: 0 8px 30px #0002;background:#141e29;color:#e1e9f2}[data-theme=dark] .main,[data-theme=dark] .app-shell{background:#141e29}[data-theme=dark] .message-bubble.out,[data-theme=dark] .message-row.out .message-bubble{background:#203e3b}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#8396a9}[data-theme=dark] .button.danger,[data-theme=dark] .danger-text,[data-theme=dark] .send-error{color:#f29999!important}[data-theme=dark] .modal-backdrop{background:#060c15b8}[data-theme=dark] .icon-button:hover{background:#2c3d4e}[data-theme=dark] ::selection{background:#2d7469;color:#fff}[data-theme=dark]{scrollbar-color:#526679 #192430}.login-theme-toggle{position:absolute;right:20px;top:20px;z-index:1}
