:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#243047;background:#f5f7fa;font-size:13px;line-height:1.5;font-synthesis:none;--nav:#19263d;--ink:#243047;--muted:#8a94a5;--border:#e7ebf0;--blue:#4b79f5;--green:#3aaf88;--teal:#203f49;--radius:12px;--shadow:0 10px 34px #1b2d4b0b}
*{box-sizing:border-box}body{margin:0;min-width:360px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--blue);text-decoration:none}button{color:inherit}button,input,select,textarea{outline:none}button:focus-visible,a:focus-visible{outline:3px solid #4b79f580;outline-offset:3px}input:focus,select:focus,textarea:focus{border-color:#7c9cff!important;box-shadow:0 0 0 3px #4b79f512}button svg,a svg,.icon svg{width:19px;height:19px;display:block;flex-shrink:0}svg{vertical-align:middle}h1,h2,h3,h4,p{margin:0}h1{font-size:23px;line-height:1.3;letter-spacing:-.7px;font-weight:680}h2{font-size:18px;letter-spacing:-.35px}h3{font-size:15px;font-weight:650}h4{font-size:13px}small{font-size:11px}::selection{background:#dbe7ff}::-webkit-scrollbar{width:5px;height:6px}::-webkit-scrollbar-thumb{background:#cdd5e1;border-radius:10px}::-webkit-scrollbar-track{background:transparent}
.app-shell{display:flex;min-height:100dvh}.sidebar{width:84px;flex:0 0 84px;background:var(--nav);color:#a3adc1;display:flex;flex-direction:column;align-items:center;padding:22px 9px 13px;position:fixed;left:0;top:0;bottom:0;z-index:30}.brand,.logo{display:flex;align-items:center;justify-content:center;color:#fff;width:47px;height:47px;border-radius:14px;background:#555ce0;box-shadow:0 5px 17px #0002;font-size:27px;font-weight:800;letter-spacing:-4px;line-height:1;text-decoration:none;margin:0 auto 25px;padding-right:3px}.brand svg,.logo svg{width:27px;height:30px}.brand small,.logo small{display:none}.sidebar nav{display:flex;flex-direction:column;gap:5px;width:100%}.nav-item{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#9eabc1;border:1px solid transparent;border-radius:11px;background:transparent;width:66px;min-height:65px;padding:9px 2px;font-size:9px;font-weight:550;line-height:1.1;transition:background .15s,color .15s;white-space:nowrap}.nav-item svg{width:22px;height:22px}.nav-item:hover{background:#ffffff09;color:white}.nav-item.active{background:#ffffff12;color:#fff;border-color:#ffffff0a}.nav-item.active:before{content:"";position:absolute;left:-9px;width:3px;height:26px;background:#8199ff;border-radius:0 4px 4px 0}.nav-item .nav-count,.nav-item .badge{position:absolute;right:5px;top:4px;min-width:17px;height:16px;font-size:9px;background:#6082fb;color:#fff;border:2px solid var(--nav);padding:0 3px;border-radius:7px;line-height:12px}.nav-bottom{margin-top:auto;width:100%;display:flex;flex-direction:column;align-items:center;gap:9px;padding-top:18px}.profile-area{display:flex;justify-content:center;align-items:center;position:relative;margin-top:8px}.profile-area .avatar{border:2px solid #ffffff25}.online-dot{width:8px;height:8px;border-radius:50%;background:#54caa4;border:2px solid var(--nav);position:absolute;bottom:0;right:1px}.workspace{min-width:0;flex:1;margin-left:84px}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 28px}.breadcrumbs{display:flex;align-items:center;gap:11px;color:#666d79;font-size:12px;white-space:nowrap}.breadcrumbs strong{color:#465166;font-weight:550}.breadcrumbs .brand-word{font-size:18px;letter-spacing:-.6px;font-weight:800;color:#23314b}.breadcrumbs .brand-word span{font-size:11px;margin-left:5px;font-weight:450;color:#656d7b;letter-spacing:.4px}.breadcrumbs .separator{color:#686b70}.header-actions{display:flex;align-items:center;gap:15px}.global-search{height:34px;display:flex;align-items:center;gap:8px;color:#666c75;font-size:11px;border:1px solid var(--border);border-radius:7px;padding:0 10px;width:218px}.global-search kbd{margin-left:auto;background:#f5f7fa;border:1px solid #e8edf2;border-radius:3px;font-size:9px;padding:0 3px}.global-search input{width:100%;border:none;background:none;min-width:0;padding:0;box-shadow:none!important}.header-divider{width:1px;height:26px;background:var(--border)}.user-info{display:flex;align-items:center;gap:10px}.user-info strong{font-size:12px;display:block;font-weight:600}.user-info small{display:block;color:var(--muted);font-size:10px}.role-selector{border:0;background:transparent;color:#616d7e;font-size:10px;max-width:145px;cursor:pointer;padding:2px 15px 2px 0}.demo-bar{height:28px;background:#f0f4ff;border-bottom:1px solid #e5ebfd;color:#586c98;font-size:10px;display:flex;align-items:center;justify-content:center;gap:7px;letter-spacing:.1px}.demo-bar strong{font-weight:650;color:#516c9f}.demo-bar .dot{height:5px;width:5px;background:#6f90e9;border-radius:50%}.demo-bar a{margin-left:6px;text-decoration:underline;text-underline-offset:2px}.subbar{height:68px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:white;border-bottom:1px solid var(--border)}.page-heading{display:flex;align-items:center;gap:12px}.page-heading h1{font-size:21px}.page-heading .count{font-size:12px;color:#666c76;font-weight:500;padding-top:3px}.page-heading small{display:block;font-size:11px;color:#656d7a;margin-top:2px}.subbar-actions,.view-toolbar,.filter-row,.button-row{display:flex;align-items:center;gap:9px}.view-toolbar{justify-content:space-between;margin-bottom:23px;flex-wrap:wrap}.view-toolbar h2{font-size:20px}.filter-row{flex-wrap:wrap}.filter-row select{background:#fff;border:1px solid var(--border);height:34px;border-radius:7px;padding:0 30px 0 10px;color:#626d7d;max-width:190px;font-size:11px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:1px solid transparent;background:#fff;border-radius:7px;padding:8px 13px;font-weight:550;font-size:11px;line-height:1.3;white-space:nowrap;transition:background .15s,box-shadow .15s,transform .15s}.btn:hover{background:#f4f7fb}.btn:active{transform:translateY(1px)}.btn svg{width:16px;height:16px}.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 3px 6px #4b79f51a}.btn.primary:hover{background:#3c68e5;border-color:#3c68e5}.btn.secondary{background:#fff;border-color:#dfe5ee;color:#606c84}.btn.secondary:hover{background:#f6f8fc;border-color:#cbd5e6}.btn.ghost{background:transparent;color:#626d81}.btn.ghost:hover{background:#eaf0fb}.btn.danger{background:#fff1f1;border-color:#ffdcdc;color:#b04c56}.btn.small{font-size:10px;min-height:29px;padding:6px 10px}.btn.wide{width:100%}.icon-btn{width:33px;height:33px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:7px;background:transparent;color:#646d79;position:relative;flex-shrink:0}.icon-btn:hover{background:#f0f4fa;color:#526482}.icon-btn.bordered{border-color:var(--border);background:white}.icon-btn svg{width:18px;height:18px}.icon-btn .notification-dot{height:5px;width:5px;position:absolute;background:#6488f4;top:6px;right:7px;border:1px solid white;border-radius:50%}.badge{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;min-height:19px;padding:2px 6px;border-radius:4px;font-size:9px;line-height:1.3;font-weight:600;background:#f1f4f8;color:#636c7b}.badge.green{background:#e7f6ef;color:#30795f}.badge.blue{background:#ebf1ff;color:#516aa8}.badge.orange{background:#fff2df;color:#8c6429}.badge.gray{background:#eff2f6;color:#656d78}.badge.purple{background:#f0eaff;color:#795ea8}.badge.red{background:#ffeded;color:#9e595c}.badge.dot:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:38px;border-radius:50%;background:#e7edf7;color:#616d80;font-size:12px;font-weight:600;position:relative;letter-spacing:-.3px}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.avatar.small{width:28px;height:28px;font-size:9px}.avatar.large{width:51px;height:51px;font-size:16px}.avatar.blue{background:#e0eaff;color:#556d99}.avatar.purple{background:#eee7f6;color:#79648d}.avatar.green{background:#e1eee5;color:#507461}.avatar.orange{background:#f5e8db;color:#816750}.avatar.pink{background:#f5e4e9;color:#886270}.avatar.teal{background:#ddedef;color:#517274}.avatar.navy{background:#314767;color:#bac9e1}.avatar-stack{display:flex;padding-left:6px}.avatar-stack .avatar{margin-left:-6px;border:2px solid white}.channel-mini{position:absolute;right:-3px;bottom:-2px;border:2px solid #fff;border-radius:50%;height:16px;width:16px;display:flex;align-items:center;justify-content:center;background:#fff;font-size:8px;font-weight:700;color:#fff}.channel-mini svg{width:10px;height:10px}.channel-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;color:white;font-size:13px;font-weight:650;flex-shrink:0}.channel-icon svg{width:16px;height:16px}.instagram{background:linear-gradient(35deg,#f4a24b,#e257a8 52%,#9e6ee9)}.whatsapp{background:#52bd8c}.telegram{background:#57a6d9}.viber{background:#9983d8}.email{background:#7995c6}.zadarma,.phone{background:#78ad98}.threads{background:#30353c}.channel-mini.instagram{background:#e475af}.channel-mini.email{background:#7995c6}.channel-mini.telegram{background:#57a6d9}.channel-mini.whatsapp{background:#52bd8c}.channel-mini.viber{background:#9983d8}.channel-mini.threads{background:#30353c}.muted{color:var(--muted)}.text-small{font-size:11px}.text-blue{color:var(--blue)}.text-green{color:#28795e}.text-danger{color:#9b5a5e}.nowrap{white-space:nowrap}.spacer{flex:1}.hidden{display:none!important}.loading{height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;color:#646d7c}.loading b{font-size:30px;letter-spacing:-1px;color:#24324e}.loading b span{font-size:16px;font-weight:400;letter-spacing:1px;margin-left:9px;color:#616d81}.loading p{font-size:12px}.segmented{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #e6ebf3;background:#f5f7fa;border-radius:8px}.segmented button{display:flex;align-items:center;justify-content:center;gap:6px;border:0;background:transparent;border-radius:5px;padding:6px 10px;font-size:10px;font-weight:550;color:#646d7a}.segmented button svg{width:14px;height:14px}.segmented button.active{background:#fff;box-shadow:0 1px 4px #22334e0d;color:#4f69ad}.search{position:relative;display:flex;align-items:center;color:#666d77}.search>svg{width:15px;height:15px;position:absolute;left:10px}.search input,.search-input{height:33px;width:100%;border:1px solid #e7ebf1;border-radius:7px;background:#f8fafc;padding:0 10px;font-size:11px;color:#606c84}.search input{padding-left:32px}.search input::placeholder,.search-input::placeholder{color:#666d77}

.inbox-grid{display:grid;grid-template-columns:300px 320px minmax(350px,1fr);height:calc(100dvh - 172px);min-height:480px;overflow:hidden;background:#fff}.conversation-list{border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0;overflow:hidden;background:#fff}.list-toolbar{padding:16px 17px 13px;display:flex;flex-direction:column;gap:12px;flex-shrink:0;border-bottom:1px solid var(--border)}.list-toolbar .toolbar-row{display:flex;align-items:center;justify-content:space-between;gap:7px}.list-toolbar .list-title{font-size:11px;font-weight:600;color:#58687f}.list-toolbar .list-count{color:#666c74;font-size:10px}.list-toolbar .list-tabs{display:flex;gap:13px;align-items:center;font-size:10px;color:#656d77}.list-toolbar .list-tabs button{padding:0 0 2px;border:0;background:none;color:inherit;font-size:10px}.list-toolbar .list-tabs button.active{color:var(--blue);font-weight:600}.conversations{overflow-y:auto;flex:1;min-height:0}.conversation{position:relative;border:0;border-bottom:1px solid #edf0f5;background:#fff;width:100%;padding:17px 14px 17px 17px;display:flex;gap:11px;text-align:left;transition:background .15s;min-height:99px}.conversation:hover{background:#f8faff}.conversation.selected{background:#edf3ff}.conversation.selected:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#5d85ee}.conversation .avatar{width:36px;height:36px;margin-top:2px}.conversation-content{min-width:0;flex:1}.conversation-top,.conversation-meta{display:flex;align-items:center;justify-content:space-between;gap:7px}.conversation-title{font-size:11px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:165px;line-height:1.5;color:#41516a}.conversation-time{font-size:9px;color:#666d77;white-space:nowrap;flex-shrink:0}.conversation-subject{font-size:10px;color:#656d7b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-preview{font-size:10px;color:#646c79;margin-top:7px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.6}.conversation-preview strong{font-weight:500;color:#616d81}.conversation .unread{font-size:8px;line-height:16px;min-width:16px;height:16px;border-radius:5px;background:#6287f5;color:#fff;text-align:center;padding:0 4px;flex-shrink:0;margin-left:6px}.conversation-meta .badge{font-size:8px;min-height:15px;padding:1px 4px;margin-top:5px}.conversation-bottom{display:flex;align-items:center;justify-content:space-between;gap:4px}.list-footer{padding:11px 17px;border-top:1px solid var(--border);font-size:9px;color:#666c74;display:flex;justify-content:space-between;flex-shrink:0}.deal-panel{min-width:0;border-right:1px solid var(--border);overflow:auto;background:white}.deal-hero{background:var(--teal);color:white;padding:23px 22px 0;min-height:171px}.deal-hero .deal-id{font-size:9px;letter-spacing:.6px;color:#8daab3;text-transform:uppercase}.deal-hero .deal-title{font-size:18px;font-weight:600;line-height:1.45;letter-spacing:-.3px;margin:7px 0 16px}.deal-hero .hero-top{display:flex;justify-content:space-between;align-items:center}.deal-hero .icon-btn{color:#8fa8af;width:23px;height:22px}.deal-hero .icon-btn:hover{background:#ffffff0e}.deal-stage-label{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;color:#bdd0d5}.deal-stage-label strong{font-weight:550;color:#d4e1e5}.stage-track{display:flex;gap:3px;margin:7px 0 16px;height:3px;background:#ffffff0b;border-radius:10px;overflow:hidden}.stage-track span{flex:1;background:#ffffff1a}.stage-track span.done{background:#6fb6c3}.stage-track span.active{background:#9edbc2}.tabs{display:flex;gap:20px;border-bottom:1px solid var(--border)}.tabs button{padding:12px 0;border:0;background:none;font-size:10px;color:#626d79;white-space:nowrap;position:relative;font-weight:550}.tabs button.active{color:var(--blue)}.tabs button.active:after{content:"";height:2px;background:var(--blue);position:absolute;left:0;right:0;bottom:-1px}.deal-hero .tabs{border-color:#ffffff14;gap:20px}.deal-hero .tabs button{color:#8ba7b1;padding:10px 0 13px}.deal-hero .tabs button.active{color:#fff}.deal-hero .tabs button.active:after{background:#94c1ce}.deal-fields{padding:21px 22px 15px}.field{display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:10px;min-height:38px;font-size:11px}.field>label,.field>.field-label{color:#666d77;line-height:1.4;font-size:10px}.field input,.field select,.field .field-value{width:100%;background:transparent;border:1px solid transparent;padding:5px 4px;margin-left:-4px;border-radius:4px;color:#5d6d83;font-size:11px;min-width:0}.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg width='8' height='5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 3 3 3-3' fill='none' stroke='%2396a3b5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center;padding-right:20px}.field input:hover,.field select:hover{border-color:#e8edf4;background-color:#fbfcfe}.field .avatar{width:22px;height:22px;font-size:8px;margin-right:5px}.field .person-value{display:flex;align-items:center;gap:4px;color:#5d6d83}.field .field-value.money{font-size:13px;font-weight:650;color:#3f546b}.deal-section{padding:17px 22px;border-top:1px solid var(--border)}.deal-section h3{font-size:10px;font-weight:650;color:#606d80;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:5px}.deal-section h3 svg{width:14px;height:14px;color:#666d76}.deal-section .tags{display:flex;flex-wrap:wrap;gap:5px}.tag{display:inline-flex;align-items:center;gap:5px;background:#f3f6fa;border:1px solid #e9eef5;border-radius:4px;color:#616d7d;font-size:9px;padding:3px 6px}.tag.green{background:#edf7f2;border-color:#e1f0e7;color:#4f7361}.property-card{background:#f8fafc;border:1px solid #e9edf3;border-radius:8px;padding:12px;display:flex;align-items:flex-start;gap:10px}.property-card .property-icon{background:#edf2fc;border-radius:7px;color:#5f6d84;width:33px;height:35px;display:flex;align-items:center;justify-content:center}.property-card strong{font-size:10px;font-weight:600;color:#5d6d83}.property-card p{font-size:9px;color:#666d79;margin-top:3px}.property-card small{display:block;font-size:9px;color:#646d7c;margin-top:4px}.property-card .property-price{font-weight:600;color:#536e94;font-size:10px;margin-top:8px}.checklist{display:flex;flex-direction:column;gap:9px}.checklist label{display:flex;align-items:center;gap:8px;font-size:10px;color:#636d7a}.checklist input{width:13px;height:13px;accent-color:#6489ea;margin:0}.deal-note{font-size:10px;line-height:1.7;color:#656d79}.deal-section .mini-row{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#656d79;margin:8px 0}.chat-panel{min-width:0;display:flex;flex-direction:column;min-height:0;background:#f5f7fa;position:relative}.chat-header{height:73px;border-bottom:1px solid var(--border);background:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 23px;flex-shrink:0}.chat-header .chat-person{display:flex;align-items:center;gap:10px;min-width:0}.chat-header strong{display:block;font-size:12px;font-weight:650;color:#45556d}.chat-header small{font-size:9px;color:#656c76;display:flex;align-items:center;gap:5px;margin-top:2px}.chat-header small:before{content:"";width:4px;height:4px;border-radius:50%;background:#72b994}.chat-actions{display:flex;gap:4px}.chat-header .avatar{width:33px;height:33px;font-size:10px}.chat-header .icon-btn{height:29px;width:29px}.chat-stream{flex:1;min-height:0;overflow-y:auto;padding:20px 27px 18px;display:flex;flex-direction:column;gap:16px;background-image:radial-gradient(#d5ddea30 .7px,transparent .7px);background-size:15px 15px}.chat-day{display:flex;align-items:center;gap:13px;justify-content:center;font-size:9px;color:#676d75;margin:4px 0}.chat-day:before,.chat-day:after{content:"";height:1px;background:#e8edf3;flex:1;max-width:78px}.system-event{align-self:center;font-size:9px;color:#656d78;display:flex;align-items:center;gap:6px;margin:0 0 3px;text-align:center}.system-event svg{width:12px;height:12px}.message{display:flex;align-items:flex-end;gap:8px;max-width:90%;align-self:flex-start;min-width:0}.message>.avatar{height:24px;width:24px;font-size:8px;margin-bottom:17px}.message-body{min-width:0}.message .bubble{background:white;border:1px solid #e9edf2;border-radius:11px 11px 11px 2px;padding:11px 13px;color:#616d7d;font-size:11px;line-height:1.65;box-shadow:0 2px 3px #18314c02;overflow-wrap:anywhere}.message .bubble p+p{margin-top:8px}.message.out{align-self:flex-end;justify-content:flex-end;flex-direction:row-reverse;max-width:86%}.message.out .bubble{background:#e5edff;color:#576c91;border-color:#dfe8fc;border-radius:11px 11px 2px 11px}.message.note{max-width:100%;align-self:stretch}.message.note .bubble{background:#fff8e9;color:#796b4f;border-color:#f1e8d6;border-radius:7px;font-size:10px}.message.note .message-meta{color:#736b5a}.message-meta{display:flex;align-items:center;gap:5px;font-size:8px;color:#666d76;margin-top:5px;padding:0 2px;line-height:1.4}.message.out .message-meta{justify-content:flex-end}.message-meta svg{height:10px;width:10px;color:#5a6d91}.message-author{font-size:9px;font-weight:550;color:#646d7a;margin-bottom:4px}.message .attachment{display:flex;align-items:center;gap:9px;background:#ffffff77;border:1px solid #d8e3f6;border-radius:6px;padding:9px 11px;margin-top:8px;min-width:180px}.attachment strong{display:block;font-size:10px;font-weight:550}.attachment small{display:block;font-size:8px;margin-top:2px;color:#5f6c81}.attachment svg{width:23px;height:23px;color:#5a6c90}.chat-footer{padding:0 23px 18px;background:linear-gradient(0deg,#f5f7fa 90%,#f5f7fa00)}.task-strip{display:flex;align-items:center;gap:10px;border:1px solid #e5eaf2;background:#fff;border-left:3px solid #f1bb6e;border-radius:7px;padding:11px 12px;margin-bottom:10px;box-shadow:0 2px 6px #23425e03}.task-strip>.icon{color:#806847}.task-strip>.icon svg{width:19px;height:19px}.task-strip .task-info{flex:1;min-width:0}.task-strip strong{font-size:10px;font-weight:550;color:#626c7e}.task-strip small{display:block;color:#666d76;font-size:9px;margin-top:1px}.task-strip .btn{font-size:9px;min-height:25px;padding:4px 7px}.task-strip .task-date{font-size:9px;color:#7e694a}.composer{border:1px solid #e0e6ef;border-radius:9px;background:#fff;box-shadow:0 3px 10px #293d5505;overflow:hidden}.composer-head{display:flex;align-items:center;justify-content:space-between;padding:11px 13px 0;color:#656d78;font-size:9px}.composer-head strong{color:#5a6c90;font-weight:550}.composer textarea{border:0;width:100%;resize:none;padding:10px 13px;color:#5d6d85;min-height:71px;font-size:11px;background:none;box-shadow:none!important;display:block}.composer textarea::placeholder{color:#676c73}.compose-toolbar{display:flex;align-items:center;justify-content:space-between;padding:4px 10px 10px;gap:10px}.compose-tools{display:flex;align-items:center;gap:2px}.compose-tools .icon-btn{width:25px;height:25px}.compose-tools .icon-btn svg{width:15px;height:15px}.compose-toolbar .btn{height:29px;min-height:29px;padding:5px 10px;font-size:9px}.compose-toolbar .hint{font-size:8px;color:#676c73;margin-left:3px}.chat-bottom-note{text-align:center;font-size:8px;color:#676c73;margin-top:8px}.mobile-back{display:none}.show-details-button{display:none}

.content{padding:28px;max-width:1700px;margin:auto}.content.full{max-width:none}.section-intro{margin-bottom:25px}.section-intro p{font-size:12px;color:#656d78;margin-top:5px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:26px}.stat-card{padding:20px 21px;background:#fff;border:1px solid var(--border);border-radius:11px;box-shadow:0 3px 9px #25385502;position:relative;overflow:hidden}.stat-card .stat-label{color:#636c78;font-size:10px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.stat-card .stat-value{font-size:28px;font-weight:650;letter-spacing:-.9px;color:#3c4f68;margin-top:8px;line-height:1.3}.stat-card .stat-change{font-size:9px;color:#636d7b;margin-top:8px;display:flex;gap:6px;align-items:center}.stat-card .stat-change strong{font-weight:550;color:#437564}.stat-card .stat-icon{position:absolute;right:18px;top:22px;color:#626c7d;background:#f3f6fc;border-radius:8px;padding:8px}.stat-card .stat-icon svg{width:17px;height:17px}.card{background:#fff;border:1px solid var(--border);border-radius:11px;box-shadow:0 3px 9px #25385502;padding:22px}.card h3{font-size:12px;color:#5d6d85}.card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.card-header p{font-size:10px;color:#656d78;margin-top:4px}.card-header .btn{font-size:9px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:20px}.dashboard-grid .card{min-width:0}.chart{height:220px;display:flex;align-items:flex-end;gap:23px;border-bottom:1px solid #e8edf4;padding:15px 16px 24px;position:relative}.chart-bar{flex:1;max-width:65px;min-width:12px;background:#87a4e5;border-radius:5px 5px 0 0;position:relative}.chart-bar:nth-child(2n){background:#bfd0f2}.chart-bar small{position:absolute;bottom:-22px;left:50%;transform:translateX(-50%);font-size:8px;color:#646d7a;white-space:nowrap}.chart-bar strong{position:absolute;top:-19px;left:50%;transform:translateX(-50%);font-size:9px;font-weight:550;color:#5e6d81}.chart-legend{display:flex;justify-content:center;gap:19px;color:#656d78;font-size:9px;margin-top:16px}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{height:6px;width:6px;background:#87a4e5;border-radius:2px}.activity-list{display:flex;flex-direction:column;gap:18px}.activity{display:flex;gap:10px;align-items:flex-start}.activity .activity-icon{width:27px;height:27px;border-radius:7px;background:#eff4fc;color:#5e6c85;display:flex;align-items:center;justify-content:center;flex-shrink:0}.activity-icon svg{width:14px;height:14px}.activity p{font-size:10px;color:#636d7b;line-height:1.7}.activity p strong{font-weight:550;color:#5d6c82}.activity small{font-size:8px;color:#676d75}.kanban{display:flex;gap:17px;overflow-x:auto;align-items:flex-start;padding:24px 28px 35px;min-height:calc(100dvh - 172px)}.kanban-column{min-width:250px;flex:1;max-width:310px}.kanban-heading{padding:0 2px 13px;border-bottom:3px solid #9ab5ed;margin-bottom:15px;display:flex;align-items:center;justify-content:space-between;gap:8px}.kanban-heading h3{font-size:11px;font-weight:600;color:#5f6d82;display:flex;gap:7px;align-items:center}.kanban-heading small{font-size:10px;color:#666c76;font-weight:400}.kanban-heading .stage-total{font-size:9px;color:#636d7a;margin-top:4px}.kanban-heading .icon-btn{width:22px;height:22px}.kanban-column:nth-child(2) .kanban-heading{border-color:#ac9cda}.kanban-column:nth-child(3) .kanban-heading{border-color:#e4c38b}.kanban-column:nth-child(4) .kanban-heading{border-color:#8dbfb1}.kanban-column:nth-child(5) .kanban-heading{border-color:#9ac6b2}.deal-card{background:#fff;border:1px solid #e3e9f3;border-radius:9px;padding:15px;margin-bottom:11px;cursor:pointer;box-shadow:0 3px 6px #23425e03;transition:box-shadow .15s,border-color .15s,transform .15s}.deal-card:hover{border-color:#b5c9ee;box-shadow:0 6px 17px #476da013;transform:translateY(-1px)}.deal-card[draggable=true]{cursor:grab}.deal-card.dragging{opacity:.45}.kanban-column.drag-over{background:#eef3fc;border-radius:9px}.deal-card .card-top{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:8px}.deal-card .deal-id{font-size:8px;color:#666b75}.deal-card h3{font-size:12px;color:#5d6d85;line-height:1.5;margin-bottom:4px}.deal-card .deal-client{font-size:10px;color:#656d79;margin-top:5px}.deal-card .deal-price{font-size:13px;font-weight:600;color:#5d6d84;margin:11px 0}.deal-card .deal-foot{border-top:1px solid #eff2f7;margin-top:12px;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:8px}.deal-card .deal-foot .avatar{width:23px;height:23px;font-size:8px}.deal-card .deal-task{font-size:9px;color:#766a51;display:flex;align-items:center;gap:5px}.deal-card .deal-task svg{height:12px;width:12px}.deal-card .tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}.kanban-add{width:100%;background:transparent;border:1px dashed #d8e0ec;border-radius:7px;padding:9px;font-size:10px;color:#646d7a}.kanban-add:hover{border-color:#9ab5ed;color:#566c97;background:#ffffff66}.table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--border);border-radius:10px}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:11px}th{text-align:left;font-size:9px;letter-spacing:.2px;font-weight:550;color:#656d78;background:#fafbfd;padding:14px 18px;border-bottom:1px solid var(--border)}td{padding:16px 18px;border-bottom:1px solid #edf1f6;color:#616d80;font-size:10px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcff}td strong{font-weight:550;color:#5a6d88}td .avatar{margin-right:8px}td .cell-person{display:flex;align-items:center;gap:9px}td .cell-person .avatar{margin:0}td .cell-person small{display:block;font-size:9px;color:#686d75;margin-top:2px}td .cell-person strong{font-size:11px}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:13px 18px;border-top:1px solid var(--border);color:#676d76;font-size:9px}.team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.person-card{background:white;border:1px solid var(--border);border-radius:11px;padding:22px}.person-card-header{display:flex;align-items:center;gap:12px;margin-bottom:20px}.person-card h3{font-size:13px;color:#5a6e8a}.person-card p{font-size:10px;color:#646d79;margin-top:2px}.person-card .person-role{margin-top:5px}.person-card .person-stats{display:grid;grid-template-columns:1fr 1fr;gap:15px;border-top:1px solid var(--border);padding-top:17px;margin-top:17px}.person-card .person-stats small{font-size:9px;color:#656c76;display:block}.person-card .person-stats strong{font-size:18px;color:#5c6d85;font-weight:550;display:block;margin-top:4px}.person-card .person-foot{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#646c77;margin-top:16px}.person-card .city-label{display:flex;align-items:center;gap:5px;color:#646c77}.person-card .city-label svg{width:12px;height:12px}.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.integration-card{background:white;border:1px solid var(--border);border-radius:11px;padding:21px;display:flex;flex-direction:column;align-items:flex-start;min-height:220px}.integration-card .integration-head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:17px}.integration-card .channel-icon{width:37px;height:37px;border-radius:11px;font-size:18px}.integration-card .channel-icon svg{width:22px;height:22px}.integration-card h3{font-size:13px;color:#5a6e89}.integration-card p{color:#656d79;font-size:10px;line-height:1.7;margin:7px 0 18px;max-width:350px}.integration-card .integration-footer{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;margin-top:auto}.integration-card .integration-footer .btn{font-size:10px;min-height:30px}.integration-card .integration-footer small{font-size:9px;color:#666d76}.integration-notice{display:flex;gap:10px;align-items:flex-start;background:#eef3fd;border:1px solid #e2eafa;border-radius:8px;padding:14px 16px;font-size:10px;color:#5f6c84;line-height:1.7;margin-bottom:22px}.integration-notice svg{height:16px;width:16px;flex-shrink:0;margin-top:2px}.automation-list{display:flex;flex-direction:column;gap:15px}.automation-card{display:flex;align-items:center;gap:18px;padding:21px;background:#fff;border:1px solid var(--border);border-radius:10px}.automation-card .automation-icon{width:39px;height:39px;border-radius:10px;background:#f0edfb;color:#72648e;display:flex;align-items:center;justify-content:center;flex-shrink:0}.automation-card .automation-icon svg{height:20px;width:20px}.automation-card .automation-content{flex:1}.automation-card h3{font-size:12px;color:#5b6d87}.automation-card p{font-size:10px;color:#656d7a;margin-top:4px}.automation-card .automation-meta{display:flex;gap:8px;align-items:center;margin-top:9px;font-size:9px;color:#666d77}.automation-card .automation-flow{display:flex;gap:7px;align-items:center;margin:10px 0 0;font-size:9px;color:#606d83}.automation-card .automation-flow span{background:#f5f8fd;padding:4px 8px;border-radius:4px}.toggle{height:20px;width:35px;border:0;background:#dce3ee;border-radius:12px;position:relative;cursor:pointer;display:inline-block;flex-shrink:0;padding:0}.toggle:after{content:"";height:14px;width:14px;border-radius:50%;background:white;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0001;transition:left .15s}.toggle.active,.toggle[aria-checked=true]{background:#78a1e9}.toggle.active:after,.toggle[aria-checked=true]:after{left:18px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#fff}.calendar-weekday{font-size:9px;font-weight:550;color:#656d7a;padding:13px;background:#fafbfd;border-bottom:1px solid var(--border);text-align:right}.calendar-day{min-height:128px;padding:10px 7px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);font-size:10px;color:#636c79}.calendar-day:nth-child(7n){border-right:0}.calendar-day .day-number{display:flex;justify-content:flex-end;margin-bottom:9px}.calendar-day .day-number span{width:23px;height:23px;display:flex;align-items:center;justify-content:center;border-radius:50%}.calendar-day.today{background:#fbfcff}.calendar-day.today .day-number span{background:#7b9de4;color:#fff}.calendar-day.other{color:#696d72;background:#fbfcfd}.calendar-event{display:block;text-align:left;width:100%;background:#edf2fc;border:0;border-left:2px solid #a5bae8;border-radius:4px;padding:6px 7px;font-size:8px;color:#5d6d89;line-height:1.5;margin-bottom:4px;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.calendar-event.green{background:#edf7f3;border-color:#a5cdbd;color:#587267}.calendar-event.orange{background:#fdf5e8;border-color:#dfc28f;color:#766a53}.calendar-event strong{font-weight:550}.task-list{display:flex;flex-direction:column;gap:11px}.task-row{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid var(--border);padding:15px 18px;border-radius:9px}.task-row input[type=checkbox]{width:17px;height:17px;accent-color:var(--blue);margin:0}.task-row .task-main{flex:1}.task-row strong{display:block;font-size:11px;color:#5c6d86;font-weight:550}.task-row small{font-size:9px;color:#646c77;display:block;margin-top:2px}.task-row.done strong{text-decoration:line-through;color:#666d75}.task-row .task-time{font-size:10px;color:#606c7e}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px}.permission-table td{font-size:10px}.permission-table td:last-child{white-space:normal}.empty-state{padding:60px 25px;text-align:center;color:#646d7b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;flex:1}.empty-state>.icon{width:57px;height:57px;border-radius:16px;background:#eff3fa;display:flex;align-items:center;justify-content:center;color:#646d7b}.empty-state .icon svg{width:25px;height:25px}.empty-state h3{font-size:13px;font-weight:550;color:#626d7e}.empty-state p{font-size:11px;max-width:310px;color:#676d76;line-height:1.7}.empty-state .btn{margin-top:4px}

.modal-backdrop,.drawer-backdrop{position:fixed;inset:0;background:#13213a65;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:30px;z-index:100;animation:fade-in .15s ease-out}.modal{background:#fff;max-width:600px;width:100%;border-radius:15px;box-shadow:0 25px 90px #17264030;overflow:hidden;max-height:calc(100dvh - 60px);display:flex;flex-direction:column;animation:modal-in .16s ease-out}.modal.wide{max-width:790px}.modal-header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:22px 25px;border-bottom:1px solid var(--border)}.modal-header h2{font-size:17px;color:#526986;letter-spacing:-.3px}.modal-header p{font-size:10px;color:#656c77;margin-top:3px}.modal-body{padding:23px 25px;overflow-y:auto}.modal-footer{padding:16px 25px;display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid var(--border);background:#fcfdff}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.form-field{display:flex;flex-direction:column;gap:7px;min-width:0}.form-field.full,.form-field.span-2{grid-column:1/-1}.form-field label{font-size:10px;font-weight:550;color:#616c7d}.form-field label .required{color:#856366;margin-left:3px}.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #e0e7f1;background:#fcfdff;color:#5a6d87;border-radius:7px;padding:10px 11px;font-size:11px;min-height:38px}.form-field textarea{resize:vertical;min-height:90px}.form-field small{font-size:9px;color:#656d77;line-height:1.65}.form-field input::placeholder,.form-field textarea::placeholder{color:#676c74}.form-error{color:#935e62;background:#fff4f4;border:1px solid #f7dddd;font-size:10px;border-radius:6px;padding:10px 12px;margin-bottom:16px}.form-hint{background:#f4f7fd;border:1px solid #e8eef9;border-radius:7px;padding:12px;font-size:10px;color:#616c7d;line-height:1.7;margin-bottom:20px}.form-checkbox{display:flex;align-items:flex-start;gap:8px;color:#626d7b;font-size:10px;line-height:1.6}.form-checkbox input{width:13px;height:13px;accent-color:var(--blue);margin:2px 0 0}.drawer-backdrop{padding:0;justify-content:flex-end;backdrop-filter:blur(1px)}.drawer{height:100dvh;width:470px;max-width:100%;background:#fff;display:flex;flex-direction:column;box-shadow:-20px 0 80px #13213a26;animation:drawer-in .2s ease-out}.drawer .deal-panel{border:0;flex:1;overflow:auto}.drawer-header{padding:19px 22px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.drawer-header h2{font-size:15px;color:#5c6e87}.drawer-content{padding:23px;overflow-y:auto;flex:1}.drawer .deal-hero{min-height:170px}.toast{position:relative;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e2e9f2;box-shadow:0 12px 35px #1d355d15;border-radius:10px;padding:13px 17px;color:#5c6d85;min-width:260px;max-width:400px;font-size:11px;animation:toast-in .2s ease-out}.toast svg{color:#4c7367;flex-shrink:0;width:17px;height:17px}.toast.error svg{color:#8b6063}.toast .icon-btn{width:19px;height:19px;margin-left:auto}.toast .icon-btn svg{width:13px;height:13px;color:#646c76}#toasts{position:fixed;right:25px;bottom:25px;display:flex;flex-direction:column;gap:9px;z-index:200}.auth-page{min-height:100dvh;background:radial-gradient(ellipse at 20% 10%,#edf1ff 0,transparent 50%),#f7f9fc;display:flex;align-items:center;justify-content:center;padding:30px}.auth-card{width:420px;background:#fff;border:1px solid #e4eaf4;border-radius:17px;padding:36px;box-shadow:0 20px 70px #344e7b0b}.auth-card .brand{margin-bottom:20px;width:49px;height:49px}.auth-card h1{text-align:center;font-size:23px;color:#455c7b;letter-spacing:-.6px}.auth-card>p{text-align:center;color:#646c77;font-size:11px;margin:8px 0 28px;line-height:1.7}.auth-card .form-field{margin-bottom:17px}.auth-card .btn.primary{margin-top:7px;height:40px}.auth-note{font-size:9px;text-align:center;color:#656c76;line-height:1.8;margin-top:23px}.auth-note strong{color:#606c7e;font-weight:550}.auth-demo-accounts{background:#f7f9fd;border:1px solid #e8edf7;border-radius:8px;padding:12px;margin-top:19px;font-size:9px;color:#646d7a}.auth-demo-accounts button{display:block;border:0;background:transparent;padding:5px 0;color:#5e6d82;font-size:9px;text-align:left}.auth-demo-accounts button:hover{color:#4e6ca7}.auth-card .brand-word{text-align:center;font-size:24px;font-weight:800;letter-spacing:-1px;color:#415573;margin-bottom:22px}.auth-card .brand-word span{font-size:13px;font-weight:400;letter-spacing:1px;color:#636d7d;margin-left:5px}.auth-card .divider{text-align:center;color:#676c73;font-size:9px;margin:18px 0}.security-label{display:flex;align-items:center;justify-content:center;gap:5px;color:#656c75;font-size:9px;margin-top:20px}.security-label svg{width:12px;height:12px}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes modal-in{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}@keyframes drawer-in{from{opacity:.5;transform:translateX(25px)}to{opacity:1;transform:none}}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

@media(min-width:1600px){.inbox-grid{grid-template-columns:330px 345px minmax(400px,1fr)}.conversation{padding-top:19px;padding-bottom:19px}.conversation-title{max-width:190px;font-size:12px}.conversation-subject,.conversation-preview{font-size:11px}.chat-stream{padding-left:40px;padding-right:40px;gap:21px}.message .bubble{font-size:12px;padding:13px 16px}.chat-footer{padding-left:40px;padding-right:40px}.deal-fields{padding-top:23px}.field{min-height:41px}.deal-section{padding-top:20px;padding-bottom:20px}.global-search{width:260px}.content{padding:32px}}
@media(max-width:1250px){.topbar,.subbar{padding-left:22px;padding-right:22px}.global-search{width:170px}.header-actions{gap:10px}.inbox-grid{grid-template-columns:270px 290px minmax(320px,1fr);overflow-x:auto}.deal-hero,.deal-fields,.deal-section{padding-left:19px;padding-right:19px}.field{grid-template-columns:90px minmax(0,1fr);gap:7px}.chat-header{padding-left:18px;padding-right:18px}.chat-stream{padding-left:19px;padding-right:19px}.chat-footer{padding-left:18px;padding-right:18px}.conversation{padding-left:14px;padding-right:12px;gap:9px}.conversation-title{max-width:145px}.message{max-width:94%}.message.out{max-width:92%}.team-grid,.integration-grid{gap:14px}.content{padding:24px}.stats-grid{gap:14px}.stat-card{padding:18px}.dashboard-grid{gap:15px}.integration-card{padding:18px}.chart{gap:15px}}
@media(max-width:1100px){.inbox-grid{grid-template-columns:260px 285px minmax(320px,1fr)}.global-search{display:none}.topbar{height:70px}.subbar{height:64px}.inbox-grid{height:calc(100dvh - 162px)}.page-heading h1{font-size:19px}.header-actions{gap:9px}.team-grid,.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dashboard-grid{grid-template-columns:1fr}.stat-card .stat-value{font-size:26px}.calendar-day{min-height:110px;padding-left:4px;padding-right:4px}.calendar-event{font-size:7px;padding-left:4px;padding-right:4px}.kanban{padding-left:22px;padding-right:22px}.automation-card{gap:14px}.role-selector{max-width:130px}.user-info>div:not(.avatar){max-width:140px}.chat-header .chat-actions .icon-btn:nth-child(2){display:none}}
@media(max-width:800px){.sidebar{width:72px;flex-basis:72px;padding-left:6px;padding-right:6px}.workspace{margin-left:72px}.nav-item{width:60px;font-size:8px}.nav-item.active:before{left:-6px}.brand,.logo{width:43px;height:43px;font-size:25px;border-radius:12px}.topbar{padding:0 18px;height:64px}.breadcrumbs{font-size:10px;gap:8px}.breadcrumbs .brand-word{font-size:17px}.header-actions{gap:5px}.header-divider{display:none}.user-info{gap:7px}.user-info strong{font-size:10px}.user-info .avatar{width:30px;height:30px;font-size:10px}.role-selector{font-size:9px;max-width:115px}.subbar{padding:0 18px;height:63px;gap:10px}.page-heading h1{font-size:18px}.page-heading .count{font-size:10px}.subbar-actions{gap:6px}.subbar-actions .btn{font-size:9px;min-height:31px;padding:6px 9px}.subbar-actions .btn svg{height:13px;width:13px}.subbar-actions>.segmented{display:none}.demo-bar{height:26px;font-size:8px}.inbox-grid{grid-template-columns:250px minmax(290px,1fr);height:calc(100dvh - 153px);min-height:420px}.inbox-grid>.deal-panel{display:none}.inbox-grid.show-details{grid-template-columns:250px minmax(290px,1fr)}.inbox-grid.show-details>.deal-panel{display:block;grid-column:2;grid-row:1;z-index:3}.inbox-grid.show-details>.chat-panel{display:none}.show-details-button{display:inline-flex}.chat-header{height:65px;padding-left:14px;padding-right:14px}.chat-header strong{font-size:11px}.chat-header small{font-size:8px}.chat-header .avatar{width:29px;height:29px;font-size:9px}.chat-header .chat-actions{gap:0}.chat-header .icon-btn{width:25px;height:27px}.chat-header .chat-actions .icon-btn svg{width:15px;height:15px}.chat-stream{padding:17px 14px;gap:15px}.message>.avatar{display:none}.message .bubble{font-size:10px}.chat-footer{padding:0 12px 12px}.task-strip{padding:9px;gap:7px}.task-strip .btn{display:none}.task-strip small{font-size:8px}.task-strip strong{font-size:9px}.composer-head{font-size:8px}.compose-toolbar .hint{display:none}.content{padding:21px 18px}.stats-grid{gap:12px;margin-bottom:20px}.stat-card{padding:16px}.stat-card .stat-label{font-size:9px}.stat-card .stat-value{font-size:25px}.stat-card .stat-icon{right:13px;top:15px;padding:6px}.stat-card .stat-icon svg{width:14px;height:14px}.card{padding:18px}.view-toolbar{gap:13px;margin-bottom:19px}.view-toolbar h2{font-size:18px}.filter-row{gap:7px}.filter-row select{font-size:10px;max-width:150px}.team-grid,.integration-grid{gap:12px}.person-card,.integration-card{padding:18px}.integration-card{min-height:220px}.integration-card p{font-size:9px}.integration-card h3{font-size:12px}.integration-card .badge{font-size:8px}.automation-card{padding:16px;gap:12px}.automation-card .automation-icon{height:32px;width:32px}.automation-card .automation-flow{flex-wrap:wrap;font-size:8px}.automation-card .automation-meta{font-size:8px}.automation-card h3{font-size:11px}.automation-card p{font-size:9px}.automation-card .icon-btn{width:25px}.settings-grid{grid-template-columns:1fr}.calendar{min-width:600px}.calendar-wrap{overflow-x:auto}.calendar-day{min-height:110px}.kanban{padding:20px 18px}.kanban-column{min-width:245px}.form-grid{gap:16px}.modal-backdrop{padding:20px}.modal{max-height:calc(100dvh - 40px)}.modal-header{padding:19px 21px}.modal-body{padding:20px 21px}.modal-footer{padding:15px 21px}.task-row{padding:13px;gap:10px}.task-row strong{font-size:10px}.task-row .task-time{font-size:9px}.task-row .avatar{width:25px;height:25px;font-size:8px}}
@media(max-width:600px){body{min-width:360px}.sidebar{top:auto;bottom:0;right:0;width:100%;height:66px;flex-direction:row;justify-content:center;padding:0 5px;border-top:1px solid #ffffff0c}.sidebar>.brand,.sidebar>.logo{display:none}.sidebar nav{flex-direction:row;justify-content:space-around;gap:0;width:100%;height:100%;align-items:center}.nav-item{height:54px;min-height:0;width:47px;padding:7px 0;border-radius:8px;gap:4px;font-size:7px}.nav-item svg{width:19px;height:19px}.nav-item.active:before{height:2px;width:16px;left:50%;top:-4px;transform:translateX(-50%);border-radius:0 0 4px 4px}.nav-item .nav-count,.nav-item .badge{right:1px;top:1px;min-width:13px;height:13px;font-size:7px;line-height:9px;padding:0 2px}.sidebar .nav-bottom{display:none}.workspace{margin-left:0;padding-bottom:66px}.topbar{height:55px;padding:0 14px;gap:10px}.breadcrumbs{gap:6px;font-size:9px}.breadcrumbs .brand-word{font-size:16px}.breadcrumbs .brand-word span{font-size:9px;margin-left:3px}.breadcrumbs>.separator,.breadcrumbs>strong,.breadcrumbs>span:last-child{display:none}.header-actions{gap:3px}.header-actions>.icon-btn{width:27px;height:29px}.header-actions>.icon-btn svg{height:16px;width:16px}.user-info{gap:7px}.user-info strong{font-size:9px}.user-info .avatar{width:28px;height:28px;font-size:9px}.role-selector{font-size:8px;max-width:100px;padding-right:10px}.demo-bar{height:23px;font-size:7px;gap:4px;padding:0 9px;white-space:nowrap;overflow:hidden}.demo-bar .dot{height:4px;width:4px;flex-shrink:0}.demo-bar a{margin-left:3px}.subbar{height:59px;padding:0 14px;gap:8px}.page-heading{gap:7px}.page-heading h1{font-size:17px}.page-heading .count{font-size:9px}.page-heading small{font-size:8px}.subbar-actions .btn{font-size:8px;min-height:29px;padding:6px 8px;gap:4px}.subbar-actions .btn svg{width:12px;height:12px}.subbar-actions>.icon-btn{width:27px;height:29px}.subbar-actions .optional{display:none}.inbox-grid{display:flex;min-height:0;height:calc(100dvh - 203px);overflow:hidden}.inbox-grid>.conversation-list{width:100%;flex:1;border-right:0}.inbox-grid>.chat-panel{display:none}.inbox-grid>.deal-panel{display:none}.inbox-grid.mobile-chat>.conversation-list{display:none}.inbox-grid.mobile-chat>.chat-panel{display:flex;flex:1;width:100%}.inbox-grid.show-details>.conversation-list{display:none}.inbox-grid.show-details>.deal-panel{display:block;width:100%;flex:1}.inbox-grid.show-details>.chat-panel{display:none}.mobile-back{display:inline-flex;width:23px;margin-left:-4px}.conversation{padding:16px 18px;gap:12px;min-height:94px}.conversation .avatar{height:38px;width:38px;font-size:12px}.conversation-title{font-size:12px;max-width:calc(100vw - 140px)}.conversation-subject,.conversation-preview{font-size:10px}.conversation-time{font-size:9px}.conversation .unread{font-size:8px}.conversation-meta .badge{font-size:8px}.list-toolbar{padding:14px 18px 12px;gap:11px}.list-toolbar .list-title{font-size:11px}.list-toolbar .list-count{font-size:9px}.list-toolbar .list-tabs{font-size:10px}.list-toolbar .list-tabs button{font-size:10px}.list-footer{padding:10px 18px;font-size:9px}.chat-header{height:62px;padding:0 14px}.chat-header .chat-person{gap:8px}.chat-header .avatar{height:29px;width:29px}.chat-header strong{font-size:11px}.chat-header .chat-actions .icon-btn:nth-child(2){display:inline-flex}.chat-stream{padding:16px;gap:14px}.message{max-width:88%}.message.out{max-width:88%}.message .bubble{font-size:11px;padding:10px 12px}.message-meta{font-size:8px}.message>.avatar{display:flex;height:21px;width:21px;font-size:7px;gap:6px}.chat-day,.system-event{font-size:8px}.chat-footer{padding:0 13px 12px}.task-strip{margin-bottom:8px}.task-strip strong{font-size:9px}.task-strip .btn{display:flex;font-size:8px}.composer textarea{min-height:59px;padding-top:8px;font-size:11px}.compose-toolbar{padding-bottom:8px}.composer-head{font-size:8px;padding-top:10px}.chat-bottom-note{display:none}.deal-hero{padding-top:20px}.field{grid-template-columns:130px minmax(0,1fr);min-height:40px;font-size:12px}.field>label{font-size:11px}.field input,.field select,.field .field-value{font-size:12px}.deal-fields{padding:19px 22px}.deal-section{padding:17px 22px}.content{padding:20px 14px}.stats-grid{gap:10px;margin-bottom:17px}.stat-card{padding:14px}.stat-card .stat-label{font-size:8px}.stat-card .stat-value{font-size:23px;margin-top:8px}.stat-card .stat-change{font-size:8px;gap:4px;margin-top:6px}.stat-card .stat-icon{display:none}.card{padding:17px}.card h3{font-size:11px}.card-header{margin-bottom:17px}.dashboard-grid{gap:14px}.chart{height:175px;gap:12px;padding-left:5px;padding-right:5px}.chart-bar small{font-size:7px}.chart-bar strong{font-size:8px}.chart-legend{font-size:8px;gap:12px}.view-toolbar{gap:12px;align-items:flex-start;margin-bottom:17px}.view-toolbar h2{font-size:17px}.filter-row{gap:6px}.filter-row select{height:30px;font-size:9px;max-width:135px;padding-left:8px;padding-right:23px}.filter-row .search{max-width:150px}.filter-row .search input{height:30px;font-size:9px}.filter-row .segmented button{font-size:8px;padding:5px 7px}.filter-row .btn{font-size:9px;min-height:30px;padding:6px 9px}.table-wrap{border-radius:8px}th{font-size:8px;padding:12px 13px}td{font-size:9px;padding:13px}.table-footer{font-size:8px;padding:11px 13px;gap:10px}.team-grid,.integration-grid{grid-template-columns:1fr}.person-card{padding:19px}.person-card-header{margin-bottom:15px}.person-card h3{font-size:13px}.person-card p{font-size:10px}.person-card .person-stats{padding-top:14px;margin-top:14px}.integration-card{padding:19px;min-height:205px}.integration-card p{font-size:10px;max-width:none}.integration-card h3{font-size:13px}.integration-card .badge{font-size:9px}.integration-card .integration-head{margin-bottom:14px}.integration-card .integration-footer small{font-size:9px}.integration-notice{padding:12px;font-size:9px;gap:8px;line-height:1.7}.automation-card{padding:15px;gap:10px;flex-wrap:wrap}.automation-card .automation-icon{height:29px;width:29px;border-radius:8px;align-self:flex-start}.automation-card .automation-icon svg{height:16px;width:16px}.automation-card .automation-content{flex-basis:calc(100% - 70px)}.automation-card .toggle{height:18px;width:32px;margin-left:auto}.automation-card .toggle:after{height:12px;width:12px}.automation-card .toggle.active:after{left:17px}.automation-card .automation-flow{font-size:7px;gap:4px;margin-top:8px}.automation-card .automation-flow span{padding:3px 5px}.automation-card .automation-meta{font-size:7px;gap:5px}.automation-card h3{font-size:11px}.automation-card p{font-size:9px}.automation-card>.icon-btn{display:none}.calendar{min-width:570px}.calendar-weekday{font-size:8px}.calendar-day{min-height:105px}.calendar-event{font-size:7px}.kanban{padding:19px 14px;gap:14px;min-height:calc(100dvh - 203px)}.kanban-column{min-width:260px}.kanban-heading h3{font-size:11px}.deal-card{padding:15px}.task-row{padding:12px 11px;gap:9px;flex-wrap:wrap}.task-row .task-main{min-width:170px}.task-row .task-time{font-size:8px}.task-row .avatar{height:24px;width:24px}.task-row input[type=checkbox]{height:15px;width:15px}.settings-grid{gap:14px}.modal-backdrop{padding:15px}.modal{max-height:calc(100dvh - 30px);border-radius:12px}.modal-header{padding:18px}.modal-header h2{font-size:16px}.modal-header p{font-size:9px}.modal-body{padding:18px}.modal-footer{padding:14px 18px}.modal-footer .btn{font-size:10px}.form-grid{grid-template-columns:1fr;gap:15px}.form-field label{font-size:10px}.form-field input,.form-field select,.form-field textarea{font-size:12px;padding:10px;min-height:40px}.form-field small{font-size:9px}.form-hint{font-size:9px;padding:11px;margin-bottom:16px}.drawer{width:100%;height:calc(100dvh - 66px);align-self:flex-start}.drawer-header{padding:17px 19px}.drawer-header h2{font-size:14px}.drawer-content{padding:19px}.empty-state{padding:45px 22px}.empty-state p{font-size:10px}.auth-page{padding:20px}.auth-card{padding:29px 25px;width:100%;max-width:390px;border-radius:14px}.auth-card h1{font-size:21px}.auth-card>p{font-size:10px;margin-bottom:24px}.auth-card .btn.primary{height:41px}.auth-card .form-field{margin-bottom:16px}.auth-demo-accounts{font-size:9px}.auth-note{font-size:8px}#toasts{right:12px;left:12px;bottom:78px;gap:7px}.toast{max-width:none;min-width:0;width:100%;font-size:10px;padding:12px 14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Application component bindings */
.sidebar .brand{height:61px;width:64px;flex-direction:column;gap:7px;background:none;box-shadow:none;border-radius:0;margin:0 0 21px;padding:0;letter-spacing:0}.brand-mark{height:38px;width:39px;background:#6577eb;border:1px solid #ffffff15;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:28px;letter-spacing:-2px;font-weight:750;color:white;line-height:1;padding-right:3px;box-shadow:0 4px 14px #0000001c;position:relative}.brand-mark>span{position:absolute;right:5px;bottom:2px;font-size:16px;color:#a8b9ff;line-height:1}.brand-caption{font-size:8px!important;letter-spacing:2.6px;font-weight:600;color:#cbd4e4!important;line-height:1}.nav-dot{width:5px;height:5px;background:#8ca4ff;border-radius:50%;position:absolute;right:13px;top:12px}.nav-bottom .avatar{border:1px solid #ffffff1a;background:#ffffff16;color:#c8d6ec;width:29px;height:29px;font-size:10px}.nav-bottom .nav-item{padding:7px 0;gap:6px}.workspace-name{color:#263b5c;font-weight:800;font-size:19px;letter-spacing:-.8px;display:inline-flex;align-items:baseline;gap:5px}.crm-label{color:#656d7a;font-size:10px;font-weight:500;letter-spacing:1px}.breadcrumb-divider{color:#696d73;font-size:17px;font-weight:300;margin:0 5px}.workspace-status{display:flex;align-items:center;gap:6px;color:#646c78;font-size:10px;white-space:nowrap;margin-right:12px}.workspace-status i{width:5px;height:5px;background:#8bc3ac;border-radius:50%;display:inline-block}.profile-chip{display:flex;align-items:center;gap:10px;background:none;border:0;padding:0 0 0 4px;text-align:left;color:#5d6c84;font-size:10px;font-weight:550}.profile-chip>span:not(.avatar){line-height:1.5}.profile-chip small{display:block;font-size:8px;color:#656d7a;font-weight:400}.profile-chip>svg{width:12px;height:12px;color:#656c78;margin-left:3px}.profile-chip>.avatar{width:31px;height:31px;font-size:10px}.avatar{background:var(--avatar-color,#e7edf7);color:#5e6d85}.demo-bar>svg{width:11px;height:11px;opacity:.7}.demo-bar>button{border:0;background:none;color:#556b97;font-size:9px;font-weight:500;padding:0 0 0 5px;text-decoration:underline;text-underline-offset:2px}.page-heading{align-items:baseline;gap:15px}.page-heading h1 .count{font-size:12px;font-weight:400;color:#676d77;margin-left:6px;letter-spacing:0}.page-subtitle{color:#656c77;font-size:10px;white-space:nowrap}.subbar .header-actions>select{border:1px solid #e5eaf2;border-radius:7px;background:#fff;color:#626c7b;font-size:10px;padding:8px 29px 8px 10px;max-width:150px;height:35px}.list-filters{display:flex;align-items:center;gap:16px;padding-top:1px}.list-filters>button{font-size:10px;border:0;background:transparent;color:#656d78;padding:3px 0;line-height:1.5;position:relative}.list-filters>button.active{font-weight:600;color:#536c9e}.list-filters>button.active:after{content:"";height:2px;width:17px;border-radius:3px;background:#7897dd;position:absolute;bottom:-13px;left:0}.list-filters b{font-size:8px;font-weight:550;border-radius:4px;background:#f0f3f9;padding:1px 4px;margin-left:3px;color:#636d7c}.conversation-scroll{flex:1;overflow-y:auto;min-height:0}.conversation-avatar{position:relative;flex-shrink:0;height:39px;width:37px}.channel-mini{position:static;width:15px;height:15px;min-width:15px;border:0;border-radius:5px;font-size:8px;font-style:normal;vertical-align:middle;margin:0;line-height:1;font-weight:650;color:#fff;flex-shrink:0}.conversation-avatar>.channel-mini{position:absolute;bottom:-2px;right:-3px;border:2px solid white;border-radius:50%;width:16px;height:16px;min-width:16px;font-size:7px;line-height:12px}.conversation .avatar{margin-top:1px}.conversation-line{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}.conversation-line>strong{font-size:11px;font-weight:650;color:#4e617e;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}.conversation-line>time{font-size:8px;color:#676d77;flex-shrink:0}.conversation-subject{font-size:9px;line-height:1.7;color:#646d7c;margin-top:3px}.conversation-line>.conversation-preview{display:block;font-size:9px;line-height:1.8;margin-top:5px;color:#656d7a;min-width:0;flex:1}.conversation-line>.unread{margin-top:5px;font-weight:550;font-size:8px;border-radius:5px;height:15px;line-height:15px;min-width:15px}.conversation-footer{margin-top:7px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:8px;color:#676d76}.conversation-footer>span:first-child{display:inline-flex;align-items:center;background:#f4f6fa;border:1px solid #edf1f6;border-radius:4px;line-height:1.3;padding:2px 5px;color:#646d7a}.conversation.selected .conversation-footer>span:first-child{background:#e5edfe;border-color:#dfe8fc;color:#606d87}.conversation.selected .conversation-line>strong{color:#4d6a9a}.conversation.selected .conversation-line>.conversation-preview{color:#5f6c83}.list-bottom{flex-shrink:0;padding:11px 17px;border-top:1px solid var(--border);font-size:8px;color:#646c78;display:flex;justify-content:space-between;gap:8px}.list-bottom>span{color:#676c75}.deal-hero .deal-id{display:flex;align-items:center;justify-content:space-between;gap:8px;letter-spacing:1px;font-size:8px;color:#9bb2bd}.deal-hero h2{font-size:17px;font-weight:550;letter-spacing:-.3px;line-height:1.45;color:#f1f6f7;margin:9px 0 11px;max-width:100%}.deal-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:0 0 17px}.deal-tags>span{font-size:8px;line-height:1.4;color:#606d73;border:1px solid #54717e;border-radius:4px;padding:2px 5px}.deal-tags>button{font-size:11px;border:1px dashed #587582;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;color:#5f6f75;background:transparent;height:18px;width:19px;line-height:1;padding:0}.pipeline-label{font-size:9px;color:#5a6f76;display:block;margin-bottom:3px}.stage-select{display:block;background:#203f49;color:#666c6f;border:1px solid transparent;border-radius:4px;padding:1px 17px 2px 0;font-size:11px;font-weight:550;width:100%;margin-left:-1px;height:22px;cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg width='8' height='5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 3 3 3-3' fill='none' stroke='%2396aeb8'/%3E%3C/svg%3E");background-position:right 3px center;background-repeat:no-repeat}.stage-select:hover{border-color:#58717c}.stage-select option{background:#284c57;color:#666c6e}.deal-hero .stage-track{height:3px;margin-top:6px;margin-bottom:8px;gap:2px}.deal-hero .tabs{gap:24px;margin-top:7px}.deal-hero .tabs button{font-size:9px;padding:11px 0 13px}.deal-hero .tabs button span{font-size:8px;margin-left:3px;color:#89a5b2}.deal-fields{padding:18px 22px 0}.deal-fields>.field>span{display:flex;align-items:center;gap:5px;font-size:10px;color:#5c6d85;min-width:0;overflow-wrap:anywhere}.deal-fields>.field>strong{font-size:14px;font-weight:600;color:#596e8b}.field>span>.avatar{width:22px;height:22px;font-size:8px;margin:0 2px 0 0}.deal-fields>.deal-section{margin:16px -22px 0;padding:16px 22px 18px}.deal-fields>.deal-section:last-child{padding-bottom:24px}.deal-section h3{font-size:9px;color:#616d7e;font-weight:600;margin-bottom:11px}.deal-section h3 .icon-btn{height:20px;width:20px;margin-right:-3px}.deal-section h3 .icon-btn svg{width:12px;height:12px}.deal-section>strong{font-size:11px;font-weight:550;color:#566d89;display:block;margin-bottom:9px}.contact-link{display:flex;align-items:center;gap:7px;font-size:10px;color:#5f6c7f;line-height:1.6;margin:7px 0}.contact-link svg{height:12px;width:12px;color:#646c76}.contact-link:hover{color:#4d6ca3}.deal-section .field{min-height:34px;gap:7px}.deal-section .field>span{display:flex;align-items:center;gap:5px;font-size:10px;color:#606d83;min-width:0}.deal-section .field>label{font-size:9px}.deal-section .field>.toggle{height:17px;width:30px;justify-self:start}.deal-section .field>.toggle:after{height:11px;width:11px;top:3px;left:3px}.deal-section .field>.toggle.on:after,.deal-section .field>.toggle[aria-checked=true]:after{left:16px}.toggle.on{background:#8ca9e4}.toggle.on:after{left:18px}.toggle>span{display:none}.deal-section>.muted{font-size:10px}.mini-task{display:flex;align-items:flex-start;gap:8px;width:100%;text-align:left;border:1px solid #ecf0f6;border-radius:6px;background:#fafcff;padding:9px 8px;margin:7px 0;color:#606c7f;font-size:9px;line-height:1.6}.mini-task>svg:first-child{width:13px;height:13px;margin-top:1px;color:#656d78}.mini-task>span{flex:1}.mini-task>span>small{font-size:8px;color:#666d77;display:block;margin-top:2px}.mini-task>svg:last-child{width:12px;height:12px;color:#646d75;margin-top:2px}.mini-task:hover{border-color:#d2dff3;background:#f7faff}.text-btn{border:0;background:transparent;padding:6px 0;color:#5e6d84;font-size:9px;display:inline-flex;align-items:center;gap:4px;line-height:1.4}.text-btn svg{height:12px;width:12px}.text-btn:hover{color:#4d6ca3}.history-item{position:relative;display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:0 0 14px 0;margin:0 0 14px;border-bottom:1px solid #eef2f7;font-size:9px;color:#616d80}.history-item>svg{width:12px;height:12px;color:#656d78}.history-item>small{display:block;width:100%;padding-left:19px;font-size:8px;color:#656d77;margin-top:-3px}.chat-header .chat-person{min-width:0}.chat-person>span:not(.avatar){min-width:0}.chat-header strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px}.chat-header small:before{display:none}.chat-header small .channel-mini{width:11px;height:11px;min-width:11px;font-size:6px;border-radius:3px;margin-right:0}.chat-header .chat-person small{font-size:8px;gap:4px;white-space:nowrap}.chat-header .header-actions{gap:4px}.chat-header .header-actions .icon-btn{height:28px;width:28px}.chat-header .header-actions .icon-btn>svg{width:16px;height:16px}.timeline-marker{display:flex;align-items:center;justify-content:center;gap:11px;color:#666c75;font-size:8px;margin:4px 0 9px}.timeline-marker:before,.timeline-marker:after{content:"";height:1px;background:#e6ebf3;width:65px}.chat-stream{padding-top:21px;gap:18px}.message.in>.avatar{height:24px;width:24px;font-size:8px}.message .bubble{color:#5d6d84;font-size:11px;line-height:1.75;border-color:#e5ebf3}.message.out .bubble{color:#566d92;background:#e6edfd;border-color:#dfe7f9}.message.note{padding-left:32px}.message.note .message-body{width:100%}.message.note .bubble{font-size:10px;padding:10px 12px;border-radius:0 0 7px 7px;border-top:0;color:#766a54;line-height:1.7;background:#fff9eb}.note-title{display:flex;align-items:center;gap:5px;background:#fff9eb;border:1px solid #f1e8d6;border-bottom:0;border-radius:7px 7px 0 0;font-size:8px;color:#756a56;padding:9px 12px 0}.note-title svg{width:10px;height:10px;opacity:.8}.message-meta{font-size:8px;color:#666d77}.message-meta>span{font-size:9px;letter-spacing:-2px;color:#5e6d87;margin-left:2px}.chat-welcome{color:#646c77;font-size:11px;line-height:1.9;text-align:center;padding:50px 15px}.chat-panel>.task-strip{flex-shrink:0;margin:0 20px 10px;border-left:3px solid #e3be82;padding:11px 12px;gap:9px}.chat-panel>.task-strip>svg{height:18px;width:18px;color:#776a57;flex-shrink:0}.chat-panel>.task-strip>div{flex:1;min-width:0}.chat-panel>.task-strip small{font-size:8px;color:#6a6d70;display:block;line-height:1.5;margin:0 0 2px}.chat-panel>.task-strip strong{font-size:10px;color:#636d7d;font-weight:550;display:block;line-height:1.4}.chat-panel>.task-strip>.icon-btn{width:24px;height:24px;background:#f5f9f7;color:#5d6f68}.chat-panel>.task-strip>.icon-btn svg{height:14px;width:14px}.chat-panel>.task-strip.no-task{border-left-color:#bfcee5;font-size:9px;color:#646c78}.chat-panel>.task-strip.no-task>span{flex:1}.chat-panel>.composer{flex-shrink:0;margin:0 20px 20px}.compose-header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 12px 0}.compose-header select{background:none;border:0;color:#5e6d88;font-size:9px;padding:0 12px 0 0;max-width:70%;cursor:pointer}.compose-channel{display:flex;align-items:center;gap:4px;color:#676d77;font-size:8px}.compose-channel .channel-mini{width:11px;height:11px;min-width:11px;font-size:6px;border-radius:3px}.composer textarea{font-size:11px;line-height:1.7;min-height:73px;padding-top:10px}.compose-toolbar>.muted{font-size:8px;color:#666c75;line-height:1.5;max-width:65%}.compose-toolbar .btn{font-size:9px;padding:6px 10px;gap:5px}.compose-toolbar .btn svg{width:13px;height:13px}.empty-state>svg{height:35px;width:35px;color:#646c78;margin-bottom:2px}.empty-state h3{font-weight:550;color:#5f6c80}.content>.filter-row{margin-bottom:17px}.content>.view-toolbar p{font-size:10px;color:#656d78;margin-top:6px}.content>.view-toolbar .header-actions{gap:9px}.content>.card{margin-bottom:22px}.content>.table-wrap{padding:0;margin-top:20px}.pipeline-summary{display:flex;align-items:center;gap:20px;font-size:10px;color:#656c77;padding:10px 0 3px}.pipeline-summary b{font-size:10px;font-weight:550;color:#5d6d84;margin-right:3px}.pipeline-summary>span:last-child{margin-left:auto;font-size:9px;color:#666c75}.content>.kanban{padding:20px 0 30px;min-height:calc(100dvh - 270px);gap:15px}.kanban-column{min-width:242px}.kanban-header{padding:11px 4px 12px;border-top:3px solid #9ab5ed;margin-bottom:8px;display:flex;flex-direction:column;gap:4px}.kanban-header>div{display:flex;align-items:center;gap:8px}.kanban-header b{font-size:10px;font-weight:600;color:#5f6d80}.kanban-header .count{font-size:9px;color:#666c76;font-weight:400}.kanban-header>small{font-size:8px;color:#656c78}.kanban-cards{min-height:230px}.card-topline{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:10px;font-size:8px;color:#656d79}.card-topline>span{display:flex;align-items:center;gap:5px}.card-topline>svg{height:15px;width:15px;color:#666c76}.card-topline .channel-mini{height:12px;width:12px;min-width:12px;font-size:6px;border-radius:3px}.deal-card h3{font-size:11px;line-height:1.6;color:#5a6e8b;font-weight:550}.deal-card>p{font-size:9px;color:#656d79;margin:5px 0 11px}.deal-card>strong{font-size:13px;font-weight:550;color:#5c6c84;display:block}.deal-card .deal-tags{margin:12px 0 0;gap:4px}.deal-card .deal-tags>span{background:#f5f8fd;border-color:#e9eef7;color:#636d7b;font-size:8px;line-height:1.3;padding:3px 5px}.deal-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #f0f3f8;padding-top:11px;margin-top:14px;color:#636c79;font-size:8px}.deal-card-footer>span{display:flex;align-items:center;gap:5px}.deal-card-footer .avatar{width:21px;height:21px;font-size:7px}.deal-card-footer svg{width:11px;height:11px;color:#676d78}.add-card{width:100%;border:1px dashed #dbe3ef;background:transparent;border-radius:6px;padding:9px;font-size:9px;color:#626c7a;margin-top:2px}.add-card:hover{background:#f9fbff;border-color:#b6cae9;color:#5a6d89}.stat-card>span{display:block;color:#636c7a;font-size:10px}.stat-card>strong{display:block;margin:9px 0 3px;font-size:27px;color:#576e90;letter-spacing:-.6px;font-weight:550;line-height:1.4;white-space:nowrap}.stat-card>small{display:block;font-size:9px;color:#666d77}.stats-grid.compact .stat-card{padding:17px 21px}.stats-grid.compact .stat-card>span{font-size:9px}.stats-grid.compact .stat-card>strong{font-size:24px;margin-top:7px}.orange-text{color:#7a6a54!important}.green-text{color:#577166!important}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.card-heading h3{font-size:12px;font-weight:550;color:#5e6d85}.card-heading>.muted{font-size:9px;color:#646d78}.calendar-card{padding:20px 0 0;overflow:hidden}.calendar-card>.card-heading{padding:0 22px;margin-bottom:15px}.calendar-card>.calendar{border:0;border-top:1px solid var(--border);border-radius:0}.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:11px 0;background:#fafcff;border-top:1px solid var(--border);color:#656d79;font-size:8px;text-align:right}.calendar-week>span{padding-right:12px}.calendar-day .day-number{background:none;border:0;color:#646d7a;width:25px;height:25px;margin:0 0 8px auto;padding:0;display:flex;align-items:center;justify-content:center;font-size:10px;border-radius:50%;cursor:pointer}.calendar-day .day-number:hover{background:#eef3fc;color:#586d90}.calendar-day.today .day-number{background:#87a5e2;color:white}.calendar-day.outside{background:#fbfcfd}.calendar-event{color:#5e6d87;padding:6px 7px;font-size:8px;border-left-color:#adc2e9;text-align:left;line-height:1.5}.calendar-event small{font-size:7px;display:block;color:#616c7e;margin-bottom:1px}.calendar-event.completed{background:#eef7f2;color:#5e7168;border-left-color:#bbd7c9;text-decoration:line-through}.task-row>div:not(.task-checkbox){flex:1;min-width:0}.task-checkbox{height:17px;width:17px;border:1px solid #d7e1f0;display:flex;align-items:center;justify-content:center;background:white;border-radius:5px;flex-shrink:0;padding:0}.task-checkbox:hover{border-color:#a1b9e3}.task-checkbox.checked{border-color:#b0d7c6;background:#eef8f2;color:#577164}.task-checkbox svg{height:11px;width:11px}.task-row strong{font-size:10px;color:#5f6c81;font-weight:550;line-height:1.6}.task-row small{font-size:8px;color:#646c77;line-height:1.7;margin-top:3px}.task-row .badge{font-size:8px}.deal-section .task-row{padding:10px 0;border:0;border-bottom:1px solid #edf2f8;border-radius:0;gap:8px}.deal-section .task-row .badge{display:none}.deal-section .task-row strong{font-size:9px}.deal-section .task-row small{font-size:8px}.deal-section .task-row+.btn{margin-top:14px}.analytics-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-bottom:22px}.funnel-chart{display:flex;flex-direction:column;gap:23px;padding:7px 0 12px}.funnel-row{display:grid;grid-template-columns:135px 1fr 20px;gap:15px;align-items:center;font-size:9px;color:#646d7b}.funnel-row>div{height:7px;background:#f0f4fa;border-radius:4px;overflow:hidden}.funnel-row i{height:7px;display:block;border-radius:4px;min-width:4px}.funnel-row b{text-align:right;font-size:10px;font-weight:550;color:#5f6c7e}.city-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 0;border-bottom:1px solid #f0f4f9;font-size:10px;color:#626c7c}.city-row:last-child{border-bottom:0}.city-row>span{display:flex;align-items:center;gap:8px}.city-row svg{height:15px;width:15px;color:#656c77}.city-row strong{font-size:10px;font-weight:550;color:#606c7d}.notice{display:flex;gap:11px;align-items:flex-start;background:#eff4fd;border:1px solid #e3ebf9;border-radius:9px;padding:15px 18px;color:#606d82;font-size:10px;line-height:1.7;margin-bottom:23px}.notice>svg{width:18px;height:18px;margin-top:1px;flex-shrink:0;color:#606d81}.automation-card{gap:18px;padding:22px}.automation-symbol{width:42px;height:42px;background:#f1edfc;border:1px solid #ebe5f9;border-radius:11px;color:#72668d;display:flex;align-items:center;justify-content:center;flex-shrink:0}.automation-symbol svg{height:21px;width:21px}.automation-info{flex:1;min-width:0}.automation-info h3{font-size:12px;color:#5d6d87;font-weight:550}.automation-info p{font-size:9px;color:#646c79;margin-top:5px}.automation-info .automation-flow{font-size:9px;gap:7px;margin-top:13px;flex-wrap:wrap}.automation-info .automation-flow>span{background:transparent;padding:0}.automation-info .automation-flow>span.badge{padding:3px 7px;font-size:8px;background:#edf2fe;color:#5e6c85}.automation-info .automation-flow>svg{width:12px;height:12px;color:#666d78}.automation-info .automation-flow .muted{font-size:8px;color:#666d76;margin-left:4px}.permission-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;background:#f0f4fb;border:1px solid #e6edf8;border-radius:10px;padding:20px 23px;margin-bottom:23px}.permission-overview>div{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:4px 9px}.permission-overview svg{width:17px;height:17px;color:#616d81;grid-row:1/3}.permission-overview strong{font-size:10px;font-weight:550;color:#5d6c83}.permission-overview span{font-size:8px;color:#646d7a;line-height:1.6}.person-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:17px}.person-top>.avatar{width:40px;height:40px;font-size:12px}.person-top .badge{font-size:8px;padding:3px 6px}.person-card>h3{font-size:13px;font-weight:550;color:#5c6d87}.person-card>p{font-size:9px;color:#646c77;margin-top:4px}.person-meta{display:flex;align-items:center;gap:5px;font-size:8px;color:#636c78;margin-top:17px}.person-meta>svg{width:12px;height:12px;color:#646c76}.status-dot{height:4px;width:4px;border-radius:50%;background:#9ccbb8;margin-left:auto}.person-card .person-stats{grid-template-columns:1fr 1fr;gap:12px;font-size:8px;color:#646d7a;padding-top:14px;margin-top:16px}.person-stats>span{display:flex;align-items:baseline;gap:5px}.person-stats>span>b{font-size:20px;color:#5e6d83;font-weight:500;letter-spacing:-.5px}.integration-card{min-height:260px;align-items:stretch}.integration-top{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:18px}.integration-top>.channel-icon{width:36px;height:36px;border-radius:10px;font-size:18px;line-height:1;box-shadow:0 3px 8px #293d6008;opacity:.88}.integration-top>.badge{font-size:8px;padding:3px 6px;background:#f3f5f9;color:#656d79}.integration-card>h3{font-size:13px;color:#5b6d87;font-weight:550}.integration-card>p{font-size:10px;color:#646d79;line-height:1.7;margin-top:5px;margin-bottom:10px}.integration-detail{font-size:9px;color:#636c78;line-height:1.7;min-height:44px;margin-bottom:18px}.integration-card>.btn{align-self:flex-start;font-size:9px;min-height:31px;padding:7px 9px;margin-top:auto;gap:7px;color:#606c83;border-color:#e5edf8}.integration-card>.btn svg{height:12px;width:12px}.infrastructure{margin-top:25px;padding:23px;max-width:none}.infrastructure>div{display:flex;align-items:center;gap:10px}.infrastructure>div>svg{width:21px;height:21px;color:#616c7d}.infrastructure h3{font-size:12px;font-weight:550;color:#5d6d83}.infrastructure p{font-size:10px;color:#646d7b;line-height:1.8;margin:12px 0 16px;max-width:900px}.infrastructure .badge{font-size:8px}.table-wrap td small{display:block;color:#656c77;font-size:8px;margin-top:3px}.table-wrap td>.channel-mini{margin-right:3px}.table-wrap tr[data-action]{cursor:pointer}.table-wrap td b{font-weight:550;color:#5e6d82;font-size:10px}.table-wrap.card{padding:0}.stat-card>strong{font-size:25px}.content .stats-grid:not(.compact) .stat-card:nth-child(2)>strong{font-size:23px}.toast.error{color:#80646a;border-color:#f0dce1}.modal .notice{margin-bottom:18px}.modal .table-wrap{margin-top:15px}.modal .form-section-title{font-size:11px;color:#5c6d85;margin:5px 0 15px}.modal .btn{font-size:10px}.modal .integration-explanation{font-size:11px;line-height:1.9;color:#5e6c81}.modal .integration-explanation p{margin-bottom:13px}.modal .integration-explanation a{font-size:10px;word-break:break-word}.modal .checkbox-row{display:flex;align-items:center;gap:8px;color:#606d7f;font-size:10px}.modal .checkbox-row input{accent-color:#6c8dda}

@media(min-width:1600px){.conversation-line>strong{font-size:12px}.conversation-line>.conversation-preview,.conversation-subject{font-size:10px}.conversation-footer{font-size:9px}.conversation{padding-top:18px;padding-bottom:18px}.deal-hero h2{font-size:19px}.deal-hero .tabs button{font-size:10px}.deal-hero .pipeline-label{font-size:10px}.stage-select{font-size:12px}.deal-fields>.field>span{font-size:11px}.deal-section h3{font-size:10px}.deal-section>.field>label{font-size:10px}.deal-section>.field>span{font-size:11px}.chat-panel>.task-strip{margin-left:35px;margin-right:35px}.chat-panel>.composer{margin-left:35px;margin-right:35px;margin-bottom:25px}.message .bubble{font-size:12px}.message.note .bubble{font-size:11px}.chat-header strong{font-size:12px}.chat-header .chat-person small{font-size:9px}.stat-card>strong{font-size:30px}.content .stats-grid:not(.compact) .stat-card:nth-child(2)>strong{font-size:28px}.page-subtitle{font-size:11px}.stat-card>span{font-size:11px}.stat-card>small{font-size:10px}}
@media(max-width:1250px){.page-subtitle{display:none}.workspace-status{font-size:9px;margin-right:7px}.profile-chip{gap:8px}.deal-fields>.deal-section{margin-left:-19px;margin-right:-19px;padding-left:19px;padding-right:19px}.deal-fields{padding-left:19px;padding-right:19px}.deal-hero h2{font-size:16px}.deal-hero .deal-tags{margin-bottom:14px}.deal-hero .tabs{gap:21px}.chat-panel>.task-strip{margin-left:15px;margin-right:15px}.chat-panel>.composer{margin-left:15px;margin-right:15px;margin-bottom:15px}.chat-header .chat-person small{font-size:7px}.chat-header .header-actions{gap:1px}.chat-header .header-actions .icon-btn{width:24px}.chat-header strong{font-size:10px}.chat-header .chat-person{gap:8px}.chat-header .chat-person>.avatar{width:29px;height:29px;font-size:9px}.compose-toolbar>.muted{font-size:7px;max-width:62%}.funnel-row{grid-template-columns:122px 1fr 15px;gap:10px;font-size:8px}.stat-card>strong{font-size:23px}.content .stats-grid:not(.compact) .stat-card:nth-child(2)>strong{font-size:20px}.permission-overview{gap:10px;padding:18px}.permission-overview span{font-size:7px}.integration-card{padding:19px;min-height:260px}.integration-card>.btn{font-size:8px;gap:5px}}
@media(max-width:1100px){.sidebar{padding-top:18px}.sidebar nav{gap:2px}.nav-item{min-height:61px}.sidebar .brand{margin-bottom:16px}.profile-chip{font-size:9px}.profile-chip small{font-size:7px}.profile-chip>.avatar{height:28px;width:28px;font-size:9px}.workspace-name{font-size:18px}.crm-label{font-size:9px}.workspace-status{font-size:8px}.deal-hero{padding-top:19px}.deal-hero h2{font-size:16px}.conversation{min-height:101px}.conversation-line>strong{font-size:10px}.conversation-subject{font-size:8px}.conversation-line>.conversation-preview{font-size:8px}.conversation-line>time{font-size:7px}.conversation-footer{font-size:7px}.conversation-avatar{height:37px;width:34px}.conversation .avatar{height:33px;width:33px;font-size:10px}.list-filters{gap:12px}.list-filters>button{font-size:9px}.list-filters b{font-size:7px}.stat-card>strong{font-size:28px}.content .stats-grid:not(.compact) .stat-card:nth-child(2)>strong{font-size:25px}.analytics-grid{grid-template-columns:1fr 1fr;gap:16px}.person-stats>span>b{font-size:19px}.permission-overview strong{font-size:9px}.permission-overview span{font-size:7px}.calendar-day .day-number{width:22px;height:22px;font-size:9px}.pipeline-summary{font-size:9px;gap:15px}.pipeline-summary b{font-size:9px}.pipeline-summary>span:last-child{font-size:8px}}
@media(max-width:800px){.sidebar .brand{width:58px}.workspace-status{display:none}.workspace-name{font-size:17px}.crm-label{font-size:8px}.profile-chip{font-size:9px;gap:7px}.profile-chip small{font-size:7px;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-chip>svg{margin-left:0}.demo-bar>button{font-size:8px}.demo-bar>svg{width:10px;height:10px}.subbar .header-actions>select{height:31px;max-width:117px;padding:5px 18px 5px 8px;font-size:9px}.subbar .header-actions>.btn{font-size:9px;min-height:31px;padding:6px 9px;gap:5px}.subbar .header-actions>.btn svg{height:13px;width:13px}.page-heading h1 .count{font-size:10px;margin-left:3px}.conversation{min-height:105px}.conversation-line>strong{font-size:10px}.conversation-subject,.conversation-line>.conversation-preview{font-size:8px}.list-toolbar{padding-left:14px;padding-right:14px}.list-bottom{font-size:7px;padding-left:14px;padding-right:14px}.chat-panel>.task-strip{margin-left:12px;margin-right:12px;margin-bottom:9px}.chat-panel>.composer{margin-left:12px;margin-right:12px;margin-bottom:12px}.compose-header{padding:10px 10px 0}.compose-header select{font-size:8px}.compose-channel{font-size:7px}.compose-channel .channel-mini{width:10px;height:10px;min-width:10px;font-size:6px}.compose-toolbar>.muted{font-size:7px;max-width:57%}.chat-panel>.task-strip small{font-size:7px}.chat-panel>.task-strip strong{font-size:9px}.chat-panel>.task-strip>svg{height:16px;width:16px}.chat-panel>.task-strip>.icon-btn{width:21px;height:21px}.chat-panel>.task-strip.no-task{font-size:8px}.chat-panel>.task-strip.no-task .text-btn{font-size:8px}.message .bubble{font-size:10px}.message.note .bubble{font-size:9px}.message.note{padding-left:0}.message.in>.avatar{display:none}.note-title{font-size:7px;padding-left:10px}.timeline-marker{font-size:7px}.chat-header .header-actions .icon-btn{width:23px}.chat-header strong{font-size:10px}.chat-header .chat-person{gap:7px}.chat-header .chat-person>.avatar{height:27px;width:27px;font-size:8px}.chat-header .chat-person small{font-size:7px;gap:3px}.chat-header .chat-person small>.muted{display:none}.analytics-grid{grid-template-columns:1fr}.permission-overview{gap:10px;padding:16px;grid-template-columns:1fr}.permission-overview>div{grid-template-columns:22px 98px 1fr;gap:0 7px}.permission-overview svg{grid-row:auto;height:15px;width:15px}.permission-overview strong{font-size:10px}.permission-overview span{font-size:8px}.stat-card>strong{font-size:26px}.content .stats-grid:not(.compact) .stat-card:nth-child(2)>strong{font-size:23px}.stats-grid.compact .stat-card{padding:16px 18px}.stats-grid.compact .stat-card>strong{font-size:25px}.integration-card{min-height:260px}.integration-detail{font-size:8px;min-height:42px}.integration-card>p{font-size:9px}.content>.view-toolbar .header-actions{gap:7px;flex-wrap:wrap;justify-content:flex-end}.content>.view-toolbar .header-actions>.btn{font-size:9px;min-height:31px;padding:6px 9px;gap:5px}.content>.view-toolbar .header-actions>.btn svg{height:13px;width:13px}.content>.view-toolbar p{font-size:9px;max-width:350px}.content>.view-toolbar h1{font-size:20px}.pipeline-summary>span:last-child{display:none}.content>.kanban{gap:13px;padding-top:17px}.kanban-column{min-width:230px}.content .filter-row>.search{width:190px}.content .filter-row select{font-size:9px;height:32px;max-width:150px}.calendar-card{overflow:auto}.calendar-week{min-width:600px}.calendar-card>.card-heading{padding-left:18px;padding-right:18px}.calendar-card>.calendar{min-width:600px}.calendar-day .day-number{font-size:9px}.card-heading h3{font-size:11px}.automation-symbol{height:35px;width:35px;border-radius:9px}.automation-symbol svg{height:18px;width:18px}.automation-info h3{font-size:11px}.automation-info p{font-size:8px}.automation-info .automation-flow{font-size:8px;gap:5px}.automation-info .automation-flow>span.badge{font-size:7px;padding:3px 5px}.person-meta{font-size:8px}.person-card .person-stats{font-size:8px}.person-stats>span>b{font-size:20px}.integration-top>.badge{font-size:7px}.integration-card>.btn{font-size:8px}.infrastructure{padding:20px}.infrastructure h3{font-size:11px}.infrastructure p{font-size:9px}}
@media(max-width:600px){.sidebar .brand{display:none}.sidebar nav{gap:0}.sidebar nav .nav-item{min-height:0;height:54px;width:43px;font-size:6.5px;letter-spacing:-.1px}.nav-dot{right:9px;top:6px;width:4px;height:4px}.workspace-name{font-size:17px}.crm-label{font-size:8px}.breadcrumb-divider{display:none}.breadcrumbs>span:last-child{display:none}.profile-chip{font-size:8px;gap:7px}.profile-chip small{font-size:6.5px;max-width:108px}.profile-chip>.avatar{height:27px;width:27px;font-size:8px}.profile-chip>svg{width:10px;height:10px;margin-left:2px}.demo-bar>button{font-size:7px;padding-left:3px}.demo-bar>svg{height:9px;width:9px}.page-heading h1 .count{font-size:9px;margin-left:2px}.subbar .header-actions{gap:6px}.subbar .header-actions>select{font-size:8px;height:29px;max-width:92px;padding-left:6px;padding-right:12px}.subbar .header-actions>.btn{font-size:8px;min-height:29px;padding:6px 7px;gap:4px}.subbar .header-actions>.btn svg{height:11px;width:11px}.conversation{min-height:110px;padding:16px 18px;gap:12px}.conversation-avatar{width:38px;height:40px}.conversation .avatar{width:38px;height:38px;font-size:12px}.conversation-line>strong{font-size:12px}.conversation-line>time{font-size:9px}.conversation-subject{font-size:10px;margin-top:3px}.conversation-line>.conversation-preview{font-size:10px;margin-top:5px}.conversation-line>.unread{font-size:8px;height:16px;line-height:16px;min-width:16px}.conversation-footer{font-size:8px;margin-top:7px}.conversation-footer>span:first-child{font-size:8px;padding:2px 5px}.list-toolbar{padding:13px 18px 12px;gap:11px}.list-filters{gap:18px}.list-filters>button{font-size:10px}.list-filters b{font-size:8px}.list-filters>button.active:after{bottom:-13px}.list-bottom{padding:10px 18px;font-size:8px}.chat-header .chat-person{gap:8px}.chat-header .chat-person>.avatar{width:29px;height:29px;font-size:9px}.chat-header strong{font-size:11px}.chat-header .chat-person small{font-size:8px;gap:4px}.chat-header .chat-person small>.muted{display:inline}.chat-header .chat-person small .channel-mini{width:10px;height:10px;min-width:10px;font-size:6px}.chat-header .header-actions{gap:3px}.chat-header .header-actions .icon-btn{width:25px}.chat-header .header-actions .icon-btn svg{width:16px;height:16px}.chat-header .mobile-back{width:20px;margin-right:-4px}.chat-panel>.task-strip{margin:0 13px 8px;padding:10px}.chat-panel>.task-strip>div{flex:1}.chat-panel>.task-strip strong{font-size:9px}.chat-panel>.task-strip small{font-size:7px}.chat-panel>.composer{margin:0 13px 12px}.compose-header{padding:10px 11px 0}.compose-header select{font-size:8px}.compose-channel{font-size:7px}.composer textarea{font-size:11px;min-height:64px;max-height:100px}.compose-toolbar>.muted{font-size:7px;max-width:63%;line-height:1.6}.compose-toolbar .btn{font-size:8px;min-height:28px;height:28px;padding:6px 9px}.compose-toolbar .btn svg{height:12px;width:12px}.chat-stream{gap:16px;padding:18px 15px}.message .bubble{font-size:11px;padding:10px 12px;line-height:1.75}.message.note{padding-left:28px}.message.note .bubble{font-size:10px}.message.in>.avatar{display:flex;width:21px;height:21px;font-size:7px}.message{gap:7px;max-width:93%}.message.out{max-width:88%}.note-title{font-size:7px}.message-meta{font-size:7px}.timeline-marker{font-size:8px;margin-top:0}.timeline-marker:before,.timeline-marker:after{width:55px}.deal-fields{padding-left:22px;padding-right:22px}.deal-fields>.deal-section{margin-left:-22px;margin-right:-22px;padding-left:22px;padding-right:22px}.deal-fields>.field>span{font-size:12px}.deal-fields>.field>strong{font-size:15px}.deal-section .field>label{font-size:10px}.deal-section .field>span{font-size:11px}.deal-section .field>.toggle{height:18px;width:32px}.deal-section .field>.toggle:after{height:12px;width:12px}.deal-section .field>.toggle.on:after,.deal-section .field>.toggle[aria-checked=true]:after{left:17px}.deal-hero h2{font-size:19px}.deal-hero .deal-id{font-size:9px}.deal-hero .pipeline-label{font-size:10px}.stage-select{font-size:12px;height:25px}.deal-hero .tabs button{font-size:10px}.deal-section h3{font-size:10px}.deal-section>strong{font-size:12px}.contact-link{font-size:11px}.mini-task{font-size:10px;padding:10px}.text-btn{font-size:10px}.content>.view-toolbar{align-items:flex-start;gap:13px;flex-direction:column}.content>.view-toolbar h1{font-size:21px}.content>.view-toolbar p{font-size:9px;margin-top:4px}.content>.view-toolbar .header-actions{justify-content:flex-start;flex-wrap:wrap;gap:7px}.content>.view-toolbar .header-actions>.btn{font-size:9px;min-height:31px;padding:7px 10px}.content>.view-toolbar .header-actions .segmented button{font-size:9px;padding:6px 8px;gap:5px}.content>.view-toolbar .header-actions .segmented button svg{width:12px;height:12px}.content .filter-row{gap:7px;margin-bottom:15px}.content .filter-row>.search{width:100%;max-width:none}.content .filter-row>.search input{height:32px;font-size:10px}.content .filter-row select{font-size:9px;height:31px;max-width:none;flex:1}.pipeline-summary{font-size:8px;padding-top:7px;gap:14px}.pipeline-summary b{font-size:9px}.content>.kanban{padding-top:17px;gap:12px;min-height:calc(100dvh - 320px)}.kanban-column{min-width:260px}.kanban-header b{font-size:11px}.kanban-header small{font-size:9px}.deal-card h3{font-size:12px}.deal-card>p{font-size:10px}.deal-card>strong{font-size:14px}.deal-card .deal-tags>span{font-size:8px}.deal-card-footer{font-size:9px}.deal-card-footer .avatar{width:23px;height:23px;font-size:8px}.card-topline{font-size:9px}.add-card{font-size:10px}.stat-card>span{font-size:9px}.stat-card>strong{font-size:24px;letter-spacing:-.5px;margin-top:7px}.content .stats-grid:not(.compact) .stat-card:nth-child(2)>strong{font-size:18px;line-height:1.8}.stat-card>small{font-size:8px;line-height:1.6}.stats-grid.compact .stat-card{padding:14px 16px}.stats-grid.compact .stat-card>strong{font-size:24px}.stats-grid.compact .stat-card>span{font-size:9px}.card-heading{margin-bottom:17px}.card-heading h3{font-size:11px}.card-heading>.muted{font-size:8px}.calendar-card{padding-top:16px}.calendar-card>.card-heading{padding:0 15px;min-width:330px;margin-bottom:12px}.calendar-week{min-width:570px}.calendar-card>.calendar{min-width:570px}.calendar-day .day-number{font-size:9px;height:22px;width:22px}.calendar-event{font-size:8px;padding:5px 6px}.calendar-event small{font-size:7px}.task-row{gap:9px;padding:13px 11px;flex-wrap:nowrap}.task-row>div:not(.task-checkbox){min-width:0}.task-row strong{font-size:10px}.task-row small{font-size:8px;line-height:1.8}.task-row .badge{font-size:7px;max-width:75px;overflow:hidden;text-overflow:ellipsis}.task-checkbox{height:15px;width:15px}.analytics-grid{gap:15px;margin-bottom:17px}.funnel-row{grid-template-columns:121px 1fr 16px;gap:9px;font-size:8px}.funnel-chart{gap:20px;padding-bottom:6px}.city-row{font-size:10px;padding:14px 0}.city-row strong{font-size:9px}.notice{padding:13px;gap:9px;font-size:9px;margin-bottom:18px}.notice>svg{height:16px;width:16px}.automation-card{padding:16px;gap:11px;flex-wrap:nowrap}.automation-symbol{height:30px;width:30px;align-self:flex-start}.automation-symbol svg{width:17px;height:17px}.automation-info h3{font-size:11px}.automation-info p{font-size:8px}.automation-info .automation-flow{font-size:8px;line-height:1.6;gap:5px;margin-top:10px}.automation-info .automation-flow>span.badge{font-size:7px;max-width:100%;white-space:normal}.automation-info .automation-flow .muted{font-size:7px;margin-left:0}.automation-card .toggle{align-self:flex-start;margin-top:2px;flex-shrink:0}.permission-overview{padding:15px;gap:13px;margin-bottom:18px}.permission-overview>div{grid-template-columns:19px 92px 1fr;gap:5px}.permission-overview strong{font-size:9px}.permission-overview span{font-size:8px}.permission-overview svg{height:14px;width:14px}.person-card{padding:20px}.person-card>h3{font-size:14px}.person-card>p{font-size:10px}.person-top{margin-bottom:17px}.person-top>.avatar{height:41px;width:41px;font-size:12px}.person-top>.badge{font-size:8px}.person-meta{font-size:9px;margin-top:17px}.person-card .person-stats{font-size:9px;padding-top:14px;margin-top:17px}.person-stats>span>b{font-size:21px}.integration-card{min-height:247px;padding:20px}.integration-top{margin-bottom:17px}.integration-top>.channel-icon{height:37px;width:37px;font-size:19px}.integration-top>.badge{font-size:8px}.integration-card>h3{font-size:14px}.integration-card>p{font-size:10px;margin-top:6px}.integration-detail{font-size:9px;min-height:36px;margin-top:2px;margin-bottom:18px}.integration-card>.btn{font-size:9px;min-height:32px;padding:7px 10px;gap:9px}.infrastructure{margin-top:19px;padding:19px}.infrastructure>div{gap:9px}.infrastructure h3{font-size:11px}.infrastructure>div>svg{width:18px;height:18px;flex-shrink:0}.infrastructure p{font-size:9px;line-height:1.9;margin-top:11px}.infrastructure>.badge{font-size:7px;white-space:normal}.table-wrap td b{font-size:10px}.table-wrap td small{font-size:8px}.modal .btn{font-size:10px}.modal .notice{font-size:9px}.modal .integration-explanation{font-size:10px}.content>.card{margin-bottom:17px}}

/* Form and sign-in states */
.form-field>span{font-size:10px;font-weight:550;color:#616c7d}.modal>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.modal>form>.modal-body{flex:1}.modal-body>p{font-size:11px;color:#606d81;line-height:1.85;margin:0 0 15px}.modal-body>p:last-child{margin-bottom:0}.modal-body>h3{font-size:12px;color:#5c6d86;margin:20px 0 10px}.modal-body>hr{border:0;border-top:1px solid var(--border);margin:23px 0 15px}.modal-body>.cell-person{display:flex;align-items:center;gap:12px;margin-bottom:25px}.modal-body>.cell-person h3{font-size:13px;font-weight:550;color:#5b6d89}.modal-body>.cell-person p{font-size:10px;line-height:1.7;color:#626d7c;margin-top:4px}.modal-body>select{background:#fcfdff;border:1px solid #e1e8f3;border-radius:7px;color:#5e6c81;padding:10px 11px;max-width:100%;width:100%;font-size:11px;display:block;margin:13px 0 14px}.modal-body>.btn{margin-top:3px}.modal-body .form-grid+p{margin-top:18px;font-size:10px;color:#626c7a;line-height:1.75}.modal-body .form-grid+.notice{margin-top:20px;margin-bottom:0}.integration-modal-intro{display:flex;align-items:center;gap:13px;margin-bottom:22px}.integration-modal-intro>.channel-icon{height:42px;width:42px;border-radius:11px;font-size:21px}.integration-modal-intro h3{font-size:12px;font-weight:550;color:#5c6c83;margin-bottom:6px}.integration-modal-intro .badge{font-size:8px}.modal-body>.notice{font-size:10px}.auth-page{flex-direction:column;padding:35px 25px;gap:28px}.auth-brand{display:flex;flex-direction:column;align-items:center;text-align:center}.auth-brand>.brand-mark{height:44px;width:45px;font-size:32px;border-radius:12px;margin-bottom:13px}.auth-brand>h1{font-size:24px;letter-spacing:-.7px;font-weight:700;color:#3d587d}.auth-brand>p{color:#626c7b;font-size:11px;margin-top:5px}.auth-card{padding:30px 33px;width:410px;max-width:100%}.auth-card>h2{font-size:21px;letter-spacing:-.5px;color:#556e91;font-weight:550;margin-top:14px}.auth-card>p.muted{text-align:left;font-size:11px;color:#626d7d;line-height:1.8;margin:7px 0 24px}.auth-card .form-grid{grid-template-columns:1fr;gap:17px}.auth-card .form-field{margin-bottom:0}.auth-card .form-field>span{font-size:10px;color:#606c7e}.auth-card input{font-size:12px;height:42px}.auth-card form>.btn{display:flex;width:100%;margin-top:22px;font-size:11px;height:40px;gap:10px}.auth-card form>.btn svg{height:14px;width:14px}.auth-card>.auth-note{display:flex;align-items:center;justify-content:center;gap:5px;font-size:8px;text-align:center;margin:21px 0 0;color:#656d79}.auth-note>svg{height:11px;width:11px;opacity:.8}.auth-footer{font-size:9px;letter-spacing:.3px;color:#656d77;margin-top:-7px}.sidebar nav .nav-item{min-height:58px}.sidebar .nav-bottom .nav-item{min-height:54px}
@media (max-height:760px) and (min-width:601px){.sidebar{padding-top:16px;padding-bottom:12px}.sidebar .brand{height:53px;gap:6px;margin-bottom:15px}.brand-mark{height:35px;width:36px;font-size:26px}.brand-caption{font-size:7px!important}.sidebar nav{gap:2px}.sidebar nav .nav-item{min-height:53px;gap:5px;padding-top:7px;padding-bottom:7px;font-size:8px}.sidebar nav .nav-item svg{height:20px;width:20px}.sidebar .nav-bottom{padding-top:8px;gap:5px}.sidebar .nav-bottom .nav-item{min-height:49px;font-size:8px}.sidebar .nav-bottom .nav-item .avatar{height:26px;width:26px;font-size:9px}}
@media (max-height:640px) and (min-width:601px){.sidebar{padding-top:12px;padding-bottom:9px}.sidebar .brand{height:46px;gap:5px;margin-bottom:11px}.brand-mark{height:31px;width:32px;font-size:23px;border-radius:9px}.brand-caption{font-size:6px!important}.sidebar nav .nav-item{min-height:45px;gap:3px;font-size:7px;padding-top:5px;padding-bottom:5px}.sidebar nav .nav-item svg{height:18px;width:18px}.sidebar .nav-bottom{padding-top:6px}.sidebar .nav-bottom .nav-item{min-height:44px;font-size:7px}.sidebar .nav-bottom .nav-item .avatar{height:24px;width:24px;font-size:8px}}
@media(max-width:600px){.sidebar nav .nav-item{min-height:0}.form-field>span{font-size:10px}.modal-body>p{font-size:10px;line-height:1.9}.modal-body>.cell-person h3{font-size:12px}.modal-body>.cell-person p{font-size:9px}.modal-body>h3{font-size:11px}.modal-body>select{font-size:10px;padding:10px}.integration-modal-intro h3{font-size:11px}.auth-page{padding:26px 22px;gap:23px}.auth-brand>.brand-mark{height:39px;width:40px;font-size:29px;margin-bottom:12px}.auth-brand>h1{font-size:22px}.auth-brand>p{font-size:10px}.auth-card{padding:26px 25px;width:100%;max-width:390px}.auth-card>h2{font-size:20px;margin-top:13px}.auth-card>p.muted{font-size:10px;margin-bottom:22px}.auth-card .form-grid{gap:16px}.auth-card .form-field>span{font-size:10px}.auth-card form>.btn{font-size:11px;height:41px;margin-top:21px}.auth-footer{font-size:8px}.auth-card>.auth-note{font-size:7px;margin-top:20px}}

/* Readable hierarchy for dense working screens. */
.page-heading h1{color:#304764}.conversation-line>strong{color:#425a7a}.conversation.selected .conversation-line>strong{color:#42638e}.conversation-subject{color:#606d7f}.conversation-line>.conversation-preview{color:#626d7e}.conversation-footer{color:#626c7b}.conversation-line>time{color:#636d7c}.deal-fields>.field>span{color:#596e8b}.deal-section .field>span{color:#5c6e86}.deal-section>strong{color:#566e8e}.deal-section h3{color:#5c6d82}.mini-task{color:#5c6d84}.mini-task>span>small{color:#616c7b}.text-btn{color:#596d8c}.chat-panel>.task-strip strong{color:#5e6d82}.message-meta{color:#646d7c}.composer textarea{color:#586e8a}.card h3,.card-heading h3{color:#576e8a}.deal-card h3{color:#576e8f}.deal-card>p{color:#616d7d}.deal-card>strong{color:#586e8c}.deal-card-footer{color:#606c7e}.kanban-header b{color:#5a6d86}.table-wrap td{color:#5c6e86}.table-wrap td b{color:#566e8f}.table-wrap td small{color:#626c7c}.table-wrap th{color:#616d7f}.person-card>h3{color:#566e90}.person-card>p{color:#616c7d}.person-meta{color:#606d7f}.person-stats>span>b{color:#5a6e8a}.integration-card>h3{color:#556d91}.integration-card>p{color:#5f6c7e}.integration-detail{color:#616c7d}.integration-card>.btn{color:#5a6c88}.automation-info h3{color:#576e8f}.automation-info p{color:#606d7e}.automation-info .automation-flow{color:#5c6c82}.funnel-row{color:#5e6c81}.city-row{color:#5d6e85}.city-row strong{color:#5d6e85}.permission-overview strong{color:#596d8a}.permission-overview span{color:#5e6d81}.notice{color:#5b6d87}.task-row strong{color:#596e86}.task-row small{color:#616d7e}.auth-card>h2{color:#526e94}.auth-card>p.muted{color:#5e6d82}.auth-card .form-field>span{color:#5c6e84}.form-field>span{color:#5d6d84}.form-field input,.form-field select,.form-field textarea{color:#576e8f}.modal-body>p{color:#5c6d85}.modal-body>.cell-person h3{color:#576d8d}.modal-body>h3{color:#576e8c}.integration-modal-intro h3{color:#5a6e8a}.infrastructure h3{color:#586e8b}.infrastructure p{color:#5f6d81}
/* Original KOBA Estate artwork. Paths preserved from owner-provided vector files. */
.brand{min-height:104px;gap:3px}.brand .brand-img{display:block;width:49px;height:57px;object-fit:contain}.brand-caption{display:flex;flex-direction:column;align-items:center;font-weight:750;letter-spacing:2px;font-size:10px;line-height:1.15}.brand-caption>span{font-size:6px;letter-spacing:2.8px;font-weight:450;margin-top:3px}.workspace-name{display:flex;align-items:center;gap:10px}.workspace-name>img{width:31px;height:31px;object-fit:contain}.workspace-name>span:not(.crm-label){display:flex;flex-direction:column;line-height:.95;letter-spacing:.4px;font-size:18px;color:#143f33}.workspace-name small{font-size:7px;letter-spacing:3.2px;font-weight:500;margin-top:5px}.workspace-name .crm-label{font-size:10px;border-left:1px solid #d8e1e0;padding-left:12px;margin-left:2px;letter-spacing:1.4px}.auth-brand .auth-logo{width:115px;height:130px;object-fit:contain;margin-bottom:16px}.auth-brand h1{font-size:37px;letter-spacing:3px;color:#143f33;margin:0;line-height:1.1}.auth-brand h1>span{display:block;font-weight:400;font-size:15px;letter-spacing:9px;margin:9px 0 22px}.auth-product{font-size:13px;letter-spacing:1px;color:#5e6f6c}.auth-brand>p{color:#616f6a}.sidebar{background:#17382f}.nav-item.active{background:#ffffff12}.nav-item.active::before{background:#b7c8a9}.auth-page{background:radial-gradient(ellipse at 20% 35%,#e9f0e8,transparent 60%),#f4f6f4}.auth-brand{color:#143f33}
@media(max-height:760px){.brand{min-height:87px}.brand .brand-img{width:40px;height:43px}}
@media(max-width:600px){.brand{min-height:unset}.brand .brand-img{width:35px;height:39px}.brand-caption{display:none}.workspace-name>img{width:24px}.auth-brand .auth-logo{height:85px;width:80px}.auth-brand h1{font-size:28px}.auth-brand h1>span{font-size:11px;letter-spacing:7px}}

/* Telegram personal account connection. */
.modal.telegram-modal,
.modal:has(.telegram-setup){max-width:640px}
.telegram-setup{--tg-blue:#2f9dcb;--tg-pale:#edf7fc;--tg-border:#d9ecf7;--setup-green:#367b61;min-width:0}
.telegram-setup .connection-status{display:flex;align-items:center;gap:13px;padding:15px 16px;background:#f6f9fb;border:1px solid #e4ecf2;border-radius:10px;margin-bottom:21px}
.telegram-setup .status-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;background:#e7f3fb;border:1px solid #d9ebf6;color:var(--tg-blue);border-radius:12px;font-size:21px;line-height:1}
.telegram-setup .status-icon svg{height:21px;width:21px}
.telegram-setup .status-description{min-width:0;flex:1;color:#5c6e7e;font-size:11px;line-height:1.7}
.telegram-setup .status-description strong,
.telegram-setup .status-description h3{display:block;color:#426077;font-size:12px;font-weight:600;line-height:1.5;margin-bottom:3px}
.telegram-setup .status-description p{font-size:10px;line-height:1.7;margin:0;color:#606d79}
.telegram-setup .status-description small{display:block;color:#636e78;font-size:9px;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}
.telegram-setup .connection-status.connected,
.telegram-setup .connection-status.success{background:#f1f8f3;border-color:#dcebe1}
.telegram-setup .connection-status.connected .status-icon,
.telegram-setup .connection-status.success .status-icon{background:#e4f2e9;border-color:#d6e8dc;color:#3e775b}
.telegram-setup .connection-status.error{background:#fff7f6;border-color:#f1ddda}
.telegram-setup .connection-status.error .status-icon{background:#fbeae6;border-color:#f2d9d2;color:#916057}
.telegram-setup .connection-status>.badge{font-size:8px;flex-shrink:0}
.telegram-setup .connection-steps{display:flex;align-items:flex-start;gap:0;margin:0 0 24px;padding:0;list-style:none;counter-reset:telegram-step}
.telegram-setup .connection-steps>div,
.telegram-setup .connection-steps>li,
.telegram-setup .connection-steps>.step,
.telegram-setup .connection-steps>span{position:relative;flex:1;min-width:0;display:flex;align-items:center;gap:7px;font-size:9px;font-weight:500;line-height:1.5;color:#646d75;padding:0 10px 11px 0;border-bottom:2px solid #eaf0f5}
.telegram-setup .connection-steps>div:before,
.telegram-setup .connection-steps>li:before,
.telegram-setup .connection-steps>.step:before,
.telegram-setup .connection-steps>span:before{counter-increment:telegram-step;content:counter(telegram-step);display:flex;align-items:center;justify-content:center;width:20px;height:20px;min-width:20px;border-radius:50%;background:#f1f5f8;border:1px solid #e7edf2;color:#646d76;font-size:8px;font-weight:600;line-height:1}
.telegram-setup .connection-steps>.active{color:#417289;border-bottom-color:#68b3d5;font-weight:600}
.telegram-setup .connection-steps>.active:before{color:#fff;background:#65afd2;border-color:#65afd2;box-shadow:0 0 0 3px #edf7fc}
.telegram-setup .connection-steps>.done{color:#5a7262;border-bottom-color:#b7d5bd}
.telegram-setup .connection-steps>.done:before{content:'✓';color:#4f735e;background:#e9f4ec;border-color:#d6e9db;font-size:10px}
.telegram-setup .connection-steps>div:last-child,
.telegram-setup .connection-steps>li:last-child,
.telegram-setup .connection-steps>.step:last-child,
.telegram-setup .connection-steps>span:last-child{padding-right:0}
.telegram-setup .connection-steps>div>span:first-child,
.telegram-setup .connection-steps>li>span:first-child{min-width:0}
.telegram-setup .setup-intro{margin-bottom:20px}
.telegram-setup .setup-intro h3{font-size:13px;font-weight:600;color:#49677c;line-height:1.5;margin:0 0 7px}
.telegram-setup .setup-intro p,
.telegram-setup>p{color:#5f6e7b;font-size:11px;line-height:1.8;margin:0 0 12px}
.telegram-setup .setup-intro p:last-child{margin-bottom:0}
.telegram-setup .form-grid{gap:16px 18px;margin:0 0 18px}
.telegram-setup .form-field{min-width:0;gap:7px}
.telegram-setup .form-field>span{color:#5d6e7d;font-size:10px;line-height:1.5}
.telegram-setup .form-field input,
.telegram-setup .form-field select{height:40px;color:#527085;font-size:12px;background:#fcfdff;border-color:#e0eaf2;border-radius:7px;max-width:100%;min-width:0}
.telegram-setup .form-field input:focus{border-color:#89bdd7!important;box-shadow:0 0 0 3px #eaf5fc}
.telegram-setup .form-field input[autocomplete="one-time-code"]{letter-spacing:5px;font-size:20px;font-variant-numeric:tabular-nums;height:48px}
.telegram-setup .form-field input[type="password"]{letter-spacing:1px}
.telegram-setup .form-field small{font-size:9px;line-height:1.7;color:#626c76}
.telegram-setup .credential-help{display:block;padding:13px 14px;border:1px solid var(--tg-border);border-radius:8px;background:#f4f9fc;color:#5f6e7c;font-size:10px;line-height:1.85;margin:0 0 20px;overflow-wrap:anywhere}
.telegram-setup .credential-help strong{font-size:10px;font-weight:600;color:#5a6e7e}
.telegram-setup .credential-help p{font-size:10px;line-height:1.85;color:#5f6e7c;margin:3px 0 0}
.telegram-setup .credential-help a{color:#38738e;text-decoration:underline;text-underline-offset:2px;font-size:10px;font-weight:500}
.telegram-setup .credential-help a:hover{color:#21739b}
.telegram-setup .credential-help code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px;color:#556e81;background:#eaf3f9;border-radius:3px;padding:1px 4px}
.telegram-setup .credential-help>svg{width:15px;height:15px;color:#586f7e;margin-right:5px;vertical-align:-3px}
.telegram-setup .telegram-account-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;padding:17px 18px;background:#fbfcfd;border:1px solid #e7eef3;border-radius:9px;margin:0 0 19px}
.telegram-setup .telegram-account-summary>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.telegram-setup .telegram-account-summary>div>span:first-child,
.telegram-setup .telegram-account-summary small,
.telegram-setup .telegram-account-summary dt{font-size:9px;color:#646d76;font-weight:400;line-height:1.6}
.telegram-setup .telegram-account-summary strong,
.telegram-setup .telegram-account-summary b,
.telegram-setup .telegram-account-summary dd{font-size:11px;line-height:1.7;color:#566e80;font-weight:550;overflow-wrap:anywhere;margin:0}
.telegram-setup .telegram-account-summary .badge{align-self:flex-start;font-size:8px}
.telegram-setup .telegram-account-summary .account-identity{grid-column:1/-1;flex-direction:row;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid #e9eff4}
.telegram-setup .telegram-account-summary .account-identity>.avatar{width:36px;height:36px;font-size:11px;background:#e9f3fb;color:#4e7184}
.telegram-setup .telegram-account-summary .account-identity strong{font-size:12px;display:block}
.telegram-setup .connection-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:21px 0 0;padding-top:17px;border-top:1px solid #edf1f5}
.telegram-setup .connection-actions .btn{font-size:10px;min-height:34px;gap:6px;margin:0}
.telegram-setup .connection-actions .btn.primary{background:#3e8064;border-color:#3e8064;box-shadow:0 3px 6px #367b6112}
.telegram-setup .connection-actions .btn.primary:hover{background:#347356;border-color:#347356}
.telegram-setup .connection-actions .btn.secondary{color:#5e6d7c;border-color:#dfe8ef}
.telegram-setup .connection-actions .btn.ghost{color:#636d78}
.telegram-setup .connection-actions .btn svg{height:14px;width:14px}
.telegram-setup .connection-actions>.spacer{flex:1}
.telegram-setup .integration-error{display:flex;align-items:flex-start;gap:8px;border:1px solid #f0dcd8;border-left:3px solid #d9a59a;border-radius:7px;background:#fff7f5;padding:11px 13px;margin:0 0 17px;color:#84645d;font-size:10px;line-height:1.8;overflow-wrap:anywhere}
.telegram-setup .integration-error>svg{height:15px;width:15px;margin-top:2px;flex-shrink:0;color:#82655e}
.telegram-setup .integration-error p{font-size:10px;line-height:1.8;margin:0;color:inherit}
.telegram-setup .setup-note,
.telegram-setup .sensitive-hint{display:flex;align-items:flex-start;gap:7px;margin:15px 0 0;color:#636d76;font-size:9px;line-height:1.8}
.telegram-setup .setup-note>svg,
.telegram-setup .sensitive-hint>svg{width:12px;height:12px;flex-shrink:0;opacity:.8;margin-top:2px}
.telegram-setup .setup-note p,
.telegram-setup .sensitive-hint p{font-size:9px;color:inherit;line-height:1.8;margin:0}
.telegram-setup .setup-note strong,
.telegram-setup .sensitive-hint strong{font-size:9px;font-weight:550;color:#5f6e79}
.telegram-setup .sync-result{display:flex;align-items:flex-start;gap:9px;background:#f0f7f2;border:1px solid #dfece3;border-radius:8px;padding:12px 14px;margin:17px 0;color:#5b7163;font-size:10px;line-height:1.8}
.telegram-setup .sync-result>svg{height:16px;width:16px;flex-shrink:0;color:#587161;margin-top:2px}
.telegram-setup .sync-result strong{font-weight:550;color:#587261;font-size:10px}
.telegram-setup .sync-result p{font-size:10px;line-height:1.8;margin:0;color:inherit}
.telegram-setup .sync-result small{font-size:9px;color:#607066;display:block;margin-top:3px}
.integration-card.connected{border-color:#cfe4d6;box-shadow:0 3px 12px #367b6107}
.integration-card.connected .badge.green{background:#e9f5ed;color:#50735b;border:1px solid #dceee2}
.integration-card.connected>.btn{border-color:#d9e8df;color:#557361;background:#fbfdfb}
.integration-card.connected .channel-connect-details,
.channel-connect-details{display:flex;flex-direction:column;gap:3px;padding:10px 0 0;margin:2px 0 16px;border-top:1px solid #edf3ef;min-width:0;font-size:9px;color:#606f66;line-height:1.7}
.channel-connect-details strong{font-size:10px;line-height:1.7;color:#5c7165;font-weight:550;overflow-wrap:anywhere}
.channel-connect-details small{font-size:8px;line-height:1.7;color:#636e67}
.channel-connect-details>span{overflow-wrap:anywhere}
.telegram-setup button[aria-busy="true"]{cursor:wait;opacity:.7}
@media(max-width:600px){
 .modal.telegram-modal,.modal:has(.telegram-setup){width:100%;max-width:100%}
 .telegram-setup .connection-status{padding:12px;gap:10px;margin-bottom:19px;border-radius:8px;align-items:flex-start}
 .telegram-setup .status-icon{width:34px;height:34px;flex-basis:34px;border-radius:10px;font-size:18px}
 .telegram-setup .status-icon svg{height:18px;width:18px}
 .telegram-setup .status-description strong,.telegram-setup .status-description h3{font-size:11px;line-height:1.6}
 .telegram-setup .status-description p{font-size:9px;line-height:1.8}
 .telegram-setup .status-description small{font-size:8px}
 .telegram-setup .connection-status>.badge{font-size:7px;max-width:80px;white-space:normal}
 .telegram-setup .connection-steps{margin-bottom:21px}
 .telegram-setup .connection-steps>div,.telegram-setup .connection-steps>li,.telegram-setup .connection-steps>.step,
.telegram-setup .connection-steps>span{gap:5px;padding-right:6px;font-size:8px;align-items:center;padding-bottom:10px;line-height:1.5}
 .telegram-setup .connection-steps>div:before,.telegram-setup .connection-steps>li:before,.telegram-setup .connection-steps>.step:before,
.telegram-setup .connection-steps>span:before{height:18px;width:18px;min-width:18px;font-size:7px}
 .telegram-setup .connection-steps>.done:before{font-size:9px}
 .telegram-setup .setup-intro{margin-bottom:18px}
 .telegram-setup .setup-intro h3{font-size:12px;margin-bottom:6px}
 .telegram-setup .setup-intro p,.telegram-setup>p{font-size:10px;line-height:1.85}
 .telegram-setup .form-grid{grid-template-columns:1fr;gap:15px;margin-bottom:16px}
 .telegram-setup .form-field>span{font-size:10px}
 .telegram-setup .form-field input,.telegram-setup .form-field select{font-size:12px;min-height:42px;height:42px}
 .telegram-setup .form-field small{font-size:9px}
 .telegram-setup .form-field input[autocomplete="one-time-code"]{font-size:20px;height:48px}
 .telegram-setup .credential-help{font-size:9px;padding:12px;line-height:1.9;margin-bottom:18px}
 .telegram-setup .credential-help p,.telegram-setup .credential-help a,.telegram-setup .credential-help strong{font-size:9px}
 .telegram-setup .telegram-account-summary{padding:14px;gap:13px 15px;margin-bottom:17px}
 .telegram-setup .telegram-account-summary>div>span:first-child,.telegram-setup .telegram-account-summary small,.telegram-setup .telegram-account-summary dt{font-size:8px}
 .telegram-setup .telegram-account-summary strong,.telegram-setup .telegram-account-summary b,.telegram-setup .telegram-account-summary dd{font-size:10px}
 .telegram-setup .telegram-account-summary .account-identity{gap:9px;padding-bottom:11px}
 .telegram-setup .telegram-account-summary .account-identity strong{font-size:11px}
 .telegram-setup .connection-actions{gap:7px;margin-top:18px;padding-top:15px}
 .telegram-setup .connection-actions .btn{font-size:9px;min-height:34px;padding:8px 11px;gap:5px}
 .telegram-setup .connection-actions .btn svg{height:13px;width:13px}
 .telegram-setup .integration-error{font-size:9px;padding:10px 11px;gap:7px;margin-bottom:15px}
 .telegram-setup .integration-error p{font-size:9px}
 .telegram-setup .setup-note,.telegram-setup .sensitive-hint{font-size:8px;line-height:1.9;margin-top:13px}
 .telegram-setup .setup-note p,.telegram-setup .sensitive-hint p,.telegram-setup .setup-note strong,.telegram-setup .sensitive-hint strong{font-size:8px}
 .telegram-setup .sync-result{padding:11px 12px;font-size:9px;margin:15px 0;gap:8px}
 .telegram-setup .sync-result p,.telegram-setup .sync-result strong{font-size:9px}
 .telegram-setup .sync-result small{font-size:8px}
 .channel-connect-details{font-size:9px;margin-bottom:15px}
 .channel-connect-details strong{font-size:10px}
}
@media(max-width:390px){
 .telegram-setup .connection-steps>div,.telegram-setup .connection-steps>li,.telegram-setup .connection-steps>.step,
.telegram-setup .connection-steps>span{font-size:7px;gap:4px}
 .telegram-setup .connection-actions{justify-content:stretch}
 .telegram-setup .connection-actions .btn{flex:1}
 .telegram-setup .connection-actions>.spacer{display:none}
 .telegram-setup .telegram-account-summary{grid-template-columns:1fr}
}

/* CRM workspace: readable text, compact cards and shared editing controls. */
:root{
 --nav:#17382f;--ink:#24362f;--muted:#53645d;--border:#dce3df;
 --blue:#315fc8;--green:#236b4d;--control-border:#b9c7bf;
 --surface-muted:#f1f5f2;--focus-ring:#376dca55;
 color:var(--ink);
}
body{color:var(--ink)}
h1,h2,h3,h4{color:var(--ink)}
input,select,textarea{color:var(--ink);caret-color:#236b4d}
input::placeholder,textarea::placeholder{color:#596b62;opacity:1}
input:focus,select:focus,textarea:focus{border-color:#3d6e56!important;box-shadow:0 0 0 3px #3677561a}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}
button:disabled,.btn:disabled{opacity:1;color:#596a60;background:#edf1ee;border-color:#d5ddd7;box-shadow:none}
button[aria-busy="true"]{opacity:1}
.muted,.text-small,.form-field>span,.form-field>label{color:var(--muted)}
.form-field input,.form-field select,.form-field textarea,.modal-body>select{color:var(--ink);border-color:var(--control-border)}
.form-field>span,.form-field>label{font-size:12px;font-weight:550}
.form-field small,.form-help,.sensitive-hint,.setup-note{color:var(--muted);font-size:11px;line-height:1.55}
.btn{font-size:12px;min-height:34px}
.btn.small,.modal .btn{font-size:11px;min-height:30px}
.btn.secondary,.btn.ghost,.text-btn,.icon-btn{color:#40584b}
.btn.primary{color:#fff;background:var(--blue);border-color:var(--blue)}
.btn.primary:hover{background:#264fad;border-color:#264fad}
.btn.danger,.text-danger{color:#a1343e}
.badge{color:#44594b;font-size:10px}
.badge.green,.integration-card.connected .badge.green{color:#21613e;background:#e6f3e9}
.badge.blue{color:#2e5398;background:#eaf0fb}
.badge.orange{color:#845211;background:#fff2da}
.badge.gray{color:#4d5c55;background:#edf1ee}
.badge.purple{color:#62408e;background:#f0eafb}
.badge.red{color:#9c3540;background:#ffeded}
.sidebar{background:#17382f;color:#edf4ee}
.sidebar .nav-item{color:#d4e3d8;font-size:10px;letter-spacing:0;font-weight:550}
.sidebar .nav-item:hover,.sidebar .nav-item.active{color:#fff;background:#ffffff17}
.sidebar .nav-item.active::before{background:#c8dcb7}
.sidebar .nav-bottom .avatar{color:#f0f6f1}
.brand-caption{color:#eff5eb!important}
.brand-caption>span{color:#e1ebdc}
.nav-item .badge,.nav-item .nav-count{background:#315fc8;color:#fff}
.deal-hero,.deal-hero h2,.deal-hero h3,.deal-hero h4{color:#fff}
.deal-hero .deal-id,.deal-hero .icon-btn,.deal-hero .tabs button,.deal-hero .tabs button span,.deal-stage-label{color:#d6e5e7}
.deal-hero .tabs button.active,.deal-stage-label strong{color:#fff}
.deal-hero .pipeline-label{color:#d6e5e7;font-size:11px}
.deal-hero .stage-select,.deal-hero .stage-select:disabled{color:#f2f7f5;opacity:1;font-size:13px;min-height:28px}
.deal-hero .stage-select option{color:#f2f7f5;background:#284c57}
.deal-hero .deal-tags>span,.deal-hero .deal-tags>.tag-chip{color:#edf5f0;border-color:#75948b;background:#ffffff0b;font-size:11px}
.deal-hero .deal-tags>button{color:#edf5f0;border-color:#9bb6a8;min-width:24px;min-height:24px;font-size:14px}
.topbar .workspace-name,.topbar .crm-label{color:#244f3c}
.breadcrumbs,.header-actions,.role-selector,.profile-button small,.page-heading small,.page-heading .count{color:var(--muted)}
.topbar{padding-left:20px;padding-right:20px}
.subbar{padding-left:20px;padding-right:20px}
.content{padding:22px}
.view-toolbar{margin-bottom:16px}
.filter-row select,.subbar select,.city-filter{color:#344e3d;font-size:12px}
.search input,.search-input{color:var(--ink);font-size:12px}
.search input::placeholder,.search-input::placeholder,.composer textarea::placeholder{color:#596b62;opacity:1}
.segmented button{color:#4f6256;font-size:11px}
.segmented button.active{color:#234e39;font-weight:650}
.table-wrap th{color:#4b6054;font-size:11px}
.table-wrap td{color:#304b3a;font-size:12px;padding-top:10px;padding-bottom:10px}
.table-wrap td b{color:#243e2d;font-size:12px}
.table-wrap td small{color:#53675a;font-size:11px}
.person-card>h3,.integration-card>h3,.card h3,.card-heading h3{color:#294331}
.person-card>p,.integration-card>p,.integration-detail,.person-meta,.infrastructure p{color:var(--muted);font-size:12px}
.person-card .person-stats,.integration-card .integration-footer small,.infrastructure>.badge{font-size:11px}
.notice,.integration-notice,.modal .notice,.modal .integration-explanation,.modal-body>p{color:#425c4b;font-size:12px;line-height:1.65}
.notice>svg{color:#3f7052}
.toast{color:#2a4a35;font-size:12px}
.toast.error{color:#973943}
.modal-header h2,.modal-body>h3,.modal-body>.cell-person h3{color:#2b4836}
.modal-body>.cell-person p,.modal-body .form-grid+p{color:var(--muted);font-size:12px}
.modal .checkbox-row{color:#405c49;font-size:12px}
.auth-card>h2{color:#274b36}
.auth-card>p.muted,.auth-brand>p,.auth-card>.auth-note,.auth-footer{color:#526959}
.auth-card .form-field>span{color:#405b49;font-size:12px}
.auth-card form>.btn{font-size:13px}
.telegram-setup .status-description,.telegram-setup .status-description p,.telegram-setup .status-description small,
.telegram-setup .form-field>span,.telegram-setup .form-field small,.telegram-setup .sensitive-hint,
.telegram-setup .setup-note,.channel-connect-details,.channel-connect-details small{color:#50655b;font-size:11px}
.telegram-setup .status-description strong,.telegram-setup .status-description h3,.channel-connect-details strong{color:#2e503d;font-size:12px}
.telegram-setup .credential-help,.telegram-setup .credential-help p,.telegram-setup .credential-help strong{color:#425f6a;font-size:12px}
.telegram-setup .credential-help a{color:#235f84;font-size:12px}
.telegram-setup .connection-steps>div,.telegram-setup .connection-steps>li,.telegram-setup .connection-steps>.step,.telegram-setup .connection-steps>span{color:#5b6b64;font-size:11px}
.telegram-setup .connection-steps>.active{color:#245a72}
.telegram-setup .connection-steps>.done{color:#306144}
.telegram-setup .integration-error,.telegram-setup .integration-error p{color:#984d3c;font-size:12px}
.telegram-setup .sync-result,.telegram-setup .sync-result strong,.telegram-setup .sync-result small{color:#356146;font-size:11px}
.telegram-setup .connection-actions .btn.secondary,.integration-card.connected>.btn{color:#345b43}

/* Conversations and deal cards keep useful density without microscopic text. */
.conversation{min-height:79px;padding:11px 12px;gap:9px}
.conversation .avatar{width:34px;height:34px;margin-top:1px;color:#365444}
.conversation-line{gap:6px;align-items:center}
.conversation-line>strong,.conversation-title{font-size:12px;font-weight:650;color:#2c4135;line-height:1.35}
.conversation.selected .conversation-line>strong{color:#254f3b}
.conversation-line>time,.conversation-time{font-size:10px;color:#53675b}
.conversation-subject,.conversation-line>.conversation-preview,.conversation-preview{font-size:11px;line-height:1.45;color:#53665a}
.conversation.selected .conversation-line>.conversation-preview{color:#3f5d4b}
.conversation-preview{margin-top:3px}
.conversation-preview strong{color:#405a48}
.conversation-footer{color:#54695c;font-size:10px;margin-top:4px;gap:7px}
.conversation-footer>span:first-child,.conversation.selected .conversation-footer>span:first-child{color:#4a6754;font-size:10px}
.conversation .unread,.conversation-line>.unread{font-size:10px;line-height:18px;min-width:18px;height:18px;color:#fff;background:#315fc8}
.list-toolbar{padding:12px}
.list-toolbar .list-title,.list-toolbar .list-tabs,.list-toolbar .list-tabs button,.list-toolbar .list-count{font-size:11px;color:#4a6053}
.list-footer{font-size:10px;color:#54695d}
.deal-fields{padding:14px 16px 10px}
.deal-fields>.field>span,.deal-section .field>span,.field>label,.field>.field-label{color:#4f6358;font-size:11px}
.field{min-height:34px}
.field input,.field select,.field .field-value{font-size:12px;color:#2e4938}
.deal-section{padding:13px 16px}
.deal-section h3,.deal-section>strong{color:#35533f;font-size:12px}
.deal-note,.deal-section .mini-row,.checklist label{color:#506756;font-size:11px}
.chat-header strong{font-size:13px;color:#2b4434}
.chat-header small,.message-meta,.chat-day{font-size:11px;color:#526659}
.chat-header .chat-person small{font-size:11px;color:#526659}
.message .bubble,.message.out .bubble{color:#2f4637;font-size:13px;line-height:1.55}
.message.note .bubble{color:#6d552c;font-size:12px;line-height:1.55}
.composer textarea{font-size:13px;color:#2c4736;line-height:1.5}
.composer-head,.compose-toolbar,.task-strip,.mini-task,.mini-task>span>small{font-size:11px;color:#4b6453}
.chat-panel>.task-strip strong{color:#355c43}
.pipeline-summary{padding:11px 20px;color:#4b6052;font-size:12px}
.pipeline-summary b{color:#23442f}
.kanban,.content>.kanban{gap:10px;padding:14px 20px 24px;align-items:flex-start}
.content>.kanban{padding-left:0;padding-right:0}
.kanban-column{flex:0 0 250px;width:250px;min-width:250px;max-width:250px}
.kanban-header,.kanban-heading{padding:8px 3px 10px;gap:4px;min-height:54px}
.kanban-header b,.kanban-heading h3{color:#2f4b38;font-size:12px;font-weight:650}
.kanban-header .count{color:#425c49;font-size:11px;font-variant-numeric:tabular-nums}
.kanban-header>small,.kanban-heading small,.kanban-heading .stage-total{color:#54695a;font-size:11px}
.kanban-cards{display:flex;flex-direction:column;gap:8px}
.deal-card{padding:8px;border-radius:7px;margin:0;box-shadow:0 1px 3px #193a2710;border-color:#d6e0d8}
.deal-card:hover{border-color:#7d9b85;box-shadow:0 3px 9px #193a2714}
.deal-card .card-topline{color:#4d6555;font-size:10px;gap:5px;margin-bottom:5px}
.deal-card .card-topline>span{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden}
.deal-card .card-topline>svg{flex:0 0 15px;width:15px;height:15px;color:#56715e}
.deal-card .card-topline .channel-icon{width:17px;height:17px;flex-basis:17px;border-radius:5px;font-size:10px}
.deal-card .card-topline .channel-icon svg{width:11px;height:11px}
.deal-card h3{font-size:12px;line-height:1.35;font-weight:650;color:#284332;margin:0 0 4px;overflow-wrap:anywhere}
.deal-card>p,.deal-card .deal-client{font-size:11px;line-height:1.4;color:#4b6454;margin:0 0 5px}
.deal-card>strong,.deal-card .deal-price{color:#2c4c36;font-size:13px;font-weight:650;margin:3px 0 0}
.deal-card .deal-tags{gap:3px;margin-top:6px}
.deal-card .deal-tags>span{font-size:10px;padding:2px 4px;color:#3f6248;border-color:#d5e3d8;background:#eef5ef}
.deal-card-footer,.deal-card .deal-foot{font-size:10px;line-height:1.3;color:#4e6656;padding-top:7px;margin-top:7px;gap:5px}
.deal-card-footer .avatar,.deal-card .deal-foot .avatar{width:20px;height:20px;font-size:9px;color:#365d40}
.deal-card-footer svg{color:#526c5b;width:12px;height:12px}
.add-card,.kanban-add{font-size:11px;line-height:1.4;color:#41634b;padding:7px 8px;min-height:31px}
.deal-avatar{width:36px;height:36px;flex:0 0 36px;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #d4dfd6;border-radius:9px;background:#e7efe8;color:#365b3f;font-weight:650;font-size:12px}
.deal-avatar img,img.deal-avatar{object-fit:cover;max-width:100%}
.deal-avatar img{width:100%;height:100%}
.deal-title-input{display:block;width:100%;min-width:0;margin:5px -5px 10px;padding:5px;border:1px solid transparent;border-radius:5px;background:transparent;font-size:18px;line-height:1.4;font-weight:650;color:#294332}
.deal-title-input:hover{border-color:#c5d5c8;background:#f4f8f4}
.deal-title-input:focus{background:#fff;border-color:#74967d}
.deal-hero .deal-title-input{color:#fff;caret-color:#fff;font-size:18px}
.deal-hero .deal-title-input:hover{border-color:#ffffff55;background:#ffffff0a}
.deal-hero .deal-title-input:focus{color:#fff;background:#ffffff10;border-color:#bbd6c4!important;box-shadow:0 0 0 2px #b2d1bd28}
.deal-hero .deal-title-input::placeholder{color:#deebe1}
.bulk-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;position:sticky;top:0;z-index:12;padding:9px 12px;border:1px solid #bacdbf;border-radius:7px;background:#f0f7f1;color:#2f543b;box-shadow:0 3px 12px #264d3010;margin:0 0 12px;font-size:12px}
.bulk-toolbar strong{font-weight:650;margin-right:5px}
.bulk-toolbar .btn{min-height:29px;padding:5px 9px;font-size:11px}
.bulk-toolbar select{max-width:190px;min-height:29px;color:#304e39;border:1px solid #bdcfbf;border-radius:5px;background:#fff;padding:3px 25px 3px 7px}

/* Automation cards align by funnel stage, with horizontal overflow on narrow screens. */
.automation-board{display:flex;align-items:flex-start;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-gutter:stable;padding:4px 1px 18px;min-width:0}
.automation-column{flex:0 0 250px;width:250px;min-width:0;display:flex;flex-direction:column;gap:8px;padding:8px;border:1px solid #d9e3db;border-radius:8px;background:#f0f4f1}
.automation-column>header,.automation-column>.column-header,.automation-column>.automation-column-header{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:3px 2px 9px;min-height:40px;border-bottom:2px solid var(--stage-color,#a9c2ae);color:#304c38}
.automation-column>header h3,.automation-column>.column-header h3,.automation-column>.automation-column-header h3{color:#294831;font-size:12px;line-height:1.4;font-weight:650;margin:0}
.automation-column>header small,.automation-column>.column-header small,.automation-column>.automation-column-header small{font-size:11px;color:#536c59}
.automation-column-body,.automation-rules{display:flex;flex-direction:column;gap:8px;min-height:70px}
.automation-rule{position:relative;padding:10px;border:1px solid #d6e2d9;border-radius:6px;background:white;color:#3f5b46;font-size:12px;line-height:1.5;box-shadow:0 1px 3px #183c2508;overflow-wrap:anywhere}
.automation-rule h3,.automation-rule h4,.automation-rule>strong{color:#294831;font-size:12px;line-height:1.4;font-weight:650}
.automation-rule p,.automation-rule small,.automation-rule .muted{font-size:11px;line-height:1.5;color:#536c58}
.automation-rule>p{margin-top:5px}
.automation-rule>header,.automation-rule-header,.automation-rule>footer,.automation-rule-footer{display:flex;align-items:center;justify-content:space-between;gap:6px}
.automation-rule>footer,.automation-rule-footer{margin-top:9px;padding-top:7px;border-top:1px solid #e5ece6}
.automation-rule .btn{font-size:11px;min-height:28px;padding:4px 7px}
.automation-rule .icon-btn{width:27px;height:27px}
.automation-rule .toggle{flex:0 0 auto}
.automation-rule.disabled,.automation-rule.is-disabled{background:#f9fbf9;border-style:dashed;box-shadow:none}
.automation-rule.disabled h3,.automation-rule.is-disabled h3{color:#5a6d5e}
.automation-rule .automation-flow{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-top:7px;color:#3b5d44;font-size:11px}
.automation-add,.automation-column>.add-card{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;padding:7px;border:1px dashed #a7bfad;border-radius:5px;background:#f9fcf9;color:#3e6248;font-size:11px;min-height:32px}
.automation-add:hover,.automation-column>.add-card:hover{background:#e7f0e8;border-color:#6b9375}
.automation-column .empty-state{padding:20px 8px;font-size:11px;color:#546d5a}

/* Tags and metadata share real form controls and clear selection states. */
.tag-editor{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0;min-height:37px;padding:6px;border:1px solid var(--control-border);border-radius:6px;background:#fff;color:#36523f}
.tag-editor:focus-within{border-color:#658c70;box-shadow:0 0 0 3px #36775615}
.tag-chip,.tag-editor .tag,.deal-tags .tag-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:24px;padding:2px 7px;border:1px solid #c8dbcc;border-radius:5px;background:#eaf3eb;color:#365e40;font-size:11px;line-height:1.35;font-weight:550;overflow-wrap:anywhere;white-space:normal}
.tag-chip>button,.tag-chip .remove-tag,.tag-editor .tag>button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:20px;padding:0;margin:-1px -3px -1px 0;border:0;border-radius:3px;background:transparent;color:#3e6549;font:inherit;font-size:15px;line-height:1}
.tag-chip>button:hover,.tag-chip .remove-tag:hover,.tag-editor .tag>button:hover{background:#d2e5d7;color:#224d30}
.tag-editor>input,.tag-editor>select{flex:1 1 120px;width:120px;min-width:80px;max-width:100%;height:26px;min-height:26px;padding:2px 4px;border:0!important;background:transparent!important;font-size:12px;color:#2f4c38;box-shadow:none!important}
.tag-editor>button{flex:0 0 auto}
.tag-options,.metadata-options{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tag-options>label,.tag-options>button,.metadata-option{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #d4e1d7;border-radius:5px;background:#fff;color:#416149;font-size:12px}
.tag-options>label:has(input:checked),.tag-options>.selected,.metadata-option.selected{border-color:#6d9879;background:#e9f4ec;color:#285637}
.city-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;margin-top:5px;min-width:0}
.city-options>label,.city-options .city-option{display:flex;align-items:center;gap:8px;min-height:36px;padding:7px 9px;border:1px solid #d2ddd4;border-radius:5px;background:#fff;color:#385540;font-size:12px;line-height:1.4;cursor:pointer}
.city-options>label:has(input:checked),.city-options .city-option.selected{border-color:#75977c;background:#eef7ef;color:#234e31}
.city-options input[type="checkbox"],.city-options input[type="radio"],.tag-options input,.field-row input[type="checkbox"]{width:16px;height:16px;min-height:0;flex:0 0 16px;margin:0;accent-color:#326b44;box-shadow:none}
.city-options>label>span,.city-options .city-option>span{min-width:0;overflow-wrap:anywhere}
.field-settings{display:flex;flex-direction:column;gap:8px;min-width:0;margin-top:12px}
.field-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(100px,150px) auto;gap:8px;align-items:center;padding:9px;border:1px solid #dbe3dd;border-radius:6px;background:#f8fbf8;color:#39543f}
.field-row>label,.field-row>strong,.field-row>span{min-width:0;font-size:12px;color:#36533e;overflow-wrap:anywhere}
.field-row input:not([type="checkbox"]):not([type="radio"]),.field-row select{width:100%;min-width:0;min-height:33px;border:1px solid #bbcdbf;border-radius:5px;background:#fff;color:#2d4b36;padding:5px 8px;font-size:12px}
.field-row textarea{grid-column:1/-1;min-height:65px;border:1px solid #bbcdbf;border-radius:5px;padding:7px;background:white;font-size:12px;color:#2d4b36;resize:vertical}
.field-row .field-actions{display:flex;align-items:center;justify-content:flex-end;gap:3px}
.field-row .icon-btn{width:30px;height:30px}
.field-row .form-help,.field-row>small{grid-column:1/-1;color:#526c59;font-size:11px;line-height:1.5}
.field-settings-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:2px;color:#31513b;font-size:13px}

/* Merge always shows the chosen record and a readable result preview. */
.modal:has(.merge-grid){max-width:800px}
.merge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.merge-option{display:flex;align-items:flex-start;flex-direction:column;gap:7px;min-width:0;padding:13px;border:1px solid #c8d6cc;border-radius:8px;background:#fff;color:#3e5b46;font-size:12px;line-height:1.5;cursor:pointer}
.merge-option:hover{border-color:#86a48d;background:#f8fbf8}
.merge-option.selected,.merge-option:has(input:checked){border-color:#4c825b;background:#eef7ee;box-shadow:inset 0 0 0 1px #4c825b}
.merge-option>header,.merge-option .merge-option-header{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.merge-option h3,.merge-option h4,.merge-option strong{font-size:13px;color:#2b5136;line-height:1.45;overflow-wrap:anywhere}
.merge-option p,.merge-option small{font-size:12px;color:#526d59;overflow-wrap:anywhere}
.merge-option input[type="radio"],.merge-option input[type="checkbox"]{width:17px;height:17px;min-height:0;margin:0;flex:0 0 17px;accent-color:#376d46;box-shadow:none}
.merge-option dl,.merge-preview dl{display:grid;grid-template-columns:minmax(75px,.7fr) minmax(0,1fr);gap:5px 9px;margin:4px 0 0;width:100%}
.merge-option dt,.merge-preview dt{font-size:11px;color:#536d5a}
.merge-option dd,.merge-preview dd{margin:0;font-size:12px;color:#2f513a;overflow-wrap:anywhere}
.merge-preview{grid-column:1/-1;padding:14px;border:1px solid #cadccb;border-left:3px solid #5d8d63;border-radius:6px;background:#f3f8f2;color:#3b5f44;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.merge-preview h3,.merge-preview h4,.merge-preview>strong{color:#2d5237;font-size:13px;margin-bottom:6px}
.merge-preview p,.merge-preview small{font-size:12px;color:#506f56}
.merge-preview ul{padding-left:18px;margin:6px 0 0}
.merge-warning{grid-column:1/-1;padding:10px 12px;border:1px solid #e4ceaa;border-radius:6px;background:#fff8eb;color:#775323;font-size:12px;line-height:1.6}
.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}
.checkbox-field,.form-field.checkbox-field{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:32px;margin:0;padding:4px 0;color:#37543f;cursor:pointer;font-size:12px}
.checkbox-field input[type="checkbox"],.checkbox-field input[type="radio"]{display:block;width:16px;height:16px;min-height:0;max-width:16px;flex:0 0 16px;margin:0;padding:0;accent-color:#326b44;box-shadow:none}
.checkbox-field>span{font-size:12px;line-height:1.45;color:#37543f;font-weight:500}
.card-client{display:flex;align-items:center;gap:6px;margin:3px 0 6px;min-width:0}
.card-client p{margin:0;min-width:0;color:#3e5c47;font-size:11px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-client .avatar,.card-client .deal-avatar{width:26px;height:26px;flex-basis:26px;font-size:10px;border-radius:7px}
.deal-card:has(.deal-select){position:relative;padding-left:30px}
.deal-select{position:absolute;top:10px;left:8px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.deal-select input{width:16px;height:16px;margin:0;accent-color:#326b44}
.deal-card:has(.deal-select input:checked){border-color:#618a6b;background:#f2f8f2;box-shadow:inset 0 0 0 1px #618a6b}
.field-row:has(>span:nth-child(2):last-child){grid-template-columns:minmax(0,1fr) auto}
.field-row>span:nth-child(2):last-child{display:flex;align-items:center;justify-content:flex-end;gap:3px;flex-wrap:wrap}
.field-row>span:first-child>small{display:block;margin-top:3px;color:#526b59;font-size:11px;line-height:1.4}
.field-row.archived{background:#f4f5f3;border-style:dashed}
.field-row.archived>span:first-child{color:#596d60}
.merge-field{min-width:0;margin:15px 0 0;padding:10px;border:1px solid #d6e1d8;border-radius:7px}
.merge-field legend{padding:0 6px;color:#34533e;font-size:12px;font-weight:650}
.merge-field .merge-grid{gap:8px}
.modal.wide-modal{max-width:800px}
.deal-hero #deal-title-form>.text-btn{color:#e8f3ec;font-size:11px;margin-bottom:10px}
.deal-hero .tag-editor>button{color:#345d40;border-color:#90af98;background:#eef5ef}
.deal-hero .tag-editor .tag-chip>button{color:#345d40}
.task-type-badge{gap:5px;white-space:normal;font-size:11px;line-height:1.35}
.task-type-badge svg{width:13px;height:13px;flex:0 0 13px}
.deal-card .tag-editor{min-height:0;padding:0;border:0;background:transparent;box-shadow:none;margin:5px 0 0;gap:3px}
.deal-card .tag-chip{min-height:20px;padding:1px 5px;font-size:10px;line-height:1.3;gap:3px}
.deal-card .tag-chip>button{width:15px;height:17px;flex-basis:15px;margin-right:-2px;font-size:14px}
.deal-card .tag-editor>button{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;min-height:20px;padding:0;border:1px dashed #91ad99;border-radius:4px;background:transparent;color:#3f684b}
.deal-card .card-topline{margin-bottom:3px;min-height:18px}
.deal-card .card-topline .icon-btn{width:20px;height:20px;border-radius:4px}
.deal-card .card-client{margin:2px 0 4px}
.deal-card .card-client .avatar,.deal-card .card-client .deal-avatar{width:22px;height:22px;flex-basis:22px;font-size:9px}
.deal-card h3{line-height:1.3;margin-bottom:3px}
.deal-card .deal-card-footer{margin-top:5px;padding-top:5px}
.composer .compose-recipient{margin:0;padding:0 12px 7px;gap:4px}
.composer .compose-recipient>span{font-size:11px;color:#405e49}
.composer .compose-recipient select{width:100%;min-width:0;min-height:31px;height:auto;padding:5px 8px;border:1px solid #bacebd;border-radius:5px;background:#fff;color:#2f4d39;font-size:12px}

@media(max-width:1100px){
 .content{padding:18px}.topbar,.subbar{padding-left:18px;padding-right:18px}
 .sidebar nav .nav-item,.sidebar .nav-bottom .nav-item{font-size:9px}
 .kanban,.content>.kanban{gap:9px}.kanban-column{flex-basis:250px;min-width:250px;max-width:250px}
 .field-row{grid-template-columns:minmax(100px,1fr) minmax(90px,130px) auto}
}
@media(max-width:800px){
 .content{padding:16px}.kanban,.content>.kanban{padding-top:12px;padding-bottom:18px}
 .bulk-toolbar{position:relative;top:auto;padding:8px;gap:6px}.bulk-toolbar .spacer{display:none}
 .merge-grid{gap:9px}.merge-option{padding:11px}
 .automation-column{flex-basis:250px;width:250px}
 .field-row{grid-template-columns:minmax(0,1fr) minmax(95px,.65fr) auto}
}
@media(max-width:600px){
 body{min-width:320px}.topbar,.subbar{padding-left:13px;padding-right:13px}.content{padding:13px}
 .sidebar nav .nav-item{font-size:9px;line-height:1.2;gap:4px}.sidebar .nav-count{font-size:9px}
 .sidebar nav{overflow-x:auto;overflow-y:hidden;justify-content:flex-start;scrollbar-width:none}
 .sidebar nav .nav-item{flex:1 0 49px;min-width:49px}.sidebar nav::-webkit-scrollbar{display:none}
 .btn,.btn.small,.modal .btn{font-size:12px;min-height:34px}
 .form-field>span,.form-field>label,.telegram-setup .form-field>span{font-size:12px}
 .form-field input,.form-field select,.form-field textarea,.field-row input:not([type="checkbox"]):not([type="radio"]),.field-row select,.tag-editor>input,.tag-editor>select{font-size:16px}
 .conversation{padding:10px;min-height:77px}.conversation-line>strong{font-size:12px}.conversation-line>time{font-size:10px}
 .conversation-subject,.conversation-line>.conversation-preview{font-size:11px}.conversation-footer{font-size:10px}
 .kanban,.content>.kanban{padding-left:13px;padding-right:13px;gap:9px}.content>.kanban{padding-left:0;padding-right:0}
 .kanban-column{flex-basis:250px;width:250px;min-width:250px;max-width:250px}
 .deal-card{padding:8px}.deal-card h3{font-size:12px}.deal-card>p{font-size:11px}.deal-card>strong{font-size:13px}
 .deal-card .deal-tags>span,.deal-card-footer{font-size:10px}
 .deal-title-input,.deal-hero .deal-title-input{font-size:18px}
 .bulk-toolbar{border-radius:6px}.bulk-toolbar>strong{width:100%}.bulk-toolbar select{max-width:100%;flex:1 1 125px}
 .city-options{grid-template-columns:1fr 1fr;gap:6px}.city-options>label{padding:8px;min-height:40px}
 .field-row{grid-template-columns:minmax(0,1fr) auto;gap:7px}.field-row>input,.field-row>select{grid-column:1}.field-row>.field-actions{grid-column:2;grid-row:1/span 2}
 .merge-grid{grid-template-columns:1fr}.merge-option{padding:12px}.merge-preview{padding:12px}
 .merge-option dl,.merge-preview dl{grid-template-columns:minmax(75px,.65fr) minmax(0,1fr)}
 .automation-board{gap:9px}.automation-column{flex-basis:250px;width:250px}
 .telegram-setup .status-description strong,.telegram-setup .status-description h3,.telegram-setup .credential-help,
 .telegram-setup .credential-help p,.telegram-setup .credential-help a,.telegram-setup .credential-help strong,
 .telegram-setup .integration-error,.telegram-setup .integration-error p{font-size:12px}
 .telegram-setup .connection-steps>div,.telegram-setup .connection-steps>li,.telegram-setup .connection-steps>.step,.telegram-setup .connection-steps>span{font-size:10px}
 .composer .compose-recipient select{font-size:16px}
 .telegram-setup .sensitive-hint,.telegram-setup .setup-note,.telegram-setup .sensitive-hint p,.telegram-setup .setup-note p,
 .telegram-setup .sensitive-hint strong,.telegram-setup .setup-note strong,.channel-connect-details,.channel-connect-details small{font-size:11px}
 .integration-card>p,.integration-detail,.notice,.modal .notice,.modal .integration-explanation,.modal-body>p{font-size:12px}
}
@media(max-width:380px){
 .city-options{grid-template-columns:1fr}.bulk-toolbar .btn{flex:1 1 auto}
 .sidebar nav .nav-item{font-size:8px;flex-basis:48px;min-width:48px}
 .telegram-setup .connection-steps>div,.telegram-setup .connection-steps>li,.telegram-setup .connection-steps>.step,.telegram-setup .connection-steps>span{font-size:10px}
}

/* Inline client controls keep their own lines inside the narrow deal panel. */
.deal-section>.text-btn{display:flex;width:100%;justify-content:flex-start;margin:6px 0;white-space:normal;text-align:left}
.deal-section .contact-link{max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.deal-fields{overflow-x:hidden}.deal-fields .form-field{min-width:0}.deal-fields .form-field>input,.deal-fields .form-field>select,.deal-fields .form-field>textarea{max-width:100%;min-width:0}
.compose-recipient select{width:100%;max-width:100%}

.tag-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.tag-row:empty{display:none}
/* Editable deal details and communications */
.inline-summary,.inline-contacts{display:grid;gap:10px;margin:5px 0 18px}.inline-field{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr);align-items:center;gap:10px;color:#697b76;font-size:12px}.inline-field input,.inline-field select{width:100%;min-width:0;min-height:38px;border:1px solid transparent;background:transparent;color:#243b32;border-radius:6px;padding:7px 9px;font:inherit}.inline-field input:hover,.inline-field select:hover{border-color:#cad8d0;background:#f9fcfa}.inline-field input:focus,.inline-field select:focus{border-color:#397eab;background:#fff;outline:2px solid #dbeefe}.inline-field [aria-invalid=true]{border-color:#bd423c;background:#fff5f4}.client-socials,.contact-actions{display:flex;flex-wrap:wrap;gap:8px}.card-share{display:flex;gap:3px;margin-left:auto}.deal-id .icon-btn{flex-shrink:0}.card-share svg{color:inherit}.stage-picker{position:relative;margin:10px 0;z-index:4}.stage-picker>summary{cursor:pointer;list-style:none;display:grid;gap:8px;color:#abc2c4;font-size:13px}.stage-picker>summary strong{display:flex;align-items:center;justify-content:space-between;color:#fff;font-size:16px;padding:8px 10px;border-left:4px solid #7696a0;background:#ffffff0d;border-radius:5px}.pipeline-tree{position:absolute;top:100%;left:0;right:0;max-height:410px;overflow:auto;background:#fff;color:#263f34;border:1px solid #cddbd4;box-shadow:0 12px 25px #203b4a33;border-radius:8px;padding:8px}.pipeline-tree details{border-bottom:1px solid #e4ece7}.pipeline-tree summary{padding:10px;font-weight:700;cursor:pointer}.pipeline-tree button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 12px;text-align:left;border:0;background:#fff;color:#354b40;font:inherit;font-size:13px;cursor:pointer}.pipeline-tree button:hover{background:#edf5ef}.pipeline-tree i{display:block;width:8px;height:8px;border-radius:50%}.loss-label{font-size:12px;color:#f8c8c0;padding:4px 0}.compose-tools{display:flex;align-items:center;gap:5px;margin:8px 0;flex-wrap:wrap}.compose-tools .muted{font-size:11px;margin-left:auto}.compose-tools .icon-btn{cursor:pointer}.script-suggestions:empty{display:none}.script-list,.script-suggestions{display:grid;gap:6px}.script-suggestions{max-height:230px;overflow:auto;padding:8px;border:1px solid #d2dfd7;border-radius:7px}.script-list button,.script-suggestions button{text-align:left;display:grid;gap:4px;padding:10px;border:1px solid #d2dfd7;border-radius:6px;background:#f7fbf8;color:#2f4c3a;cursor:pointer}.script-list small,.script-suggestions small{font-size:11px;color:#687a70}.script-row{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #e0e9e3}.script-row span{flex:1}.file-chip{display:inline-flex;gap:6px;align-items:center;padding:5px 9px;border:1px solid #ceddd4;border-radius:6px;background:#eff6f0;font-size:12px;margin:3px}.file-chip button{border:0;background:none;color:#596f60;cursor:pointer}.emoji-picker{display:grid;grid-template-columns:repeat(10,1fr);gap:3px;padding:10px;border:1px solid #d2dfd7;border-radius:8px;background:white}.emoji-picker button{border:0;background:white;padding:6px;font-size:23px;cursor:pointer}.message-source{font-size:10px;margin:5px 0;color:#738279}.message-file{display:flex;align-items:center;gap:6px;padding:8px;margin-top:6px;background:#fff9;border:1px solid #b7cec4;border-radius:6px;color:#315246;overflow-wrap:anywhere}.message-file small{white-space:nowrap}.call-recording{padding:12px;margin-top:9px;border:1px solid #c7dacf;border-radius:8px;background:#fff}.call-recording strong{display:block;font-size:12px;margin-bottom:7px}.call-recording audio{display:block;width:100%;min-width:220px;height:38px}.call-recording a{display:inline-block;margin-top:6px;font-size:11px;color:#2e667e}.delivery-state{font-size:10px;white-space:nowrap;color:#718277}.delivery-state.read{color:#2673c0}.delivery-state.failed{color:#b44139}.profile-editor{display:flex;gap:18px;align-items:center;margin-bottom:18px}.profile-image{width:80px!important;height:80px!important;object-fit:cover}.access-editor{border:1px solid #cadbd0;border-radius:8px;padding:15px;margin:15px 0}.access-editor legend{font-weight:700;color:#375640}.access-rules details{border:1px solid #d5e2da;margin:8px 0;border-radius:6px;padding:9px}.access-rules summary{font-weight:600;cursor:pointer}.access-rules table{font-size:12px;width:100%;margin-top:10px}.access-rules input[type=checkbox]{width:17px;height:17px;min-height:0}.access-range{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:10px;font-size:11px}.access-range select{max-width:150px;font-size:11px;padding:5px}.access-all{display:grid;gap:8px}.access-all[hidden],.access-rules[hidden]{display:none}.task-icon-field{grid-column:1/-1;min-width:0;border:0}.task-icon-field legend{font-size:13px;font-weight:600;margin-bottom:8px}.task-icon-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(85px,1fr));gap:8px}.task-icon-picker label{cursor:pointer}.task-icon-picker input{position:absolute;width:1px;height:1px;opacity:0}.task-icon-picker span{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-height:76px;border:1px solid #cbdad0;background:#f9fcf9;border-radius:8px;color:#45634f;padding:8px}.task-icon-picker small{font-size:10px}.task-icon-picker input:checked+span{border:2px solid #3574c4;background:#eaf2fe;color:#245eac}.task-icon-picker input:focus-visible+span{outline:3px solid #9dc4ee}.pipeline-stage-row[draggable=true],.automation-column[draggable=true]{cursor:grab}.drag-grip{color:#85998d;cursor:grab}.pipeline-stage-row .icon-btn{width:28px;flex:0 0 28px}.modal.wide-modal:has(.merge-layout){max-width:min(1300px,96vw)}.merge-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px;align-items:start}.merge-choices{min-width:0}.merge-layout>.merge-preview{position:sticky;top:0;grid-column:auto;max-height:65vh;overflow:auto}.merge-layout>.muted{grid-column:1/-1}.loss-analytics{margin-top:24px}
@media(max-width:800px){.merge-layout{grid-template-columns:1fr}.merge-layout>.merge-preview{position:static;max-height:none;grid-row:1}.task-icon-picker{grid-template-columns:repeat(4,1fr)}.access-rules{overflow-x:auto}.inline-field{grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr)}.emoji-picker{grid-template-columns:repeat(8,1fr)}}

.pipeline-tree{max-height:min(300px,32vh)}
.stage-translations{grid-column:1/-1;border:1px solid #d5e0d9;border-radius:7px;padding:12px}.stage-translations summary{cursor:pointer;font-weight:600}.stage-translations .form-field{margin-top:10px}
/* Employee-owned Viber settings; the transport remains explicitly unavailable. */
.viber-account{padding:16px;margin:12px 0}.viber-account .connection-status{justify-content:space-between;gap:12px}.viber-account .connection-status p{margin:5px 0 0}.viber-account .connection-actions{margin-top:12px}

/* Localized labels stay readable in the compact navigation and deal column. */
.sidebar .nav-item{white-space:normal;gap:4px}
.sidebar .nav-item>span{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.2;text-align:center}
.sidebar .nav-item>svg,.sidebar .nav-item>.avatar{flex-shrink:0}
.inline-field{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.inline-field>span,.form-field>span,.field>label,.field>span,.permission-overview span{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.inline-field>span{color:#35493f}
.inline-field input,.inline-field select{max-width:100%}
.form-field select,.inline-field select{overflow:hidden;text-overflow:ellipsis}
.modal-header h2,.view-toolbar h1,.page-heading h1,.page-subtitle{overflow-wrap:anywhere}
.media-status{display:block;margin-top:6px;line-height:1.45}
.platform-locale{min-width:130px;max-width:190px;font-size:12px}.platform-locale select{min-height:32px;padding:5px 8px}
@media(max-width:600px){.sidebar .nav-item>span{font-size:9px}.inline-field{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:6px}.platform-locale{min-width:115px;max-width:160px}.modal-footer{flex-wrap:wrap}.modal-footer .btn{white-space:normal;text-align:center}}
/* Honor explicit visibility state even when a component sets flex or grid. */
[hidden]{display:none!important}

/* UX audit 2026-11-06: fit the real header stack and keep the composer in the viewport. */
.workspace:has(>.inbox-grid){height:100dvh;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.workspace:has(>.inbox-grid)>.topbar,.workspace:has(>.inbox-grid)>.demo-bar,.workspace:has(>.inbox-grid)>.subscription-banner,.workspace:has(>.inbox-grid)>.subbar{flex-shrink:0}
.workspace>.inbox-grid{height:auto!important;min-height:0!important;flex:1 1 0}
.inbox-grid>.conversation-list,.inbox-grid>.deal-panel,.inbox-grid>.chat-panel{min-height:0}
.chat-panel>.chat-stream{overscroll-behavior:contain}
.mobile-detail-toolbar{display:none}
.client-card-link{color:#285c47;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.status-dot.inactive{background:#83928a}
.analytics-pipeline{margin:0 0 21px;min-width:0}
.analytics-pipeline:last-child{margin-bottom:0}
.analytics-pipeline h4{font-size:13px;color:#2c4b39;overflow-wrap:anywhere;margin:0 0 12px}
.analytics-pipeline .funnel-row>span{overflow-wrap:anywhere}
.modal:focus{outline:none}
.modal-discard-prompt{padding:15px 24px;background:#fff7e6;border-bottom:1px solid #ead6aa;flex-shrink:0;color:#5c4a28}
.modal-discard-prompt>strong{font-size:13px;display:block}
.modal-discard-prompt>p{font-size:12px;line-height:1.5;margin:5px 0 11px}
.modal-discard-prompt>div{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:800px){
 .inbox-grid.show-details>.deal-panel{display:flex;flex-direction:column;overflow:hidden}
 .inbox-grid.show-details>.deal-panel>.deal-hero{flex-shrink:0}
 .inbox-grid.show-details>.deal-panel>.deal-fields{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 .mobile-detail-toolbar{display:flex;align-items:center;flex-shrink:0;padding:5px 10px;background:#fff;border-bottom:1px solid #d8e3dc}
 .mobile-detail-toolbar>.btn{min-height:36px}
}
@media(max-width:600px){
 .workspace:has(>.inbox-grid){padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))}
 .sidebar{padding-bottom:env(safe-area-inset-bottom,0px);height:calc(66px + env(safe-area-inset-bottom,0px))}
 .modal-discard-prompt{padding:12px 18px}
 .modal-discard-prompt .btn{flex:1 1 135px}
}
