.famecrm-app{--green:#16a34a;--dark:#0b3b2e;--bg:#f5f8f7;--line:#e3ebe7;--text:#17221e;--muted:#718079;display:flex;min-height:780px;background:var(--bg);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 12px 40px rgba(11,59,46,.08)}
.famecrm-sidebar{width:245px;background:#fff;border-right:1px solid var(--line);padding:22px 14px;display:flex;flex-direction:column;flex-shrink:0}.famecrm-brand{padding:4px 12px 24px}.famecrm-wordmark{font-size:27px;font-weight:800;letter-spacing:-1.5px}.famecrm-wordmark span{color:#163b31}.famecrm-wordmark b{color:var(--green)}.famecrm-brand small{display:block;color:var(--muted);margin-top:3px}.famecrm-nav{display:flex;flex-direction:column;gap:5px}.famecrm-nav button,.nav-parent{width:100%;border:0;background:transparent;color:#53635d;text-align:left;padding:11px 12px;border-radius:10px;cursor:pointer;display:flex;align-items:center;gap:10px;font-size:14px}.famecrm-nav button:hover,.famecrm-nav button.active,.nav-group.open>.nav-parent{background:#edf8f1;color:var(--green);font-weight:700}.nav-icon{font-size:17px}.nav-parent .nav-chevron{margin-left:auto}.nav-sub{display:none;padding:3px 0 6px 34px}.nav-group.open .nav-sub{display:block}.nav-sub button{padding:9px 10px;font-size:13px}.nav-sub b{margin-left:auto;background:#e7f6ec;color:var(--green);font-size:11px;border-radius:20px;padding:2px 7px}.famecrm-help{margin-top:auto;padding:12px 4px;display:flex;flex-direction:column;gap:3px}.famecrm-help a{color:#687770;text-decoration:none;padding:10px;border-radius:9px;display:flex;gap:9px;align-items:center;font-size:13px}.famecrm-help a:hover{background:#f3f7f5}.famecrm-connection-pill{border:1px solid var(--line);background:#f9fcfa;border-radius:12px;padding:10px;display:flex;align-items:center;gap:9px}.famecrm-connection-pill>div{flex:1}.famecrm-connection-pill strong,.famecrm-connection-pill small{display:block}.famecrm-connection-pill small{font-size:10px;color:var(--muted);margin-top:2px}.wa-dot,.wa-status-dot{width:8px;height:8px;border-radius:50%;background:var(--green);display:block}.wa-status-dot{margin-left:auto}.famecrm-main{min-width:0;flex:1}.famecrm-topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;padding:0 24px}.mobile-menu{display:none}.vendor-switcher{display:flex;align-items:center;gap:9px;min-width:170px}.vendor-switcher small,.famecrm-user small{display:block;color:var(--muted);font-size:10px}.vendor-switcher-icon{font-size:20px;color:var(--green)}.famecrm-search{height:40px;background:#f5f8f6;border:1px solid #e8efeb;border-radius:10px;display:flex;align-items:center;padding:0 12px;flex:1;max-width:520px;margin-left:auto}.famecrm-search input{border:0;background:transparent;outline:0;width:100%;padding-left:8px}.top-icon{border:0;background:#f4f7f5;border-radius:10px;width:40px;height:40px;position:relative}.top-icon i{position:absolute;right:4px;top:4px;font-size:9px;background:var(--green);color:#fff;border-radius:10px;padding:1px 4px;font-style:normal}.famecrm-user{display:flex;align-items:center;gap:9px}.famecrm-avatar,.contact-avatar{width:34px;height:34px;border-radius:50%;background:#dff5e7;color:#13823b;display:grid;place-items:center;font-weight:800}.famecrm-content{padding:28px}.famecrm-page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.famecrm-page-head h1{margin:0;font-size:26px;letter-spacing:-.5px}.famecrm-page-head p{margin:6px 0 0;color:var(--muted);font-size:13px}.famecrm-page-head.compact h1{font-size:23px}.date-pill,.head-actions{display:flex;gap:8px;align-items:center}.date-pill{padding:9px 12px;background:#fff;border:1px solid var(--line);border-radius:9px;font-size:12px}.famecrm-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.famecrm-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px;display:flex;gap:13px;align-items:center}.stat-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:#eaf8ef;color:var(--green);font-size:20px}.stat-blue .stat-icon{background:#edf5ff;color:#2563eb}.stat-orange .stat-icon{background:#fff4e8;color:#ea7a16}.stat-purple .stat-icon{background:#f3edff;color:#7c3aed}.famecrm-stat strong{display:block;font-size:25px}.famecrm-stat small{color:var(--muted);font-size:11px}.famecrm-dashboard-grid{display:grid;grid-template-columns:1.3fr 1fr .75fr;gap:16px}.famecrm-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.card-head h3{margin:0;font-size:15px}.text-btn,.famecrm-icon-btn{border:0;background:transparent;color:var(--green);cursor:pointer}.recent-row{width:100%;border:0;border-bottom:1px solid #eef2ef;background:transparent;display:flex;align-items:center;gap:10px;padding:10px 0;text-align:left;cursor:pointer}.recent-row>span:nth-child(2){flex:1}.recent-row strong,.recent-row small{display:block}.recent-row small{color:var(--muted);font-size:10px;margin-top:2px}.recent-row b{background:#e8f7ed;color:var(--green);padding:3px 7px;border-radius:12px;font-size:10px}.activity-chart{height:170px;display:flex;align-items:end;gap:9px;padding-top:15px}.bar-day{height:100%;flex:1;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:6px}.bars{height:135px;width:100%;display:flex;align-items:end;justify-content:center;gap:3px}.bars i{width:8px;min-height:4px;border-radius:5px 5px 0 0;background:#21a65b}.bars i+ i{background:#a9dfbf}.bar-day small{font-size:9px;color:var(--muted)}.quick-action{display:flex;width:100%;border:1px solid var(--line);background:#fff;border-radius:9px;padding:11px;text-align:left;margin-bottom:8px;cursor:pointer}.quick-action.primary{background:#eaf8ef;border-color:#d4efdd;color:#127c39;font-weight:700}.famecrm-view{display:none}.famecrm-view.active{display:block}.famecrm-inbox{display:grid;grid-template-columns:340px 1fr;height:620px;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.famecrm-chat-list{border-right:1px solid var(--line);overflow:auto}.chat-list-head{padding:16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.chat-list-head span{background:#edf8f1;color:var(--green);padding:2px 8px;border-radius:20px;font-size:11px}.chat-search{padding:10px}.famecrm-input,.famecrm-select,.modal-form input,.modal-form select{width:100%;box-sizing:border-box;border:1px solid #dce6e1;background:#fff;border-radius:9px;padding:10px;outline:0}.famecrm-input:focus,.famecrm-select:focus{border-color:#80c99a;box-shadow:0 0 0 3px #eaf8ef}.inbox-filters{display:flex;gap:6px;padding:0 10px 8px}.filter-chip{border:1px solid var(--line);background:#fff;border-radius:20px;padding:6px 10px;font-size:11px;cursor:pointer}.filter-chip.active{background:#eaf8ef;color:var(--green);border-color:#cfead8}.conversation-row{width:100%;border:0;border-bottom:1px solid #eef2ef;background:#fff;padding:12px;display:flex;gap:9px;text-align:left;cursor:pointer}.conversation-row:hover,.conversation-row.unread{background:#f7fbf8}.conversation-row.selected{background:#eaf8ef;box-shadow:inset 3px 0 0 var(--green)}.conv-main{flex:1;min-width:0}.conv-main strong,.conv-main small,.conv-meta{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-main small,.conv-meta{color:var(--muted);font-size:10px;margin-top:3px}.conv-meta{font-size:9px;text-align:right}.conv-meta b{display:block;background:#e8f7ed;color:var(--green);border-radius:12px;padding:2px 5px;width:max-content;margin:3px 0 0 auto}.famecrm-chat{min-width:0}.chat-empty{height:100%;display:grid;place-items:center;align-content:center;color:var(--muted);text-align:center}.empty-icon{font-size:40px}.chat-active{height:100%;display:flex;flex-direction:column}.chat-head{padding:13px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}.chat-head>div:nth-child(2){flex:1}.chat-head strong,.chat-head small{display:block}.chat-head small{color:var(--muted);font-size:10px;margin-top:2px}.message-list{flex:1;overflow:auto;padding:18px;background:#f4f8f5}.message{display:flex;margin:7px 0}.message.incoming{justify-content:flex-start}.message.outgoing{justify-content:flex-end}.bubble{max-width:72%;padding:10px 12px;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04);font-size:13px;line-height:1.4}.outgoing .bubble{background:#dff5e7}.bubble small{display:block;color:#718079;font-size:8px;margin-top:5px}.composer-tools{display:flex;gap:8px;padding:8px 12px;border-top:1px solid var(--line)}.tool-button{cursor:pointer}.message-composer{display:flex;gap:8px;padding:10px 12px}.message-composer textarea{flex:1;resize:none;border:1px solid var(--line);border-radius:10px;padding:10px;outline:0}.famecrm-send-btn{width:42px;border:0;border-radius:10px;background:var(--green);color:#fff;font-size:18px}.famecrm-btn{border:1px solid #dbe6e0;background:#fff;border-radius:9px;padding:9px 13px;cursor:pointer;color:#44544d;font-weight:600}.famecrm-btn.primary{background:var(--green);border-color:var(--green);color:#fff}.famecrm-btn.small{font-size:11px;padding:6px 9px}.badge{display:inline-block;padding:4px 8px;border-radius:20px;background:#edf2ef;color:#65736d;font-size:10px}.badge.success{background:#e7f7ed;color:#16803d}.template-grid,.mini-grid,.media-grid,.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.template-card,.mini-card,.media-card,.report-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px}.template-top{display:flex;justify-content:space-between;gap:8px}.template-card>small,.template-card p,.media-card small{display:block;color:var(--muted);font-size:11px;margin:8px 0}.template-card p{min-height:48px;color:#52615b;line-height:1.4}.table-card{padding:0;overflow:hidden}.table-toolbar{padding:14px;display:flex;justify-content:space-between;gap:12px}.table-toolbar .famecrm-input{max-width:360px}.responsive-table{overflow:auto}.responsive-table table{width:100%;border-collapse:collapse}.responsive-table th,.responsive-table td{padding:12px 14px;border-top:1px solid #edf1ef;text-align:left;font-size:12px}.responsive-table th{background:#fafcfb;color:#66746e;font-size:10px;text-transform:uppercase}.mini-grid{grid-template-columns:repeat(4,1fr)}.mini-card{display:flex;align-items:center;gap:10px}.mini-card span:not(.label-dot){margin-left:auto;color:var(--muted);font-size:11px}.danger-link{border:0;background:none;color:#dc3b3b;font-size:10px;cursor:pointer}.label-dot{width:10px;height:10px;border-radius:50%;display:block}.media-grid{grid-template-columns:repeat(4,1fr)}.media-preview{height:130px;background:#f4f7f5;border-radius:10px;display:grid;place-items:center;margin-bottom:9px;overflow:hidden}.media-preview img{width:100%;height:100%;object-fit:cover}.media-preview span{font-size:35px}.media-card strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-grid{grid-template-columns:repeat(3,1fr)}.report-card strong{font-size:28px;display:block;color:var(--green)}.report-card small{text-transform:capitalize;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.settings-grid label,.checkline{font-size:11px;color:#54635d;display:flex;flex-direction:column;gap:6px}.checkline{flex-direction:row;align-items:center;margin:15px 0}.webhook-box{background:#f4f8f5;border:1px dashed #c9d9d1;padding:14px;border-radius:10px;margin:16px 0;display:grid;gap:7px}.webhook-box code{background:#fff;border:1px solid var(--line);padding:8px;border-radius:6px;word-break:break-all;font-size:10px}.webhook-box small{color:var(--muted)}.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.famecrm-modal{position:fixed;inset:0;z-index:999999}.famecrm-modal[hidden]{display:none}.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45)}.modal-card{position:relative;background:#fff;width:min(520px,calc(100% - 30px));margin:8vh auto;padding:22px;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.2)}.modal-close{position:absolute;right:12px;top:8px;border:0;background:none;font-size:25px;cursor:pointer}.modal-form{display:grid;gap:10px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.empty-state{padding:28px;text-align:center;color:var(--muted);font-size:12px}.famecrm-toast{position:fixed;right:24px;bottom:24px;background:#173f32;color:#fff;padding:11px 15px;border-radius:9px;opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s;z-index:1000000;font-size:12px}.famecrm-toast.show{opacity:1;transform:none}.famecrm-auth-shell{min-height:650px;display:grid;place-items:center;background:#f5f8f7}.famecrm-login-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 15px 45px rgba(11,59,46,.1)}.famecrm-auth-card{width:min(430px,calc(100% - 30px));padding:30px}.famecrm-auth-brand{display:flex;gap:10px;align-items:center}.famecrm-logo-mark{width:42px;height:42px;background:var(--green);color:#fff;border-radius:12px;display:grid;place-items:center;font-weight:900;font-size:22px}.famecrm-auth-brand strong,.famecrm-auth-brand small{display:block}.famecrm-auth-brand small{color:var(--muted);font-size:10px}.famecrm-auth-heading{margin:28px 0 18px}.famecrm-auth-heading h1{margin:0}.famecrm-auth-heading p,.famecrm-auth-note{color:var(--muted);font-size:12px}.famecrm-login-form{display:grid;gap:8px}.famecrm-login-form label{font-size:11px;font-weight:700}.famecrm-login-form input:not([type=checkbox]){border:1px solid var(--line);padding:11px;border-radius:9px}.famecrm-login-options{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:4px 0}.famecrm-login-options a{color:var(--green)}.famecrm-check{display:flex!important;align-items:center;gap:5px}.famecrm-auth-error{background:#fff0f0;color:#b42318;border:1px solid #ffd3d3;padding:9px;border-radius:8px;font-size:11px;margin-bottom:12px}.famecrm-impersonation{padding:9px 24px;background:#fff8e8;color:#8a5b00;font-size:11px}.famecrm-impersonation a{float:right;color:#8a5b00}
@media(max-width:1050px){.famecrm-dashboard-grid{grid-template-columns:1fr 1fr}.quick-card{grid-column:1/-1}.famecrm-stat-grid{grid-template-columns:repeat(2,1fr)}.template-grid,.media-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.famecrm-sidebar{position:fixed;left:-260px;top:0;bottom:0;z-index:100001;transition:.2s}.famecrm-sidebar.mobile-open{left:0}.mobile-menu{display:block;border:0;background:#f4f7f5;border-radius:8px;width:38px;height:38px}.vendor-switcher{min-width:0}.vendor-switcher div{display:none}.famecrm-search{display:none}.famecrm-content{padding:18px}.famecrm-inbox{grid-template-columns:1fr;height:700px}.famecrm-chat-list{height:260px;border-right:0;border-bottom:1px solid var(--line)}.famecrm-chat{min-height:430px}.settings-grid,.help-grid,.report-grid,.mini-grid{grid-template-columns:1fr 1fr}.famecrm-user div{display:none}}
@media(max-width:540px){.famecrm-stat-grid,.famecrm-dashboard-grid,.template-grid,.media-grid,.settings-grid,.help-grid,.report-grid,.mini-grid{grid-template-columns:1fr}.famecrm-page-head{align-items:flex-start;flex-direction:column}.head-actions{flex-wrap:wrap}.famecrm-topbar{padding:0 12px}.famecrm-user{margin-left:auto}.famecrm-content{padding:12px}.form-row{grid-template-columns:1fr}}
.member-picker{max-height:360px;overflow:auto;border:1px solid var(--line);border-radius:9px;padding:8px}.member-picker label{display:block;padding:8px;border-bottom:1px solid #eef2ef;font-size:11px}.member-picker label:last-child{border-bottom:0}
/* v0.3.0.2: global search + user menu */
.famecrm-search-wrap{position:relative;flex:1;max-width:780px;min-width:260px}.famecrm-search{width:100%;box-sizing:border-box}.famecrm-search input{padding-right:38px}.search-clear{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#7b8983;font-size:20px;line-height:1;cursor:pointer;display:none}.famecrm-search:focus-within .search-clear{display:block}.global-search-results{position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #dfe9e4;border-radius:14px;box-shadow:0 18px 50px rgba(13,56,43,.16);z-index:100010;max-height:560px;overflow:auto}.global-search-results[hidden]{display:none}.search-section{padding:10px 14px;border-bottom:1px solid #edf2ef}.search-section:last-of-type{border-bottom:0}.search-section-head{display:flex;justify-content:space-between;align-items:center;padding:4px 2px 8px;color:#50615a;font-size:11px}.search-section-head button{border:0;background:none;color:var(--green);font-weight:700;cursor:pointer;font-size:10px}.search-result{width:100%;border:0;background:#fff;display:flex;align-items:center;gap:10px;padding:9px 4px;text-align:left;cursor:pointer;border-radius:9px}.search-result:hover{background:#f4faf6}.search-result>span:nth-child(2){min-width:0}.search-result strong,.search-result small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-result strong{font-size:12px;color:#1c2b25}.search-result small{font-size:10px;color:var(--muted);margin-top:2px}.search-wa-icon,.search-template-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e9f8ef;color:var(--green);font-weight:800}.search-template-icon{background:#edf3fb;color:#315b91}.search-empty{padding:30px 18px;text-align:center;color:var(--muted);font-size:12px}.search-view-all{width:100%;border:0;background:#f7faf8;color:var(--green);font-weight:700;padding:12px;cursor:pointer;border-radius:0 0 14px 14px}.famecrm-user{position:relative;cursor:pointer;outline:0}.famecrm-user:focus-visible{box-shadow:0 0 0 3px #cfead8;border-radius:12px}.user-chevron{font-size:16px;color:#607069;margin-left:2px}.famecrm-user-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:190px;background:#fff;border:1px solid #dfe9e4;border-radius:13px;box-shadow:0 16px 45px rgba(13,56,43,.16);padding:6px;z-index:100020}.famecrm-user-dropdown[hidden]{display:none}.famecrm-user-dropdown button,.famecrm-user-dropdown a{width:100%;box-sizing:border-box;border:0;background:#fff;display:flex;align-items:center;gap:9px;padding:10px 11px;border-radius:8px;color:#33433c;text-decoration:none;font-size:12px;text-align:left;cursor:pointer}.famecrm-user-dropdown button:hover,.famecrm-user-dropdown a:hover{background:#f3f8f5}.famecrm-user-dropdown .dashicons{font-size:17px;width:17px;height:17px}.famecrm-user-dropdown a{color:#c53030}.profile-modal{text-align:center;padding:8px}.profile-avatar{width:62px;height:62px;border-radius:50%;margin:4px auto 12px;background:#def3e6;color:var(--green);display:grid;place-items:center;font-size:25px;font-weight:800}.profile-modal h3{margin:0;font-size:20px}.profile-role{margin:5px 0 18px;color:var(--muted);font-size:11px}.profile-details{display:grid;gap:9px;text-align:left}.profile-details>div{background:#f7faf8;border:1px solid #e8efeb;border-radius:9px;padding:10px 12px}.profile-details small,.profile-details strong{display:block}.profile-details small{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.04em}.profile-details strong{margin-top:3px;font-size:12px;color:#27372f;word-break:break-word}
@media(max-width:1050px){.famecrm-search-wrap{max-width:560px}}
@media(max-width:800px){.famecrm-search-wrap{display:block;min-width:0;max-width:none;flex:1}.famecrm-search{display:flex}.famecrm-search input{display:block}.global-search-results{position:fixed;left:12px;right:12px;top:70px;max-height:70vh}.user-chevron{display:none}.famecrm-user-dropdown{right:0}.vendor-switcher{min-width:auto}.vendor-switcher div{display:block}.vendor-switcher small{display:none}.vendor-switcher strong{font-size:11px}}

.modal-help,.field-help{display:block;color:var(--muted);font-size:10px;line-height:1.4}.field-title{font-size:11px;display:block;margin-bottom:7px}.template-button-builder{display:grid;gap:8px;margin:8px 0}.template-button-row{display:grid;grid-template-columns:125px 1fr 1fr auto;gap:7px;align-items:center}.template-button-row .danger-link{white-space:nowrap}.template-create-note{background:#f4f8f5;border:1px solid #dfeae4;padding:9px;border-radius:8px;color:#5c6b65;font-size:10px}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.modal-card:has(.template-button-builder){width:min(680px,calc(100% - 30px))}@media(max-width:700px){.template-button-row{grid-template-columns:1fr 1fr}.template-button-row .button-value{grid-column:1/-1}.template-button-row .danger-link{grid-column:1/-1;text-align:left}}
.template-builder-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr);gap:20px;align-items:start}.template-builder-card{padding:24px}.page-form{display:flex;flex-direction:column;gap:18px}.page-form label{display:flex;flex-direction:column;gap:7px;font-weight:600;color:#24332d}.page-form .form-row>label{min-width:0}.template-live-preview{padding:20px;position:sticky;top:24px}.wa-template-preview{margin-top:12px;background:#efeae2;border-radius:14px;padding:18px;min-height:220px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}.wa-preview-header{font-weight:700;margin-bottom:12px}.wa-preview-footer{font-size:12px;color:#66756f;margin-top:16px}.wa-preview-buttons{display:flex;flex-direction:column;gap:8px;margin-top:16px}.wa-preview-buttons div{background:#fff;border-radius:8px;padding:9px;text-align:center;color:#16825a;font-weight:600;font-size:13px}.template-button-builder{display:flex;flex-direction:column;gap:10px;margin:10px 0}.template-button-row{display:grid;grid-template-columns:150px 1fr 1fr auto;gap:8px;align-items:center}.template-create-note{background:#f4f8f6;border:1px solid #dce9e2;padding:12px;border-radius:10px;color:#50615a;font-size:13px}.field-help{font-weight:400!important;font-size:12px;color:#73817b}.field-title{display:block;margin-bottom:8px}@media(max-width:900px){.template-builder-layout{grid-template-columns:1fr}.template-live-preview{position:static}.template-button-row{grid-template-columns:1fr}.template-button-row .danger-link{justify-self:start}}

/* v0.3.0.5: theme-independent full-width application shell */
html body.famecrm-page { margin: 0; }
.famecrm-page .famecrm-app,
.famecrm-page .famecrm-auth-shell {
  width: 100vw !important;
  max-width: none !important;
  box-sizing: border-box;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
.famecrm-page .famecrm-app {
  min-height: 100vh;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}
.famecrm-page .famecrm-auth-shell { min-height: 100vh; border-radius: 0; }
.famecrm-page .famecrm-main { min-width: 0; }
/* Neutralize common theme content wrappers around the shortcode without depending on a theme. */
.famecrm-page .entry-content > #famecrm-app,
.famecrm-page .wp-block-shortcode > #famecrm-app { width: 100vw !important; max-width: none !important; }
@media (max-width: 800px) {
  .famecrm-page .famecrm-app { min-height: 100dvh; }
  .famecrm-page .famecrm-auth-shell { min-height: 100dvh; }
}

.drip-builder{margin-bottom:20px}.drip-options{display:flex;gap:22px;flex-wrap:wrap;padding:14px 0}.drip-sequence-head{display:flex;align-items:center;justify-content:space-between;margin:18px 0 10px}.drip-steps{display:grid;gap:12px}.drip-step{position:relative;border:1px solid #dfe8e2;border-radius:14px;padding:16px;background:#fbfdfb}.drip-step-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.drip-step-fields{display:grid;grid-template-columns:1fr 180px 1fr;gap:12px}.drip-step-fields label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}.drip-delay{font-size:12px;color:#64748b;margin:0 0 10px}.drip-list{display:grid;gap:12px}.drip-card{background:#fff;border:1px solid #e2e8e5;border-radius:14px;padding:18px}.drip-card-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.drip-meta{display:flex;gap:12px;flex-wrap:wrap;color:#64748b;font-size:13px;margin-top:8px}.drip-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.drip-status-active{color:#15803d}.drip-status-paused{color:#a16207}.drip-status-completed{color:#475569}@media(max-width:800px){.drip-step-fields{grid-template-columns:1fr}.drip-card-head{align-items:flex-start;flex-direction:column}}

.contact-actions{display:flex;gap:6px;flex-wrap:wrap}.modal-subtitle{margin:-8px 0 14px;color:#64748b}.template-variable-fields{display:grid;gap:10px;margin-top:12px}.template-variable-fields>label{display:grid;gap:5px;font-size:13px;font-weight:600}

/* v0.3.1.7 webhook diagnostics */
.webhook-diagnostics-card{margin-top:18px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:18px}
.diag-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.diag-head strong{display:block;font-size:15px}
.diag-head small{display:block;color:#6b7280;margin-top:3px}
.diag-meta{display:flex;gap:18px;flex-wrap:wrap;padding:10px 12px;border-radius:10px;background:#f8fafc;margin-bottom:10px;font-size:12px;color:#64748b}
.diag-row{display:flex;align-items:flex-start;gap:10px;padding:10px 4px;border-bottom:1px solid #f1f5f9}
.diag-row:last-child{border-bottom:0}
.diag-row strong{display:block;font-size:13px;color:#1f2937;text-transform:capitalize}
.diag-row small{display:block;color:#94a3b8;font-size:11px;margin-top:2px}
.diag-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;margin-top:5px;flex:0 0 8px}
.diag-dot.bad{background:#ef4444}
.diag-empty{padding:14px;border-radius:10px;background:#f8fafc;color:#64748b;font-size:13px}

.chat-head-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.chat-head-actions .famecrm-btn.small{white-space:nowrap}

/* v0.3.2.2: deterministic inbox conversation visibility */
.famecrm-chat #chat-active[hidden]{display:none !important;}
.famecrm-chat #chat-active:not([hidden]){display:flex !important;min-height:0;}
.famecrm-chat #chat-empty[hidden]{display:none !important;}
.famecrm-chat #message-list{min-height:0;}


/* v0.3.2.3: Inbox composer layout / flex overflow fix */
.famecrm-inbox{min-height:0;box-sizing:border-box;}
.famecrm-chat{min-width:0;min-height:0;height:100%;overflow:hidden;}
.chat-active{min-height:0;height:100%;overflow:hidden;}
.message-list{min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;}
.composer-tools{flex:0 0 auto;min-height:0;}
.message-composer{flex:0 0 auto;min-height:0;box-sizing:border-box;}
.message-composer textarea{min-height:42px;max-height:120px;box-sizing:border-box;}

.drip-toolbar{display:flex;gap:8px;margin-bottom:12px;justify-content:flex-end;flex-wrap:wrap}

/* v0.3.2.5: frontend login visibility / theme isolation fix */
.famecrm-auth-shell{
  --green:#16a34a;
  --dark:#0b3b2e;
  --line:#e3ebe7;
  --text:#17221e;
  --muted:#718079;
  --bg:#f5f8f7;
}
.famecrm-auth-shell .famecrm-login-submit,
.famecrm-auth-shell button.famecrm-btn.famecrm-login-submit{
  display:block !important;
  width:100% !important;
  min-height:46px !important;
  padding:12px 16px !important;
  margin:8px 0 0 !important;
  box-sizing:border-box !important;
  border:1px solid #16a34a !important;
  border-radius:10px !important;
  background:#16a34a !important;
  background-image:none !important;
  color:#fff !important;
  font-size:15px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  text-align:center !important;
  text-indent:0 !important;
  opacity:1 !important;
  visibility:visible !important;
  position:relative !important;
  z-index:2 !important;
  cursor:pointer !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}
.famecrm-auth-shell .famecrm-login-submit:hover,
.famecrm-auth-shell button.famecrm-btn.famecrm-login-submit:hover{
  background:#15803d !important;
  border-color:#15803d !important;
  color:#fff !important;
}
.famecrm-auth-shell .famecrm-login-form input:not([type=checkbox]){
  width:100% !important;
  box-sizing:border-box !important;
  color:#17221e !important;
  background:#fff !important;
}
.famecrm-auth-shell .famecrm-login-options a{color:#15803d !important;}
.famecrm-auth-shell .famecrm-logo-mark{background:#16a34a !important;color:#fff !important;}


/* =========================================================
   FameCRM v0.3.3.0 - Frontend Stabilization
   Theme-independent full-screen application shell
   ========================================================= */
html,body{margin:0!important;padding:0!important}
body.famecrm-page{overflow:hidden!important;background:#f5f8f7!important}
body.famecrm-page .site-header,
body.famecrm-page .site-footer,
body.famecrm-page #masthead,
body.famecrm-page #colophon,
body.famecrm-page .elementor-location-header,
body.famecrm-page .elementor-location-footer,
body.famecrm-page .wp-site-blocks>header,
body.famecrm-page .wp-site-blocks>footer{display:none!important}
body.famecrm-page .site-content,
body.famecrm-page .content-area,
body.famecrm-page .site-main,
body.famecrm-page .entry-content,
body.famecrm-page .wp-block-post-content,
body.famecrm-page .elementor,
body.famecrm-page .elementor-section,
body.famecrm-page .elementor-container{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
body.famecrm-page .famecrm-app,
body.famecrm-page .famecrm-auth-shell{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;z-index:2147483000!important}
body.famecrm-page .famecrm-app{display:flex;overflow:hidden}
body.famecrm-page .famecrm-auth-shell{display:grid;place-items:center;overflow:auto}
body.famecrm-page .famecrm-main{min-height:0;height:100dvh}
body.famecrm-page .famecrm-content{min-height:0;height:calc(100dvh - 72px);overflow:auto;box-sizing:border-box}

/* Header/contact identity */
.chat-head>div:nth-child(2){min-width:0;flex:1}
#chat-name{display:block;max-width:min(48vw,520px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:17px;font-weight:800;line-height:1.25;color:#17221e}
#chat-phone{display:block;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#718079;font-size:12px}
.conv-main{min-width:0;overflow:hidden}
.conv-main strong,.conv-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-row{min-width:0}
.drip-card-button{width:100%;font:inherit;text-align:left;cursor:pointer}
.drip-card-button:hover{border-color:#b8ddc5;box-shadow:0 5px 18px rgba(11,59,46,.07);transform:translateY(-1px)}
.drip-card-button .drip-actions{align-items:center}
.drip-card-button .drip-actions .famecrm-btn{pointer-events:none}
.drip-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}
.drip-detail-head h2{margin:0 0 5px}
.drip-detail-head p{margin:0;color:#718079}
.drip-detail-section{margin-top:18px}
.drip-detail-section h3{margin:0 0 12px}
.drip-detail-steps{display:grid;gap:10px}
.drip-detail-step{display:grid;grid-template-columns:90px 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid #e3ebe7;border-radius:10px;background:#fbfdfb}
.drip-detail-step small{color:#718079}
.drip-diagnostics-modal pre{max-height:300px;overflow:auto;background:#0b3b2e;color:#e8fff0;border-radius:10px;padding:12px;font-size:11px}
.diag-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.diag-grid>div{border:1px solid #e3ebe7;border-radius:10px;padding:12px;background:#fbfdfb}
.diag-grid small,.diag-grid strong{display:block}
.diag-grid small{color:#718079;margin-bottom:4px}

/* Global AJAX loader */
#famecrm-global-loader{position:fixed;inset:0;display:flex;align-items:flex-start;justify-content:center;padding-top:14px;opacity:0;pointer-events:none;z-index:2147483647;transition:opacity .15s ease}
#famecrm-global-loader.show{opacity:1}
#famecrm-global-loader .famecrm-loader-pill{display:flex;align-items:center;gap:9px;background:#0b3b2e;color:#fff;border-radius:999px;padding:8px 14px;font-size:12px;font-weight:700;box-shadow:0 8px 22px rgba(0,0,0,.18)}
#famecrm-global-loader .famecrm-spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:famecrm-spin .7s linear infinite}
@keyframes famecrm-spin{to{transform:rotate(360deg)}}

/* Inbox fixed chat layout */
.famecrm-inbox{height:calc(100dvh - 180px);min-height:420px}
.famecrm-chat{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.chat-active{min-width:0;min-height:0;height:100%;display:flex;flex-direction:column;overflow:hidden}
.chat-head{flex:0 0 auto}
.message-list{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
.composer-tools{flex:0 0 auto}
.message-composer{flex:0 0 auto}
@media(max-width:900px){
  .famecrm-inbox{grid-template-columns:300px 1fr}
  .diag-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .famecrm-sidebar{position:fixed;z-index:20;left:0;top:0;bottom:0;transform:translateX(-100%);transition:transform .2s ease}
  .famecrm-sidebar.mobile-open{transform:translateX(0)}
  .famecrm-inbox{height:calc(100dvh - 150px);grid-template-columns:1fr}
  .famecrm-chat-list{min-height:220px}
  .drip-detail-step{grid-template-columns:1fr}
}


/* =========================================================
   FameCRM v0.3.3.1 — Contact Identity / Inbox UI
   Strong override layer: keeps WP/theme CSS from interfering.
   ========================================================= */

/* Conversation list */
body.famecrm-page .famecrm-chat-list{
  background:#fff;
  min-width:0;
}
body.famecrm-page #conversation-list{
  width:100%;
  min-width:0;
}
body.famecrm-page .conversation-row{
  appearance:none;
  -webkit-appearance:none;
  box-sizing:border-box;
  width:100%;
  min-height:72px;
  padding:12px 14px!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid #edf1ef!important;
  border-radius:0!important;
  background:#fff!important;
  color:#17221e!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  align-items:center!important;
  column-gap:11px!important;
  text-align:left!important;
  line-height:1.2!important;
  font-family:inherit!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.famecrm-page .conversation-row:hover{
  background:#f7fbf8!important;
}
body.famecrm-page .conversation-row.selected{
  background:#eaf8ef!important;
  box-shadow:inset 3px 0 0 #16a34a!important;
}
body.famecrm-page .conversation-row.unread{
  background:#fbfefc!important;
}
body.famecrm-page .conversation-row .contact-avatar{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  border-radius:50%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1!important;
  overflow:hidden!important;
}
body.famecrm-page .conversation-row .conv-main{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  overflow:hidden!important;
}
body.famecrm-page .conversation-row .conv-main strong{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  color:#17221e!important;
  font-size:14px!important;
  font-weight:750!important;
  line-height:19px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.famecrm-page .conversation-row .conv-main small{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:3px 0 0!important;
  padding:0!important;
  color:#78857f!important;
  font-size:11px!important;
  font-weight:500!important;
  line-height:16px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.famecrm-page .conversation-row .conv-meta{
  width:64px!important;
  min-width:64px!important;
  max-width:64px!important;
  margin:0!important;
  padding:0!important;
  color:#8a9691!important;
  font-size:9px!important;
  line-height:14px!important;
  text-align:right!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  align-self:center!important;
}
body.famecrm-page .conversation-row .conv-meta b{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:18px!important;
  height:18px!important;
  margin:4px 0 0 auto!important;
  padding:0 5px!important;
  border-radius:10px!important;
  background:#16a34a!important;
  color:#fff!important;
  font-size:9px!important;
  line-height:18px!important;
}

/* Chat header — clear contact identity */
body.famecrm-page .famecrm-chat .chat-head{
  box-sizing:border-box!important;
  width:100%!important;
  min-height:72px!important;
  padding:12px 18px!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  background:#fff!important;
  border-bottom:1px solid #e7eeea!important;
  overflow:hidden!important;
}
body.famecrm-page .famecrm-chat .chat-head .contact-avatar{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  border-radius:50%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  font-size:17px!important;
  font-weight:800!important;
  line-height:1!important;
}
body.famecrm-page .famecrm-chat .chat-head>div:nth-child(2){
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
body.famecrm-page #chat-name{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:#122019!important;
  font-size:17px!important;
  font-weight:800!important;
  line-height:22px!important;
  letter-spacing:-.15px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.famecrm-page #chat-phone{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:3px 0 0!important;
  padding:0!important;
  color:#738079!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:17px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.famecrm-page .chat-head-actions{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  white-space:nowrap!important;
}
body.famecrm-page .chat-head-actions .famecrm-btn{
  flex:0 0 auto!important;
}

/* Contact table */
body.famecrm-page #contacts-table td:first-child{
  min-width:180px;
}
body.famecrm-page #contacts-table td:nth-child(2){
  min-width:145px;
  white-space:nowrap;
}
body.famecrm-page #contacts-table td:first-child strong{
  display:block!important;
  max-width:240px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Prevent WP/theme button rules from changing inbox */
body.famecrm-page .conversation-row,
body.famecrm-page .filter-chip,
body.famecrm-page .chat-head button{
  text-transform:none!important;
  letter-spacing:normal!important;
}

/* Narrow screens */
@media(max-width:900px){
  body.famecrm-page .famecrm-chat .chat-head{
    grid-template-columns:42px minmax(0,1fr) auto!important;
    padding:10px 12px!important;
  }
  body.famecrm-page #chat-name{font-size:15px!important;line-height:20px!important}
  body.famecrm-page #chat-phone{font-size:11px!important}
}
@media(max-width:650px){
  body.famecrm-page .conversation-row{
    grid-template-columns:40px minmax(0,1fr) 48px!important;
    min-height:66px!important;
    padding:10px!important;
  }
  body.famecrm-page .conversation-row .contact-avatar{
    width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;
  }
  body.famecrm-page .conversation-row .conv-meta{
    width:48px!important;min-width:48px!important;max-width:48px!important;
  }
  body.famecrm-page .famecrm-chat .chat-head{
    grid-template-columns:40px minmax(0,1fr)!important;
  }
  body.famecrm-page .famecrm-chat .chat-head .contact-avatar{
    width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;
  }
  body.famecrm-page .chat-head-actions{
    grid-column:2!important;
    justify-content:flex-start!important;
    margin-top:4px!important;
  }
}

/* FameCRM v0.4.0 - Leads + unified inbox foundation */
.inbox-channel-tabs{display:flex;gap:8px;padding:10px 12px;border-bottom:1px solid #e8edf2;overflow:auto;background:#fff}.channel-tab{border:1px solid #e1e7ee;background:#fff;border-radius:10px;padding:8px 12px;font-weight:600;color:#516071;cursor:pointer;white-space:nowrap}.channel-tab.active{background:#eef6ff;border-color:#1677ff;color:#0b63ce}.channel-tab b{font-size:11px;margin-left:4px}.channel-mini{display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-size:9px;font-weight:700;border-radius:5px;padding:2px 4px;margin-right:5px;background:#eef2f5;color:#53616f}.channel-whatsapp{background:#e9f8ef;color:#168244}.channel-facebook{background:#edf4ff;color:#2468d8}.channel-instagram{background:#fff0f6;color:#bd2d78}
.lead-stat-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:0 0 16px}.lead-stat-strip>div{background:#fff;border:1px solid #e8edf2;border-radius:12px;padding:14px 16px;box-shadow:0 2px 8px rgba(30,50,70,.04)}.lead-stat-strip strong{display:block;font-size:22px;line-height:1.1;color:#172333}.lead-stat-strip span{display:block;margin-top:5px;color:#718096;font-size:12px}.lead-name-link{border:0;background:transparent;padding:0;text-align:left;cursor:pointer;color:inherit}.lead-name-link strong,.lead-name-link small{display:block}.lead-name-link small{color:#7b8794;margin-top:3px}.source-badge{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700;background:#edf2f7;color:#53616f}.source-meta_ads{background:#eaf2ff;color:#2468d8}.source-whatsapp{background:#e9f8ef;color:#168244}.lead-status-inline{border:1px solid #dfe6ed;border-radius:7px;background:#fff;padding:5px 7px;font-size:11px}.lead-detail-modal{min-width:min(850px,90vw)}.lead-detail-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:1px solid #edf0f4;padding-bottom:16px}.lead-detail-head h2{margin:8px 0 4px}.lead-detail-head p{margin:0;color:#6f7b89}.lead-detail-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-top:16px}.lead-detail-grid .famecrm-card{padding:18px}.lead-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.lead-fields small{display:block;color:#788493;font-size:11px;text-transform:capitalize}.lead-fields strong{display:block;margin-top:3px;font-size:13px}.lead-activities{display:flex;flex-direction:column;gap:13px}.lead-activity{display:flex;gap:10px}.lead-activity>span{width:8px;height:8px;border-radius:50%;background:#1677ff;margin-top:5px;flex:0 0 auto}.lead-activity strong,.lead-activity small{display:block}.lead-activity small{color:#7a8794;margin-top:3px}.lead-detail-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.settings-section-title{margin:22px 0 10px;padding-top:18px;border-top:1px solid #edf0f4}.settings-section-title h3{margin:0 0 4px}.settings-section-title p{margin:0;color:#738091;font-size:12px}.meta-lead-webhook{}
@media(max-width:900px){.lead-stat-strip{grid-template-columns:repeat(3,1fr)}.lead-detail-grid{grid-template-columns:1fr}}
@media(max-width:650px){.lead-stat-strip{grid-template-columns:repeat(2,1fr)}.lead-fields{grid-template-columns:1fr}.lead-detail-head{flex-direction:column}.lead-detail-actions{justify-content:stretch}.lead-detail-actions .famecrm-btn{flex:1}}
.meta-connect-card,.meta-import-box,.meta-page-picker{margin:18px 0;padding:18px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;display:flex;gap:18px;align-items:center;justify-content:space-between}.meta-connect-card small{display:block;color:#64748b;margin-top:5px}.meta-connect-actions{display:flex;gap:8px;flex-wrap:wrap}.meta-page-picker{justify-content:flex-start}.meta-page-picker label{flex:1}.meta-page-picker .famecrm-select{width:100%;margin-top:6px}.meta-import-box{display:block}.meta-import-box .settings-grid{margin:12px 0}.meta-import-box span{margin-left:10px;color:#475569}@media(max-width:700px){.meta-connect-card,.meta-page-picker{display:block}.meta-connect-actions{margin-top:12px}}

/* FameCRM v0.5.1 Settings Redesign */
.famecrm-settings-page{max-width:1180px;margin:0 auto}.settings-hero{margin-bottom:18px}.settings-title-wrap{display:flex;align-items:center;gap:14px}.settings-hero-icon{width:48px;height:48px;border:1px solid #dfe8e3;border-radius:13px;background:#fff;display:grid;place-items:center;font-size:25px;color:#17221e;box-shadow:0 3px 12px rgba(20,60,45,.04)}.docs-btn{white-space:nowrap;text-decoration:none}.integration-shell{padding:0;overflow:hidden}.settings-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);background:#fff}.settings-tab{border:0;background:#fff;padding:19px 28px;display:flex;align-items:center;gap:14px;text-align:left;cursor:pointer;border-bottom:3px solid transparent}.settings-tab:hover{background:#fbfdfc}.settings-tab.active{border-bottom-color:var(--green);background:linear-gradient(180deg,#fff,#fbfefc)}.settings-tab-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:27px;font-weight:800}.settings-tab-icon.wa{background:#dff7e7;color:#16a34a}.settings-tab-icon.meta{background:#edf4ff;color:#1877f2}.settings-tab strong,.settings-tab small{display:block}.settings-tab strong{font-size:16px;color:#17221e}.settings-tab small{font-size:11px;color:#718079;margin-top:4px}.settings-tab-panel{display:none;padding:24px}.settings-tab-panel.active{display:block}.connection-banner,.meta-hero{border:1px solid #dcefe3;background:#f4fbf7;border-radius:14px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.connection-brand,.meta-brand-line{display:flex;align-items:center;gap:12px}.connection-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-size:27px}.connection-icon.wa{background:#16a34a;color:#fff}.connection-brand strong,.connection-brand small,.meta-brand-line strong,.meta-brand-line small{display:block}.connection-brand small,.meta-brand-line small{color:#6d7d75;font-size:11px;margin-top:3px}.status-pill{display:inline-flex;align-items:center;border-radius:20px;padding:5px 10px;font-size:10px;font-weight:800;margin-left:8px}.status-pill.success{background:#dff6e7;color:#16803d}.status-pill.info{background:#eaf2ff;color:#2468d8}.settings-two-col{display:grid;grid-template-columns:1.08fr .92fr;gap:16px}.inner-card{padding:18px;border-radius:14px}.inner-head{display:flex;align-items:center;gap:10px;margin-bottom:16px}.inner-head>div{flex:1}.inner-head h3{margin:0;font-size:15px}.inner-head p{margin:4px 0 0;color:#7a8781;font-size:11px}.inner-icon{width:31px;height:31px;border-radius:9px;background:#f0f4f2;display:grid;place-items:center;font-weight:800;color:#34433c;flex:0 0 auto}.inner-icon.green{background:#dcf6e5;color:#16803d}.inner-icon.amber{background:#fff3d8;color:#c78300}.inner-icon.meta-bg{background:#edf4ff;color:#1877f2}.inner-icon.ig-bg{background:#f4edff;color:#8a42d9}.inner-icon.blue-bg{background:#eaf2ff;color:#2468d8}.settings-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.settings-form-grid label,.lead-sync-grid label,.meta-grid label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#53635d}.save-settings-btn{margin-top:16px}.settings-right-stack{display:flex;flex-direction:column;gap:16px}.status-card{background:#fbfefc}.status-card .inner-head{align-items:flex-start}.status-list{background:#fff;border:1px solid #edf2ef;border-radius:10px;overflow:hidden}.status-list>div{display:grid;grid-template-columns:25px 1fr auto;gap:8px;align-items:center;padding:11px 12px;border-bottom:1px solid #edf2ef;font-size:11px}.status-list>div:last-child{border-bottom:0}.status-list span{color:#50615a}.status-list b{font-weight:500;color:#56655f}.status-list strong{font-size:10px;color:#16803d}.quick-action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.quick-action-grid .famecrm-btn{min-height:66px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.quick-action-grid small{font-size:10px}.settings-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.compact-card{display:flex;align-items:center;justify-content:space-between;gap:15px}.compact-card h3{display:inline;margin:0 0 0 8px;font-size:14px}.compact-card p{margin:7px 0 0 39px;color:#78847e;font-size:11px}.compact-card .inner-icon{display:inline-grid;vertical-align:middle}.whatsapp-advanced{margin-top:16px;border-top:1px solid #edf1ef;padding-top:18px}.advanced-title h3{margin:0;font-size:14px}.advanced-title p{margin:4px 0 12px;color:#7b8881;font-size:11px}.checkline{font-size:11px;color:#54635d;display:flex;flex-direction:row;align-items:center;gap:7px;margin:12px 0}.webhook-box{background:#f4f8f5;border:1px dashed #c9d9d1;padding:14px;border-radius:10px;margin:14px 0;display:grid;gap:7px}.webhook-box code{background:#fff;border:1px solid var(--line);padding:8px;border-radius:6px;word-break:break-all;font-size:10px}.webhook-box small{color:var(--muted)}.meta-hero{background:#f8fbff;border-color:#dfeaf8}.meta-logo{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#edf4ff;color:#1877f2;font-size:30px;font-weight:800}.meta-status-card{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e5edf5;padding:10px 13px;border-radius:10px;min-width:230px}.meta-status-card strong,.meta-status-card small{display:block}.meta-status-card small{color:#718096;font-size:10px;margin-top:3px}.meta-status-dot{width:9px;height:9px;border-radius:50%;background:#16a34a;display:inline-block;flex:0 0 auto}.meta-actions-row{display:flex;justify-content:flex-end;gap:8px;margin:-4px 0 16px}.meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.meta-grid.lower{margin-top:16px}.meta-page-picker{display:flex;gap:10px;align-items:end;margin-top:14px}.meta-page-picker label{flex:1}.meta-page-picker .famecrm-select{width:100%}.meta-mini-status{margin-top:15px;border:1px solid #edf1ef;border-radius:10px;padding:12px;display:flex;align-items:center;gap:8px;font-size:11px}.meta-mini-status strong{margin-left:auto}.lead-sync-card{margin-top:16px}.lead-sync-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:13px}.lead-sync-actions{display:flex;align-items:center;gap:10px;margin-top:14px}.lead-sync-actions span{font-size:11px;color:#475569}.large-code{display:block;background:#f7faf8;border:1px solid #e1ebe6;border-radius:9px;padding:11px;word-break:break-all;font-size:10px;color:#52615b}.help-copy{display:block;color:#7b8881;font-size:10px;margin-top:8px}.meta-security-note{background:#f6faf8;border:1px solid #e3eee8;border-radius:10px;padding:12px;font-size:11px;color:#53635d;margin-bottom:12px}.settings-hidden-form{display:none!important}
@media(max-width:900px){.settings-two-col,.meta-grid,.settings-bottom-grid{grid-template-columns:1fr}.settings-form-grid,.lead-sync-grid{grid-template-columns:1fr 1fr}.connection-banner,.meta-hero{align-items:flex-start;flex-direction:column}.meta-actions-row{justify-content:flex-start}.compact-card{align-items:flex-start;flex-direction:column}.docs-btn{display:none}}
@media(max-width:650px){.settings-tabs{grid-template-columns:1fr}.settings-tab{padding:14px 18px}.settings-tab.active{border-left:3px solid var(--green);border-bottom:0}.settings-tab-panel{padding:14px}.settings-form-grid,.lead-sync-grid{grid-template-columns:1fr}.quick-action-grid{grid-template-columns:1fr}.meta-page-picker{display:block}.meta-page-picker .famecrm-btn{margin-top:8px}.status-list>div{grid-template-columns:22px 1fr}.status-list strong{grid-column:2}.famecrm-content{padding:16px}}

/* FameCRM v0.5.3 - expanded Meta Page discovery and selection UI */
.meta-page-tools{display:flex;gap:10px;align-items:center;margin:12px 0}.meta-page-tools .famecrm-input{flex:1}.meta-page-list{display:grid;gap:8px;max-height:360px;overflow:auto;padding:2px;margin-bottom:12px}.meta-page-item{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;text-align:left;border:1px solid #e6ebf0;background:#fff;border-radius:12px;padding:11px 12px;cursor:pointer;transition:.15s ease}.meta-page-item:hover{border-color:#9edab9;background:#fbfffc}.meta-page-item.selected{border-color:#16a05d;box-shadow:0 0 0 2px rgba(22,160,93,.09);background:#f4fcf7}.meta-page-avatar{width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:#eef5ff;color:#1877f2;font-weight:800}.meta-page-main{min-width:0}.meta-page-main strong{display:block;color:#172333;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta-page-main small{display:block;color:#7b8794;font-size:11px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta-page-badges{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.meta-page-badge{font-style:normal;font-size:10px;font-weight:700;border-radius:999px;padding:4px 7px;background:#f1f4f7;color:#617082;white-space:nowrap}.meta-page-badge.ig{background:#fff0f6;color:#bd2d78}.meta-page-badge.ok{background:#eaf8ef;color:#168244}.meta-page-badge.warn{background:#fff7e8;color:#9a6500}.meta-pages-empty{border:1px dashed #d7dee6;border-radius:12px;padding:20px;text-align:center;color:#718096;background:#fafcfd}.meta-pages-empty strong{display:block;color:#374151;margin-bottom:5px}.meta-pages-empty small{display:block;max-width:560px;margin:0 auto;line-height:1.5}.meta-page-diagnostics{margin-top:10px;border:1px solid #f0d9a8;background:#fffaf0;color:#795500;border-radius:10px;padding:10px 12px;font-size:11px}.meta-page-diagnostics ul{margin:6px 0 0 18px;padding:0}.meta-page-diagnostics li{margin:3px 0}@media(max-width:700px){.meta-page-tools{display:block}.meta-page-tools button{margin-top:8px;width:100%}.meta-page-item{grid-template-columns:38px minmax(0,1fr)}.meta-page-badges{grid-column:2;justify-content:flex-start}.meta-page-picker{display:block}.meta-page-picker button{margin-top:8px;width:100%}}
.meta-lead-import-progress{margin-top:10px;padding:10px 12px;border:1px solid #dfe9e3;border-radius:10px;background:#f5fbf7;color:#17643c;font-size:13px}

/* v0.5.6.1 — Lead detail modal redesign */
.modal-card:has(.lead-detail-modal){width:min(1040px,calc(100% - 32px));max-height:88vh;overflow:auto;padding:0;border-radius:18px}
.lead-detail-modal{min-width:0;width:100%;background:#fff}
.lead-profile-header{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:26px 30px 22px;border-bottom:1px solid #edf1ef;background:linear-gradient(180deg,#fbfefc 0%,#fff 100%)}
.lead-profile-main{display:flex;align-items:center;gap:15px;min-width:0}
.lead-profile-avatar{width:54px;height:54px;border-radius:16px;background:#e5f6eb;color:#13823f;display:grid;place-items:center;font-size:22px;font-weight:800;flex:0 0 auto}
.lead-profile-copy{min-width:0}.lead-profile-copy h2{margin:6px 0 5px;font-size:25px;letter-spacing:-.4px;color:#17251f}.lead-profile-tags{display:flex;gap:7px;align-items:center}.lead-id-chip{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#f3f6f5;color:#6a7872;font-size:10px;font-weight:600}.lead-contact-line{display:flex;flex-wrap:wrap;gap:14px;color:#6b7973;font-size:12px}.lead-status-box{width:170px;flex:0 0 170px}.lead-status-box label{display:block;color:#718079;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin:0 0 6px}.lead-status-box .famecrm-select{font-size:12px;padding:10px 11px}
.lead-summary-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#eaf0ed;border-bottom:1px solid #eaf0ed}.lead-summary-strip>div{background:#f8fbf9;padding:13px 22px}.lead-summary-strip span{display:block;color:#84918c;font-size:10px;text-transform:uppercase;letter-spacing:.4px}.lead-summary-strip strong{display:block;color:#26352f;font-size:12px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lead-detail-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:16px;margin:20px 30px}.lead-detail-grid .famecrm-card{padding:20px;border-radius:14px;box-shadow:0 1px 3px rgba(21,46,36,.03)}.lead-card-heading{display:flex;justify-content:space-between;margin-bottom:18px}.lead-card-heading>div{display:flex;align-items:center;gap:10px}.lead-card-heading h3{margin:0;font-size:15px;color:#1e2d27}.lead-card-heading p{margin:3px 0 0;color:#87938e;font-size:10px}.lead-card-icon{width:30px;height:30px;border-radius:9px;background:#edf8f1;color:#168344;display:grid;place-items:center;font-size:14px}.lead-fields-enhanced{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #edf1ef;border-radius:11px;overflow:hidden}.lead-info-item{padding:13px 14px;border-right:1px solid #edf1ef;border-bottom:1px solid #edf1ef;min-width:0}.lead-info-item:nth-child(2n){border-right:0}.lead-info-item:nth-last-child(-n+2){border-bottom:0}.lead-info-item span{display:block;color:#87938e;font-size:10px;text-transform:capitalize}.lead-info-item strong{display:block;margin-top:5px;color:#283730;font-size:12px;line-height:1.35;word-break:break-word}.enhanced-timeline{gap:0}.lead-timeline-item{display:flex;gap:12px;position:relative;padding:0 0 18px}.lead-timeline-item:not(:last-child):after{content:"";position:absolute;left:3px;top:10px;bottom:0;width:1px;background:#dfe9e4}.timeline-dot{width:7px;height:7px;border-radius:50%;background:#1a9d55;margin-top:5px;flex:0 0 auto;position:relative;z-index:1;box-shadow:0 0 0 4px #eaf8ef}.lead-timeline-item strong{display:block;color:#2b3933;font-size:12px;text-transform:capitalize}.lead-timeline-item small{display:block;color:#8a9691;font-size:10px;margin-top:4px}.lead-modal-footer{margin:0;padding:16px 30px 20px;border-top:1px solid #edf1ef;align-items:center}.lead-footer-note{color:#8a9691;font-size:10px;flex:1}.lead-modal-footer>div:last-child{display:flex;gap:8px}
@media(max-width:760px){.modal-card:has(.lead-detail-modal){width:calc(100% - 18px);max-height:94vh}.lead-profile-header{padding:20px;align-items:flex-start;flex-direction:column}.lead-status-box{width:100%;flex:auto}.lead-summary-strip{grid-template-columns:repeat(2,1fr)}.lead-detail-grid{grid-template-columns:1fr;margin:15px 18px}.lead-fields-enhanced{grid-template-columns:1fr}.lead-info-item,.lead-info-item:nth-child(2n){border-right:0}.lead-info-item:nth-last-child(-n+2){border-bottom:1px solid #edf1ef}.lead-info-item:last-child{border-bottom:0}.lead-modal-footer{padding:15px 18px;flex-direction:column;align-items:stretch}.lead-footer-note{margin-bottom:8px}.lead-modal-footer>div:last-child{width:100%}.lead-modal-footer .famecrm-btn{flex:1}}

/* v0.5.7 — lead pagination + edit form + notes */
.lead-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 4px 2px;flex-wrap:wrap}.lead-page-info{color:#718096;font-size:12px}.lead-page-controls{display:flex;align-items:center;gap:5px}.lead-page-btn{min-width:32px;height:32px;border:1px solid #e1e8e4;background:#fff;border-radius:8px;cursor:pointer;color:#42524b}.lead-page-btn:hover:not(:disabled){border-color:#21a45c}.lead-page-btn.active{background:#169b53;border-color:#169b53;color:#fff;font-weight:700}.lead-page-btn:disabled{opacity:.4;cursor:not-allowed}.lead-page-size{display:flex;align-items:center;gap:7px;color:#718096;font-size:12px}.lead-page-size .famecrm-select{min-width:78px;padding:7px 28px 7px 9px}.lead-edit-modal{width:100%}.lead-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px 30px 0}.lead-edit-grid label{font-size:11px;color:#6e7d75;font-weight:600}.lead-edit-grid .famecrm-input{margin-top:6px;width:100%;box-sizing:border-box}.lead-edit-actions{display:flex;justify-content:flex-end;gap:8px;padding:18px 30px;border-bottom:1px solid #edf1ef}.lead-notes-card{margin:18px 30px;padding:20px;border-radius:14px}.lead-notes-card textarea{width:100%;box-sizing:border-box;resize:vertical}.lead-note-actions{display:flex;justify-content:flex-end;margin-top:8px}.lead-note-timeline{margin-top:18px;padding-top:14px;border-top:1px solid #edf1ef}.leads-empty-row{text-align:center;color:#87938e;padding:28px!important}.modal-card:has(.lead-edit-modal){width:min(1100px,calc(100% - 32px));max-height:90vh;overflow:auto}
@media(max-width:760px){.lead-edit-grid{grid-template-columns:1fr;padding:16px 18px 0}.lead-edit-actions{padding:15px 18px}.lead-notes-card{margin:15px 18px}.lead-pagination{align-items:stretch}.lead-page-info{width:100%}.lead-page-controls{order:3}.lead-page-size{margin-left:auto}}

/* v0.5.8 — Sales navigation + Kanban pipeline */
.sales-group .sales-nav-sub{display:block}.sales-group .nav-parent{font-weight:700}.pipeline-board{display:grid;grid-template-columns:repeat(7,minmax(220px,1fr));gap:12px;overflow-x:auto;padding:2px 2px 18px;align-items:start}.pipeline-column{background:#f7faf8;border:1px solid #e3ebe7;border-radius:14px;min-height:430px;display:flex;flex-direction:column}.pipeline-column-head{padding:13px 13px 11px;border-bottom:1px solid #e3ebe7;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#f7faf8;border-radius:14px 14px 0 0;z-index:1}.pipeline-column-head>div{min-width:0}.pipeline-column-head strong{display:block;font-size:12px;color:#24332d}.pipeline-column-head small{display:block;margin-top:3px;color:#85918b;font-size:10px}.pipeline-column-head>span{width:25px;height:25px;border-radius:8px;background:#eaf4ee;color:#16834a;display:grid;place-items:center;font-size:11px;font-weight:700}.pipeline-dropzone{min-height:370px;padding:9px;display:flex;flex-direction:column;gap:8px;transition:.15s}.pipeline-dropzone.drag-over{background:#edf9f1;outline:2px dashed #29a55f;outline-offset:-4px;border-radius:12px}.pipeline-card{background:#fff;border:1px solid #e1e9e5;border-radius:11px;padding:11px;box-shadow:0 2px 6px rgba(24,52,39,.04);cursor:grab}.pipeline-card:active{cursor:grabbing}.pipeline-card.dragging{opacity:.5}.pipeline-card-top{display:flex;align-items:flex-start;gap:8px}.pipeline-avatar{width:30px;height:30px;border-radius:9px;background:#e7f6ed;color:#158044;display:grid;place-items:center;font-size:11px;font-weight:800;flex:0 0 auto}.pipeline-card-main{min-width:0;flex:1}.pipeline-lead-name{display:block;border:0;background:none;padding:0;text-align:left;color:#203029;font-weight:700;font-size:11px;line-height:1.25;cursor:pointer;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pipeline-lead-name:hover{color:#159653;text-decoration:underline}.pipeline-card-main small{display:block;color:#8a9690;font-size:9px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pipeline-card .source-badge{font-size:8px;padding:3px 6px;white-space:nowrap}.pipeline-card-meta{display:flex;justify-content:space-between;gap:8px;margin-top:10px;padding-top:8px;border-top:1px solid #f0f3f1;color:#8a9690;font-size:8px}.pipeline-card-meta span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pipeline-card-meta span:first-child{flex:1}.pipeline-card-meta span:last-child{max-width:90px}.pipeline-empty{border:1px dashed #d9e4de;border-radius:10px;color:#9aa69f;text-align:center;padding:25px 8px;font-size:10px;margin-top:2px}.quotation-placeholder{max-width:620px;margin:30px auto;text-align:center;padding:45px 30px}.placeholder-icon{width:50px;height:50px;border-radius:14px;background:#edf8f1;color:#169653;display:grid;place-items:center;margin:0 auto 15px;font-size:22px}.quotation-placeholder h3{margin:0 0 7px}.quotation-placeholder p{color:#7c8983;font-size:12px;line-height:1.6;margin:0 auto 18px;max-width:500px}.sales-nav-sub button.active{color:#159653;font-weight:700}@media(max-width:1500px){.pipeline-board{grid-template-columns:repeat(7,220px)}}@media(max-width:760px){.pipeline-board{grid-template-columns:repeat(7,220px);padding-bottom:12px}.pipeline-column{min-height:380px}.pipeline-dropzone{min-height:320px}}

/* v0.5.11 top-level integrations */
.integration-cards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.integration-card{position:relative;text-align:left;border:1px solid #e4ebe7;background:#fff;border-radius:18px;padding:24px;min-height:210px;cursor:pointer;display:flex;flex-direction:column;gap:14px;box-shadow:0 4px 18px rgba(20,60,45,.05);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.integration-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(20,60,45,.09);border-color:#cfe2d8}.integration-card-icon{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;font-size:30px;font-weight:800}.integration-card-icon.whatsapp{background:#e1f7e8;color:#16a34a}.integration-card-icon.meta{background:#edf4ff;color:#1877f2}.integration-card-body{flex:1}.integration-card-body h3{margin:4px 0 7px;font-size:18px;color:#17221e}.integration-card-body p{margin:0;color:#718079;font-size:12px;line-height:1.55;max-width:520px}.integration-card-status{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:5px 9px;background:#edf4ff;color:#2468d8;font-size:10px;font-weight:800}.integration-card-status.connected{background:#dff6e7;color:#16803d}.integration-card-action{font-size:12px;font-weight:800;color:#17221e;align-self:flex-end}@media(max-width:800px){.integration-cards-grid{grid-template-columns:1fr}}

/* Live integration status badges */
.famecrm-integration-status{
  display:inline-flex;align-items:center;gap:6px;margin:8px 0 10px;
  padding:7px 11px;border-radius:999px;font-size:12px;font-weight:700;
  line-height:1;border:1px solid transparent;
}
.famecrm-integration-status.is-connected{
  color:#137333;background:#e8f5e9;border-color:#b7dfc0;
}
.famecrm-integration-status.is-disconnected{
  color:#b42318;background:#fff0ed;border-color:#f4c7c3;
}

/* FameCRM v0.5.12 - WhatsApp Web / QR integration */
.famecrm-qr-card{position:relative}
.qr-icon,.qr-modal-icon{display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:800}
.famecrm-qr-connect{border:0;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer;background:#111;color:#fff}
.qr-phone{margin:8px 0 14px;font-size:13px;font-weight:600}
.famecrm-qr-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.52);z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px}
.famecrm-qr-modal{position:relative;width:min(520px,96vw);background:#fff;border-radius:20px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.25)}
.famecrm-qr-close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:28px;cursor:pointer}
.qr-placeholder{margin:20px 0;padding:22px;border:1px dashed #cbd5e1;border-radius:16px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;background:#f8fafc}
.qr-placeholder-box{width:180px;height:180px;border-radius:12px;background:repeating-linear-gradient(45deg,#111 0 5px,#fff 5px 10px);display:flex;align-items:center;justify-content:center;color:#fff;font-size:28px;font-weight:800}
.qr-security-note{font-size:12px;color:#64748b;margin-bottom:18px}
.famecrm-qr-close-btn{width:100%;border:1px solid #d1d5db;border-radius:10px;background:#fff;padding:11px;font-weight:700;cursor:pointer}

/* FameCRM v0.5.12.2 - separate integration settings */
.famecrm-isolated-hidden{display:none !important}
.famecrm-separate-integration-nav{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  margin:0 0 22px;padding:4px;
}
.famecrm-integration-nav-item{
  display:inline-flex;align-items:center;padding:10px 16px;
  border:1px solid #e2e8f0;border-radius:10px;background:#fff;
  color:#334155;text-decoration:none;font-weight:700;
}
.famecrm-integration-nav-item.is-active{
  background:#111827;color:#fff;border-color:#111827;
}
html[data-famecrm-integration="whatsapp"] .famecrm-meta-settings,
html[data-famecrm-integration="meta"] .famecrm-whatsapp-settings{
  display:none !important;
}

/* FAMECRM_CLEAN_INTEGRATIONS_V05123 */
.settings-tabs,.settings-tab{display:none !important}
.famecrm-view[data-panel="meta-settings"] .settings-tab-panel,
.famecrm-view[data-panel="wa-settings"] .settings-tab-panel{display:block}

/* FAMECRM_SIDEBAR_V05125 */
#famecrm-sidebar.famecrm-sidebar-scroll-v05125{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-width:thin;
  max-height:100vh;
}
#famecrm-sidebar .nav-parent[data-sidebar-group]{
  position:relative;
  cursor:pointer;
}
#famecrm-sidebar .nav-sub.is-collapsed{
  display:none !important;
}
#famecrm-sidebar .nav-parent.is-collapsed .nav-chevron{
  transform:rotate(-90deg);
}
#famecrm-sidebar .nav-chevron{
  margin-left:auto;
  transition:transform .18s ease;
  opacity:.75;
  line-height:1;
}
@media (min-width:769px){
  #famecrm-sidebar.famecrm-sidebar-scroll-v05125{
    height:100vh;
    overscroll-behavior:contain;
  }
}

/* FAMECRM v0.5.13.0 — Quotations */
.quotation-builder{padding:0!important;background:#f7f9fc!important;border:0!important;box-shadow:none!important}
.quotation-builder[hidden]{display:none!important}
.quotation-builder-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;border:1px solid #e5eaf1;border-radius:16px;background:#fff;margin-bottom:18px}
.quotation-builder-head h2{margin:0 0 4px;font-size:20px}.quotation-builder-head p{margin:0;color:#738096}.quotation-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.quotation-total-pill{padding:10px 14px;border:1px solid #dfe6ef;border-radius:12px;background:#f8fafc;font-weight:700;color:#0f172a}
.quotation-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,.95fr);gap:18px}.quotation-config-card,.quotation-items-card,.quotation-summary-card,.quotation-notes-card{margin-bottom:18px}.quotation-config-card .card-head,.quotation-items-card .card-head,.quotation-summary-card .card-head,.quotation-notes-card .card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.quotation-config-card .card-head h3,.quotation-items-card .card-head h3,.quotation-summary-card .card-head h3,.quotation-notes-card .card-head h3{margin:0}.quotation-config-card .card-head p,.quotation-items-card .card-head p{margin:3px 0 0;color:#7b8798;font-size:13px}.quotation-config-card .card-head>span{font-size:12px;color:#8290a4}
.quotation-top-fields{grid-template-columns:1.2fr 1fr}.customer-picker{display:flex;gap:8px}.customer-picker .famecrm-select{flex:1;min-width:0}.quotation-divider{height:1px;background:#edf1f5;margin:18px 0}.quotation-date-fields{grid-template-columns:repeat(4,1fr)}
.required{color:#e11d48}.mini-count{font-size:11px;padding:4px 8px;border-radius:99px;background:#eef2f7;color:#65748a;font-weight:600}.quotation-items-wrap{overflow:auto}.quotation-items-table{width:100%;border-collapse:collapse;min-width:780px}.quotation-items-table th{padding:12px 10px;text-align:left;font-size:11px;letter-spacing:.04em;color:#7d899b;border-bottom:1px solid #edf1f5}.quotation-items-table td{padding:12px 10px;vertical-align:middle;border-bottom:1px solid #edf1f5}.quotation-items-table .q-item-name{margin-bottom:6px}.quotation-items-table .q-item-desc{font-size:12px;color:#77859a}.q-qty{display:flex;align-items:center;gap:4px}.q-qty button{width:30px;height:36px;border:1px solid #dce3ec;background:#fff;border-radius:9px;cursor:pointer}.q-qty .q-item-qty{width:58px;text-align:center}.q-discount{display:flex;gap:0}.q-discount .q-item-discount{width:78px;border-radius:9px 0 0 9px}.q-discount .q-item-discount-type{width:46px;border-radius:0 9px 9px 0}.q-item-total{font-weight:700;white-space:nowrap}.q-remove{width:30px;height:30px;border:0;background:#f4f6f8;border-radius:8px;color:#64748b;cursor:pointer;font-size:18px}.q-remove:hover{background:#fee2e2;color:#b91c1c}
.quotation-summary-card{overflow:hidden}.quotation-switch{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #edf1f5;font-weight:600}.quotation-switch input{display:none}.quotation-switch i{width:44px;height:25px;border-radius:20px;background:#cbd5e1;position:relative;cursor:pointer}.quotation-switch i:after{content:"";position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;transition:.18s}.quotation-switch input:checked+i{background:#16a34a}.quotation-switch input:checked+i:after{left:22px}.quotation-tax-rate{display:block;margin-top:14px}.quotation-tax-rate[hidden]{display:none}.quotation-summary-lines{margin-top:16px}.quotation-summary-lines>div{display:flex;justify-content:space-between;padding:8px 0;color:#607087}.quotation-summary-lines strong{color:#172033}.quotation-grand-total{margin-top:12px;padding:18px;border-radius:14px;background:#172033;color:#fff;display:flex;justify-content:space-between;align-items:center}.quotation-grand-total span{font-size:11px;letter-spacing:.08em;font-weight:700}.quotation-grand-total strong{font-size:22px}.quotation-notes-card label{display:block;margin:0 0 14px}.quotation-notes-card label small{float:right;color:#8995a7}.quotation-notes-card textarea{margin-top:7px}.quote-actions{display:flex;gap:5px;flex-wrap:wrap}.table-secondary{display:block;color:#8793a5;font-size:11px;margin-top:3px}.quotation-validation{padding:12px;border:1px solid #f6d27a;background:#fff9e8;color:#8a5a00;border-radius:12px;margin-top:12px}.send-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.quotation-send-choice{min-width:420px}
@media(max-width:1100px){.quotation-grid{grid-template-columns:1fr}.quotation-date-fields{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.quotation-builder-head{align-items:flex-start;flex-direction:column}.quotation-head-actions{width:100%}.quotation-top-fields,.quotation-date-fields{grid-template-columns:1fr}.customer-picker{flex-direction:column}.quotation-send-choice{min-width:0}.send-choice-grid{grid-template-columns:1fr}}
/* FAMECRM_TEMPLATE_SELECTOR_V05137 */
.template-empty-state{margin:8px 0 14px;padding:12px 14px;border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc}.template-empty-state strong{display:block;margin-bottom:4px}.template-empty-state p{margin:0 0 9px;color:#64748b;font-size:13px}.template-empty-state .famecrm-btn{margin-top:2px}

/* v0.5.13.8 — WhatsApp template modal: stacking, scroll and sticky actions */
.famecrm-modal{
  position:fixed !important; inset:0 !important; z-index:2147483000 !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  padding:16px !important; box-sizing:border-box !important; isolation:isolate !important;
}
.famecrm-modal[hidden]{display:none !important}
.famecrm-modal .modal-backdrop{position:fixed !important;inset:0 !important;background:rgba(15,23,42,.62) !important;z-index:0 !important;backdrop-filter:blur(2px)}
.famecrm-modal .modal-card{
  position:relative !important; z-index:1 !important; margin:0 !important; padding:0 !important;
  width:min(980px,calc(100vw - 32px)) !important; max-width:980px !important;
  max-height:calc(100vh - 32px) !important; overflow:hidden !important;
  border:1px solid #dfe8e3 !important; border-radius:20px !important;
  box-shadow:0 30px 90px rgba(15,23,42,.28) !important; background:#fff !important;
}
.famecrm-modal .modal-close{z-index:5 !important;right:18px !important;top:16px !important;width:34px !important;height:34px !important;border-radius:10px !important;background:#f4f7f5 !important;color:#31413a !important;font-size:24px !important;line-height:1 !important}
.famecrm-modal .modal-close:hover{background:#e8efeb !important}
.famecrm-modal .template-send-modal{display:flex;flex-direction:column;min-height:0;max-height:calc(100vh - 32px)}
.template-send-head{padding:22px 58px 17px 24px;border-bottom:1px solid #edf2ef;background:#fff;flex:0 0 auto}
.template-send-title{display:flex;align-items:center;gap:12px}.template-send-title h3{margin:0;font-size:20px;color:#17231e}.template-send-title p{margin:4px 0 0;color:#718079;font-size:12px}.template-wa-icon{width:38px;height:38px;border-radius:11px;background:#dff6e7;color:#159b53;display:grid;place-items:center;font-size:20px;font-weight:800}
.template-send-form{display:flex;flex-direction:column;min-height:0;flex:1}
.template-send-body{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr);gap:0;min-height:0;overflow:auto;flex:1;background:#fbfcfb}
.template-send-left{padding:22px 24px 24px;border-right:1px solid #edf2ef;min-width:0}.template-send-right{padding:22px 24px;min-width:0;background:#f8faf9}
.template-field-label{display:block;font-size:12px;font-weight:800;color:#24342d;margin-bottom:7px}.template-field-label span{color:#d22}
.template-select-wrap{position:relative}.template-select-wrap>span{position:absolute;left:12px;top:10px;z-index:2;color:#718079;font-size:16px}.template-search-input{padding-left:34px !important;margin-bottom:7px}.template-select-native{min-height:44px}.template-variable-fields{display:grid;gap:12px;margin-top:16px}.template-variable-group{border:1px solid #e2ebe6;border-radius:13px;padding:13px;background:#fff}.template-variable-group-title{text-transform:capitalize;font-size:11px;font-weight:800;color:#46574f;margin-bottom:10px}.template-variable-group label{display:grid;gap:5px;font-size:11px;font-weight:700;color:#596860;margin-top:9px}.template-variable-group label:first-of-type{margin-top:0}.template-variable-group label b{color:#d33}.template-no-vars{padding:10px;border-radius:9px;background:#f2f7f4}.template-empty-state{margin-top:12px;padding:14px;border:1px dashed #d7e4dc;border-radius:12px;background:#f8fbf9}.template-empty-state strong{display:block;font-size:12px}.template-empty-state p{font-size:10px;color:#75827c;margin:5px 0 10px}.template-advanced{margin-top:14px;border:1px solid #e2ebe6;border-radius:12px;background:#fff;padding:11px 13px}.template-advanced summary{cursor:pointer;font-size:11px;font-weight:800;color:#405149}.template-advanced label{display:grid;gap:6px;margin-top:12px;font-size:11px}.template-advanced textarea{resize:vertical}
.template-preview-card{border:1px solid #e0e8e3;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 4px 18px rgba(20,60,45,.04)}.template-preview-head{display:flex;gap:10px;align-items:center;padding:14px;border-bottom:1px solid #edf2ef}.template-preview-head>span{font-size:18px;color:#159b53}.template-preview-head strong,.template-preview-head small{display:block}.template-preview-head strong{font-size:12px}.template-preview-head small{font-size:9px;color:#85918b;margin-top:2px}.template-wa-preview{min-height:250px;padding:22px 18px;background:#edf3ef;display:flex;align-items:flex-start;justify-content:center;background-image:radial-gradient(#d8e5dc 1px,transparent 1px);background-size:14px 14px}.template-wa-bubble{position:relative;max-width:92%;background:#fff;border-radius:5px 14px 14px 14px;padding:13px 14px 19px;box-shadow:0 2px 8px rgba(15,23,42,.08);font-size:12px;line-height:1.5;color:#27352f;white-space:pre-wrap}.template-wa-bubble strong{display:block;margin-bottom:8px}.template-wa-bubble small{position:absolute;right:9px;bottom:5px;font-size:8px;color:#87928d}.template-preview-placeholder{color:#8b9891;text-align:center;padding:35px 20px}.template-important{margin-top:14px;border:1px solid #f3d58d;border-radius:12px;background:#fff9e9;padding:13px;color:#7b5b17}.template-important strong{font-size:11px}.template-important ul{margin:7px 0 0 17px;padding:0;font-size:10px;line-height:1.7}.template-send-footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 20px;border-top:1px solid #e7eeea;background:#fff;flex:0 0 auto;position:relative;z-index:3}.template-send-footer .famecrm-btn{min-width:110px}.template-send-submit{min-width:145px !important;box-shadow:0 4px 10px rgba(20,155,83,.16)}
body.famecrm-modal-open{overflow:hidden !important}
@media(max-width:760px){.famecrm-modal{padding:8px !important}.famecrm-modal .modal-card{width:calc(100vw - 16px) !important;max-height:calc(100vh - 16px) !important;border-radius:16px !important}.template-send-head{padding:18px 50px 14px 17px}.template-send-title h3{font-size:17px}.template-send-body{grid-template-columns:1fr}.template-send-left{border-right:0;border-bottom:1px solid #edf2ef;padding:17px}.template-send-right{padding:17px}.template-wa-preview{min-height:180px}.template-send-footer{padding:12px;position:sticky;bottom:0}.template-send-footer .famecrm-btn{flex:1}}

.message-delivery-error{margin-top:6px;padding:7px 9px;border-radius:8px;background:#fff1f2;color:#b42318;font-size:12px;line-height:1.35}.message-wamid{opacity:.7;font-size:10px;word-break:break-all}.message.outgoing .bubble small{display:block;line-height:1.4}

/* WhatsApp-style outgoing message ticks */
.message.outgoing .bubble small{display:flex;align-items:center;justify-content:flex-end;gap:5px;line-height:1.35;color:#8a9690;}
.message-ticks{display:inline-block;font-size:12px;font-weight:800;letter-spacing:-3px;line-height:1;min-width:14px;text-align:left;vertical-align:middle;}
.message-ticks.accepted{color:#8a9690;letter-spacing:0;}
.message-ticks.delivered{color:#8a9690;}
.message-ticks.read{color:#2b8cff;}
.message-ticks.failed{color:#d64545;letter-spacing:0;font-size:11px;width:12px;height:12px;border:1px solid currentColor;border-radius:50%;display:inline-grid;place-items:center;}


/* v0.6.1.1 — Require a live WhatsApp connection before WhatsApp workspace pages can be used */
.famecrm-view.wa-needs-connection{min-height:440px;}
.famecrm-view.wa-needs-connection>.wa-connect-gate{display:flex!important;}
.famecrm-view.wa-needs-connection>*:not(.wa-connect-gate){display:none!important;}
.wa-connect-gate{min-height:380px;box-sizing:border-box;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:42px 24px;background:linear-gradient(135deg,#f8fcf9,#eef8f1);border:1px solid #d8ebdf;border-radius:20px;color:#172b21;margin:8px 0;}
.wa-connect-icon{width:68px;height:68px;border-radius:22px;display:grid;place-items:center;background:#dff6e7;color:#16803d;font-size:34px;margin-bottom:18px;}
.wa-connect-gate h2{margin:0 0 9px;font-size:24px;color:#172b21;}
.wa-connect-gate p{max-width:520px;color:#65766d;font-size:14px;line-height:1.65;margin:0 0 22px;}
.wa-connect-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;}
.integration-card-status.disconnected{background:#fff0f0;color:#b42318;}

/* v0.7.0 recipient picker for drip campaigns */
.drip-recipient-manager{margin:16px 0 20px;padding:20px}.drip-recipient-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,.8fr);gap:22px;align-items:start}.drip-recipient-list-panel .card-head{margin-bottom:12px}.drip-recipient-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:12px 0}.drip-recipient-toolbar .famecrm-input{max-width:460px}.drip-recipient-list{display:grid;gap:7px;max-height:460px;overflow:auto;padding-right:4px}.drip-recipient-row{display:flex;align-items:center;gap:12px;border:1px solid #e2e8e5;border-radius:10px;padding:11px 12px;background:#fff;cursor:pointer}.drip-recipient-row:hover{border-color:#86b89a;background:#fbfefc}.drip-recipient-row>input{width:17px;height:17px;flex:0 0 auto}.drip-recipient-main{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.drip-recipient-main strong{overflow-wrap:anywhere}.drip-recipient-main small{color:#64748b;overflow-wrap:anywhere}.drip-recipient-tags{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.drip-recipient-action-panel{position:sticky;top:18px;border:1px solid #e2e8e5;border-radius:14px;padding:18px;background:#f8fbf9;display:grid;gap:12px}.drip-recipient-action-panel h3{margin:0}.drip-recipient-action-panel label{display:grid;gap:7px;font-weight:600;font-size:13px}.drip-selection-summary{border-radius:10px;background:#fff;padding:12px;color:#475569;font-size:13px}.drip-recipient-action-panel .field-help{font-size:12px;color:#64748b;line-height:1.5}.drip-recipient-row .badge{font-size:10px}@media(max-width:900px){.drip-recipient-layout{grid-template-columns:1fr}.drip-recipient-action-panel{position:static}.drip-recipient-toolbar{align-items:stretch;flex-direction:column}.drip-recipient-toolbar .famecrm-input{max-width:none}.drip-recipient-row{align-items:flex-start;flex-wrap:wrap}.drip-recipient-tags{margin-left:28px;justify-content:flex-start}}

/* v0.7.3 single selected automatic new-lead drip campaign */
.drip-builder-name{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.drip-builder-name label{display:grid;gap:7px;font-weight:600}.drip-step{border:1px solid #dfe8e2;border-radius:12px;padding:0;background:#fbfdfb;overflow:visible}.drip-step-delay{display:grid;grid-template-columns:1fr minmax(250px,auto) auto;gap:12px;align-items:center;padding:10px 14px;border-bottom:1px solid #e4ebe7;background:#f7faf8}.drip-step-delay>label{display:grid;gap:6px;font-size:12px;color:#64748b}.drip-step-arrow{font-size:22px;text-align:center;color:#334155}.drip-delay-parts{display:flex;gap:5px}.drip-delay-parts select{min-width:80px;padding:7px}.drip-step-content{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:16px;padding:16px}.drip-step-fields{display:grid;grid-template-columns:1fr;gap:12px}.drip-step-fields>label{display:grid;gap:6px;font-size:13px;font-weight:600}.drip-variable-fields{display:grid;gap:9px}.drip-variable-fields>strong{font-size:13px}.drip-variable-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.drip-variable-row label{display:grid;gap:5px;font-size:12px}.drip-preview{border:1px solid #e4e7eb;border-radius:12px;background:#f8f7f3;overflow:hidden;min-width:0}.drip-preview>strong{display:block;padding:12px 14px;background:#fff;border-bottom:1px solid #e5e7eb;font-size:13px}.drip-preview-phone{padding:12px;background:#eeeae2;min-height:190px}.drip-preview-day{margin:0 auto 10px;width:max-content;background:#fff;border-radius:8px;padding:3px 9px;font-size:10px;color:#64748b}.drip-preview-body{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border-radius:10px;padding:12px;font-size:13px;line-height:1.55;min-height:100px;color:#25312c}.drip-preview-phone small{display:block;text-align:right;color:#64748b;font-size:10px;margin-top:5px}.drip-vars-raw{font-weight:400!important}.drip-stop-conditions{margin:18px 0;padding:14px;border:1px solid #e2e8e5;border-radius:10px}.drip-stop-conditions summary{cursor:pointer;font-weight:600}.drip-stop-conditions p{margin:10px 0 0}@media(max-width:800px){.drip-step-content{grid-template-columns:1fr}.drip-builder-name{grid-template-columns:1fr}.drip-step-delay{grid-template-columns:30px 1fr;}.drip-step-delay .danger-link{grid-column:2;justify-self:end}.drip-delay-parts{flex-wrap:wrap}.drip-variable-row{grid-template-columns:1fr}}
/* v0.8.0 vendor-owned embeddable lead forms */
.forms-builder-layout{display:grid;grid-template-columns:minmax(170px,.7fr) minmax(280px,1.4fr) minmax(220px,1fr);gap:16px;margin:18px 0;align-items:start}.forms-builder-layout>.famecrm-card{padding:16px;min-width:0}.form-field-palette{display:grid;gap:8px}.form-field-palette button{border:1px solid var(--border,#dce5e1);background:var(--surface,#fff);border-radius:8px;padding:10px;text-align:left;cursor:grab;color:inherit}.form-fields-dropzone{display:grid;gap:10px;min-height:150px}.form-builder-field{border:1px solid var(--border,#dce5e1);border-radius:10px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end;background:var(--surface,#fff)}.form-builder-field .form-field-grip{grid-column:1/-1;color:#82918b;cursor:grab}.form-builder-field .checkline{display:flex;align-items:center;gap:8px}.form-builder-field .checkline input{width:auto}.form-builder-field button{justify-self:start}.form-live-preview{display:grid;gap:12px}.form-live-preview label{display:grid;gap:6px;font-size:13px}.form-live-preview input,.form-live-preview textarea,.form-live-preview select{width:100%}.form-list-card{padding:18px;margin:12px 0;display:flex;justify-content:space-between;gap:18px;align-items:center}.form-list-card code{display:block;max-width:720px;overflow-wrap:anywhere;white-space:normal;color:var(--muted,#65746d)}.form-card-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.form-list-card h3{margin:0 0 5px}.form-list-card p{margin:0 0 8px;color:var(--muted,#65746d)}@media(max-width:1050px){.forms-builder-layout{grid-template-columns:1fr 1fr}.forms-builder-layout>aside:last-child{grid-column:1/-1}}@media(max-width:650px){.forms-builder-layout{grid-template-columns:1fr}.form-builder-field{grid-template-columns:1fr}.form-list-card{align-items:flex-start;flex-direction:column}.form-card-actions{justify-content:flex-start}}
/* FameCRM v0.8.3 — Lead operations */
.lead-toolbar{align-items:center;gap:8px;flex-wrap:wrap}.lead-toolbar>.famecrm-input{min-width:180px;flex:1}.lead-toolbar .lead-bulk-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-left:auto}.lead-bulk-actions .famecrm-input{min-width:170px}.lead-tag-list{display:flex;gap:4px;flex-wrap:wrap;max-width:180px}.lead-tag{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#eef8f1;color:#177d45;font-size:10px;font-weight:700}.followup-chip{display:inline-flex;padding:4px 7px;border-radius:7px;background:#eef6ff;color:#2563a9;font-size:10px;white-space:nowrap}.followup-chip.overdue{background:#fff0f0;color:#c0392b}.muted{color:#9aa5a0}.lead-quick-actions{display:flex;gap:7px;flex-wrap:wrap}.lead-activity-card{margin-top:14px}.lead-note-actions{display:flex;justify-content:flex-end;margin-top:8px}.lead-edit-grid label{display:flex;flex-direction:column;gap:6px}.checkline{display:flex!important;flex-direction:row!important;align-items:center;gap:8px}.checkline input{width:auto!important}.lead-toolbar .famecrm-select{min-width:145px}@media(max-width:900px){.lead-toolbar .lead-bulk-actions{width:100%;margin-left:0}.lead-toolbar>.famecrm-input{min-width:150px}.lead-tag-list{max-width:120px}}
/* v0.8.3.3 — WhatsApp API Documentation */
.api-docs-shell{display:grid;gap:16px;max-width:1180px}.api-docs-auth{padding:22px;border:1px solid #dce8e1;background:linear-gradient(135deg,#fbfefc,#f5faf7)}.api-docs-kicker{text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:800;color:#16803c}.api-docs-auth h3,.api-docs-section h2{margin:4px 0 6px;color:#172b21}.api-docs-auth p{margin:0 0 15px;color:#64746c;line-height:1.55}.api-key-display{display:flex;gap:8px;align-items:center}.api-key-display input{flex:1;min-width:0;border:1px solid #cfded5;border-radius:9px;padding:11px 13px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#fff;color:#172b21}.api-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.api-auth-grid>div{display:grid;gap:6px}.api-auth-grid strong{font-size:12px;color:#4b5d54}.api-auth-grid code,.api-docs-note code{background:#eef5f0;padding:4px 6px;border-radius:6px;overflow-wrap:anywhere}.api-docs-note{margin-top:12px;font-size:12px;color:#64746c}.api-docs-actions{display:flex;align-items:center;gap:12px;padding:2px 4px;color:#718078;font-size:12px}.api-docs-section{background:#fff;border:1px solid #dfe8e3;border-radius:14px;overflow:hidden}.api-docs-section-head{padding:18px 20px;border-bottom:1px solid #e7eeea;background:#fbfdfc}.api-docs-section-head h2{font-size:18px}.api-endpoint{display:grid;grid-template-columns:70px minmax(0,1fr);gap:14px;padding:15px 20px;border-bottom:1px solid #edf2ef}.api-endpoint:last-child{border-bottom:0}.api-endpoint strong{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;color:#26352e}.api-endpoint small{display:block;color:#718078;margin-top:4px;line-height:1.5}.api-endpoint pre{margin:9px 0 0;padding:10px;background:#f6f8f7;border-radius:8px;overflow:auto;font-size:11px}.method{display:inline-flex;align-items:center;justify-content:center;height:25px;border-radius:6px;font-size:10px;font-weight:800;letter-spacing:.04em;color:#fff}.method.get{background:#2d83c7}.method.post{background:#19a45a}.method.delete{background:#df4b4b}.api-docs-compat{border-color:#bfe2cc}.api-docs-warning{padding:14px 16px;background:#fff9e8;border:1px solid #f2d28a;border-radius:12px;color:#715619;font-size:12px;line-height:1.55}@media(max-width:700px){.api-auth-grid{grid-template-columns:1fr}.api-key-display{align-items:stretch;flex-direction:column}.api-key-display .famecrm-btn{width:100%}.api-endpoint{grid-template-columns:1fr;gap:8px}.api-docs-actions{align-items:flex-start;flex-direction:column}}

/* =========================================================
   Wakraft CRM v0.1.1 — Screenshot-matched workspace UI
   ========================================================= */
body.famecrm-page{background:#f5f6f8!important;margin:0!important}
body.famecrm-page .site-header,body.famecrm-page header:not(.famecrm-topbar),body.famecrm-page .site-footer,body.famecrm-page footer,body.famecrm-page .elementor-location-header,body.famecrm-page .elementor-location-footer{display:none!important}
body.famecrm-page .famecrm-app{position:fixed;inset:0;border:0;border-radius:0;box-shadow:none;min-height:100vh;background:#f7f8fa;overflow:hidden;z-index:1}
body.famecrm-page .famecrm-sidebar{width:246px;background:#0d1528;border-right:1px solid #172139;color:#fff;padding:0 15px;min-height:100vh}
body.famecrm-page .famecrm-brand{height:70px;padding:0 0 0 2px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #202a40;margin-bottom:10px}
body.famecrm-page .famecrm-wordmark{color:#fff;font-size:14px;letter-spacing:0;display:flex;flex-direction:column;line-height:16px}
body.famecrm-page .famecrm-wordmark span{color:#fff}body.famecrm-page .famecrm-wordmark b{color:#b9c1d0;font-size:12px;font-weight:600}
body.famecrm-page .famecrm-brand:before{content:'W';display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#fff;color:#9ad500;font-weight:900;font-size:22px}
body.famecrm-page .famecrm-brand small{display:none}
body.famecrm-page .famecrm-nav{gap:2px}
body.famecrm-page .famecrm-nav button,body.famecrm-page .nav-parent{color:#d7ddea;border-radius:9px;padding:11px 10px;font-size:13px}
body.famecrm-page .famecrm-nav button:hover,body.famecrm-page .famecrm-nav button.active,body.famecrm-page .nav-group.open>.nav-parent{background:#111b31;color:#fff;font-weight:700}
body.famecrm-page .nav-icon{color:#aeb8ca;font-size:16px}body.famecrm-page .famecrm-nav button.active .nav-icon{color:#fff}
body.famecrm-page .nav-chevron{color:#8d99ae;margin-left:auto;font-size:16px}
body.famecrm-page .nav-sub{padding:3px 0 4px 30px}body.famecrm-page .nav-sub button{padding:8px 9px;color:#aeb8ca;font-size:12px}body.famecrm-page .nav-sub button:hover,body.famecrm-page .nav-sub button.active{background:#16223b;color:#fff}
body.famecrm-page .nav-sub b{background:#24304a;color:#b9c6dc}
body.famecrm-page .famecrm-help{border-top:1px solid #202a40;padding:12px 0;margin-top:auto}.famecrm-help a{color:#aeb8ca}
body.famecrm-page .famecrm-connection-pill{background:#111b31;border-color:#26324b;color:#fff;margin-bottom:10px}.famecrm-connection-pill small{color:#8f9bb0}
body.famecrm-page .famecrm-main{background:#f7f8fa;overflow:auto}
body.famecrm-page .famecrm-topbar{height:62px;padding:0 16px;background:#fff;border-bottom:1px solid #e6e9ee;gap:14px;position:sticky;top:0;z-index:10}
body.famecrm-page .famecrm-search-wrap{flex:1;max-width:555px}.famecrm-search{max-width:none!important;margin-left:0!important;height:38px;background:#fff;border:1px solid #e1e5eb;border-radius:10px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
body.famecrm-page .famecrm-search kbd{font-size:10px;color:#8c94a2;background:#f7f8fa;border:1px solid #e3e6eb;border-radius:4px;padding:2px 5px;margin-left:auto}
body.famecrm-page .famecrm-top-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.top-quick-create{background:#111;color:#fff;border:0;border-radius:10px;padding:9px 13px;font-weight:700;font-size:12px;cursor:pointer}.top-utility,.top-balance{background:#fff;border:1px solid #dfe3e8;border-radius:18px;padding:8px 11px;font-size:11px;color:#3c4552}.top-utility span{border:1px solid #bfc5ce;border-radius:50%;padding:0 3px}.top-balance{font-weight:600}.famecrm-user{margin-left:0}.famecrm-user>div{display:none}.famecrm-avatar{width:34px;height:34px;background:#111;color:#c5f000;border:2px solid #111}
body.famecrm-page .famecrm-content{padding:14px 12px 40px;max-width:1560px;margin:0 auto}.famecrm-page-head{margin-bottom:15px}.famecrm-page-head h1{font-size:23px;color:#101827}.famecrm-page-head p{color:#77808d;font-size:12px}.date-pill{background:#fff;border-color:#e0e4e9;box-shadow:0 2px 7px rgba(15,23,42,.05)}
body.famecrm-page .wakraft-dashboard-stats{grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px;margin-bottom:14px}.wakraft-dashboard-stats .famecrm-stat{min-height:82px;padding:14px 15px;border-color:#e2e6eb;border-radius:15px;position:relative;box-shadow:0 2px 6px rgba(15,23,42,.03);display:flex;justify-content:space-between}.wakraft-dashboard-stats .famecrm-stat>div{display:flex;flex-direction:column;gap:7px}.wakraft-dashboard-stats small{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#657083}.wakraft-dashboard-stats strong{font-size:27px;color:#101827}.wakraft-dashboard-stats em{position:absolute;right:12px;top:12px;font-size:10px;font-style:normal;color:#657083}.wakraft-dashboard-stats .stat-icon{align-self:flex-end;width:40px;height:40px;border-radius:10px;color:#fff;background:#3b82f6}.wakraft-dashboard-stats .stat-purple .stat-icon,.wakraft-dashboard-stats .stat-purple2 .stat-icon{background:#6366f1}.wakraft-dashboard-stats .stat-cyan .stat-icon{background:#11aeb8}.wakraft-dashboard-stats .stat-green .stat-icon{background:#18ad68}.wakraft-dashboard-stats .stat-teal .stat-icon{background:#0fa98c}.wakraft-dashboard-stats .stat-blue2 .stat-icon{background:#2589ea}
body.famecrm-page .wakraft-dashboard-grid{display:grid;grid-template-columns:1.15fr 1fr 1.05fr;gap:14px}.wakraft-dashboard-grid .famecrm-card,body.famecrm-page .wakraft-dashboard-bottom .famecrm-card{background:#fff;border:1px solid #e2e6eb;border-radius:15px;box-shadow:0 2px 6px rgba(15,23,42,.025);padding:16px}.wakraft-dashboard-grid .card-head,.wakraft-dashboard-bottom .card-head{margin-bottom:13px}.wakraft-dashboard-grid .card-head h3,.wakraft-dashboard-bottom .card-head h3{font-size:13px;color:#111827}.wakraft-dashboard-grid select,.wakraft-dashboard-bottom select{border:1px solid #e0e4e9;border-radius:9px;padding:6px 8px;background:#fff;color:#566170;font-size:10px}
#dashboard-pipeline-bars{display:flex;flex-direction:column;gap:9px}.dash-pipeline-row{display:grid;grid-template-columns:82px 1fr 22px;align-items:center;gap:10px;font-size:10px;color:#667080}.dash-pipeline-track{height:26px;background:#f4f6f8;border-radius:8px;overflow:hidden}.dash-pipeline-fill{height:100%;border-radius:8px}.pipeline-total{border-top:1px solid #eef0f3;margin-top:12px;padding-top:9px;text-align:right;font-size:10px;color:#6d7582}.pipeline-total strong{color:#111827;margin-left:4px}.source-total{text-align:center;padding:18px 0 12px}.source-total strong{display:block;font-size:25px;color:#111827}.source-total span{font-size:9px;color:#8a92a0}.source-legend{display:grid;grid-template-columns:1fr 1fr;gap:9px 20px;font-size:10px}.source-item{display:flex;align-items:center;justify-content:space-between;color:#5f6876}.source-item i{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:6px}.source-item span:first-child{display:flex;align-items:center}.followups-empty{min-height:190px;display:grid;place-items:center;text-align:center;color:#858d99;font-size:11px;padding:15px}.wakraft-dashboard-bottom{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:14px;margin-top:14px}.message-summary{display:flex;gap:12px}.message-summary div{flex:1;background:#f8f9fb;border:1px solid #edf0f3;border-radius:10px;padding:13px}.message-summary span,.crm-mini-stat span{display:block;color:#7c8491;font-size:10px}.message-summary strong,.crm-mini-stat strong{display:block;font-size:24px;margin-top:5px;color:#111827}.crm-mini-stat{text-align:center;padding:20px}.wakraft-dashboard-hidden{display:none!important}
body.famecrm-page .lead-stat-strip{grid-template-columns:repeat(5,1fr);gap:10px}.lead-stat-strip>div{background:#fff;border:1px solid #e2e6eb;border-radius:12px}.table-card{border-color:#e2e6eb!important;box-shadow:0 2px 6px rgba(15,23,42,.025)}.table-toolbar{background:#fff}.responsive-table{overflow:auto}.responsive-table table{min-width:1100px}.responsive-table thead th{background:#f8f9fb;color:#687283;font-size:10px;text-transform:uppercase}.responsive-table tbody td{font-size:11px;border-color:#edf0f3}.lead-name-link{font-size:12px}.source-badge{border-radius:12px!important}
body.famecrm-page .famecrm-inbox{border-color:#e2e6eb;border-radius:0;height:calc(100vh - 150px);min-height:500px;box-shadow:none}.famecrm-chat-list{background:#fff}.conversation-row{padding:11px 12px}.conversation-row.selected{background:#f0f7ff;box-shadow:inset 3px 0 #3b82f6}.famecrm-chat{background:#f7f8fa}.message-list{background:#f1f5f9}.outgoing .bubble{background:#dcf8e7}
@media(max-width:1100px){body.famecrm-page .wakraft-dashboard-stats{grid-template-columns:repeat(2,1fr)}body.famecrm-page .wakraft-dashboard-grid{grid-template-columns:1fr}body.famecrm-page .wakraft-dashboard-bottom{grid-template-columns:1fr}.famecrm-top-actions .top-utility{display:none}}
@media(max-width:700px){body.famecrm-page .famecrm-sidebar{width:246px}body.famecrm-page .famecrm-topbar{padding:0 10px}.famecrm-top-actions{display:none!important}body.famecrm-page .famecrm-content{padding:12px 9px 30px}.wakraft-dashboard-stats{grid-template-columns:1fr!important}}
/* Wakraft CRM v0.1.2 - Lead import/export + compact filters + universal sidebar accordions */
.lead-filter-toolbar{padding:14px;border-bottom:1px solid #edf1ef;background:#fff}
.lead-filter-row{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(150px,1fr)) minmax(150px,1fr);gap:8px;align-items:center}
.lead-filter-search{position:relative;min-width:0}
.lead-filter-search .dashicons{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#8a9791;font-size:17px;pointer-events:none}
.lead-filter-search input{padding-left:36px}
.lead-filter-row .famecrm-select,.lead-filter-row .famecrm-input{min-width:0}
.lead-bulk-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:10px}
.lead-bulk-actions .famecrm-select{min-width:170px}
.nav-sub.is-collapsed{display:none!important}
.nav-sub-empty{display:block!important;padding:7px 10px 9px 44px!important;color:#7e8a84;font-size:11px;font-style:italic}
#famecrm-sidebar .nav-parent[aria-expanded="false"] .nav-chevron{transform:rotate(0deg)}
#famecrm-sidebar .nav-parent[aria-expanded="true"] .nav-chevron{transform:rotate(90deg)}
#famecrm-sidebar .nav-chevron{transition:transform .16s ease}
@media(max-width:1200px){.lead-filter-row{grid-template-columns:minmax(200px,1.6fr) repeat(3,minmax(135px,1fr))}.lead-filter-row #lead-tag-filter{grid-column:1 / -1}}
@media(max-width:760px){.lead-filter-row{grid-template-columns:1fr}.lead-filter-row #lead-tag-filter{grid-column:auto}.lead-bulk-actions{justify-content:flex-start}.lead-bulk-actions>*{flex:1;min-width:130px}}

.lead-import-modal{width:100%}.lead-import-modal .modal-header-row{margin-bottom:14px}.lead-import-mapping-list{display:grid;grid-template-columns:1fr 1.15fr;gap:8px;max-height:48vh;overflow:auto;padding:2px}.lead-import-map-row{display:contents}.lead-import-map-row>div{background:#f8fbf9;border:1px solid var(--line);border-radius:9px;padding:9px 10px}.lead-import-map-row>div strong,.lead-import-map-row>div small{display:block}.lead-import-map-row>div small{color:var(--muted);font-size:10px;margin-top:2px}.lead-import-map{min-height:42px}.lead-import-preview{margin:10px 0 14px}.lead-import-preview>strong{display:block;margin-bottom:7px}.lead-import-preview .responsive-table{border:1px solid var(--line);border-radius:9px;max-height:160px}.lead-import-preview th,.lead-import-preview td{padding:7px 9px;font-size:10px;white-space:nowrap}.import-map-note{margin-top:12px;background:#f4f8f6;border:1px solid #dce9e2;border-radius:9px;padding:10px;color:#52615b;font-size:11px}.import-map-note strong{color:#173f32}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}@media(max-width:700px){.lead-import-mapping-list{grid-template-columns:1fr}.lead-import-map-row{display:grid;grid-template-columns:1fr}.lead-import-map-row>div{border-radius:9px 9px 0 0}.lead-import-map{border-radius:0 0 9px 9px!important}}

.famecrm-modal:has(.lead-import-modal) .modal-card{width:min(900px,calc(100% - 30px))}

/* Wakraft CRM v0.1.3.1 - import modal visibility/scroll + reliable sidebar accordions */
body.famecrm-page .famecrm-modal:has(.lead-import-modal) .modal-card{
  width:min(960px,calc(100vw - 40px)) !important;
  max-width:960px !important;
  max-height:calc(100vh - 40px) !important;
  padding:0 !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  box-sizing:border-box !important;
}
body.famecrm-page .lead-import-modal{
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  max-height:calc(100vh - 40px) !important;
  width:100% !important;
  box-sizing:border-box !important;
}
body.famecrm-page .lead-import-head{
  flex:0 0 auto !important;
  padding:20px 64px 16px 20px !important;
  margin:0 !important;
  border-bottom:1px solid #e7eeea !important;
  background:#fff !important;
  position:relative !important;
}
body.famecrm-page .lead-import-body{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:20px !important;
  box-sizing:border-box !important;
  background:#fbfcfb !important;
}
body.famecrm-page .lead-import-modal .lead-import-preview{margin:0 0 18px !important}
body.famecrm-page .lead-import-modal .lead-import-mapping-list{
  max-height:none !important;
  overflow:visible !important;
  padding:0 !important;
}
body.famecrm-page .lead-import-modal .import-map-note{margin:18px 0 0 !important}
body.famecrm-page .lead-import-actions{
  flex:0 0 auto !important;
  position:relative !important;
  bottom:auto !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  gap:10px !important;
  padding:14px 20px !important;
  margin:0 !important;
  border-top:1px solid #e1e9e5 !important;
  background:#fff !important;
  box-shadow:0 -4px 14px rgba(15,23,42,.05) !important;
  z-index:5 !important;
}
body.famecrm-page .lead-import-actions .famecrm-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:42px !important;
  min-width:110px !important;
  padding:10px 18px !important;
  border:1px solid #cfdad4 !important;
  background:#fff !important;
  color:#34453d !important;
  opacity:1 !important;
  visibility:visible !important;
  position:relative !important;
  z-index:6 !important;
}
body.famecrm-page .lead-import-actions .famecrm-btn.primary,#confirm-lead-import{
  background:#16a34a !important;
  border-color:#16a34a !important;
  color:#fff !important;
  font-weight:700 !important;
  box-shadow:0 4px 10px rgba(22,163,74,.18) !important;
}
body.famecrm-page .lead-import-actions .famecrm-btn.primary:hover,#confirm-lead-import:hover{background:#15803d !important;border-color:#15803d !important}
body.famecrm-page .nav-group .nav-sub{display:none !important}
body.famecrm-page .nav-group.open .nav-sub:not(.is-collapsed){display:block !important}
body.famecrm-page .nav-group .nav-sub.nav-sub-empty:not(.is-collapsed){display:block !important}
body.famecrm-page .nav-group .nav-parent{position:relative !important}
body.famecrm-page .nav-group .nav-chevron{transition:transform .16s ease !important}
body.famecrm-page .nav-group.open .nav-parent .nav-chevron{transform:rotate(90deg) !important}
body.famecrm-page .nav-group:not(.open) .nav-parent .nav-chevron{transform:rotate(0deg) !important}
@media(max-width:760px){
  body.famecrm-page .famecrm-modal:has(.lead-import-modal){padding:8px !important}
  body.famecrm-page .famecrm-modal:has(.lead-import-modal) .modal-card{width:calc(100vw - 16px) !important;max-height:calc(100vh - 16px) !important}
  body.famecrm-page .lead-import-modal{max-height:calc(100vh - 16px) !important}
  body.famecrm-page .lead-import-body{padding:16px !important}
  body.famecrm-page .lead-import-head{padding:18px 54px 14px 16px !important}
  body.famecrm-page .lead-import-actions{padding:12px 16px !important}
  body.famecrm-page .lead-import-actions .famecrm-btn{flex:1 !important;min-width:0 !important}
}

/* Wakraft CRM v0.1.3.2 — inline team-member invite UI */
body.famecrm-page .team-invite-card{padding:0!important;overflow:hidden;margin-bottom:18px}
body.famecrm-page .team-invite-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 30px;border-bottom:1px solid #edf1ef;background:#fff}
body.famecrm-page .team-invite-head h3{margin:0 0 4px;font-size:17px;color:#17251f}
body.famecrm-page .team-invite-head p{margin:0;color:#87938e;font-size:12px}
body.famecrm-page .team-invite-submit{min-width:145px;white-space:nowrap}
body.famecrm-page .team-invite-form{padding:24px 30px 26px;background:#fff}
body.famecrm-page .team-invite-grid{display:grid;grid-template-columns:minmax(180px,1.1fr) minmax(220px,1.4fr) minmax(180px,.8fr) minmax(180px,1fr);gap:16px;align-items:end}
body.famecrm-page .team-invite-grid label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:600;color:#52615b}
body.famecrm-page .team-invite-grid label small{font-size:10px;font-weight:400;color:#8a9691;margin-left:4px}
body.famecrm-page .team-invite-grid .famecrm-input,body.famecrm-page .team-invite-grid .famecrm-select{width:100%;box-sizing:border-box;min-height:44px}
body.famecrm-page .team-invite-feedback{margin-top:16px;padding:11px 13px;border-radius:9px;font-size:11px}
body.famecrm-page .team-invite-feedback.success{background:#edf9f1;border:1px solid #bfe7cc;color:#17653a}
body.famecrm-page .team-invite-feedback.error{background:#fff1f1;border:1px solid #f1caca;color:#a12626}
body.famecrm-page .team-members-card .card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.famecrm-page .team-members-card .card-head h3{margin:0 0 3px}
body.famecrm-page .team-members-card .card-head p{margin:0}
@media(max-width:1050px){body.famecrm-page .team-invite-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body.famecrm-page .team-invite-head{align-items:flex-start;flex-direction:column;padding:18px 20px}body.famecrm-page .team-invite-submit{width:100%}body.famecrm-page .team-invite-form{padding:20px}body.famecrm-page .team-invite-grid{grid-template-columns:1fr}}

/* Wakraft CRM v0.1.3.2 — Global modal UX: 20px frame, internal scroll, sticky actions */
body.famecrm-page .famecrm-modal .modal-card{
  display:flex !important;
  flex-direction:column !important;
  box-sizing:border-box !important;
  padding:20px !important;
  overflow:hidden !important;
  max-height:calc(100vh - 32px) !important;
}
body.famecrm-page .famecrm-modal #modal-content{
  min-width:0 !important;
  min-height:0 !important;
  flex:1 1 auto !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  box-sizing:border-box !important;
  scrollbar-width:thin !important;
  scrollbar-color:#b9c8bf transparent !important;
}
body.famecrm-page .famecrm-modal #modal-content::-webkit-scrollbar{width:8px}
body.famecrm-page .famecrm-modal #modal-content::-webkit-scrollbar-track{background:transparent}
body.famecrm-page .famecrm-modal #modal-content::-webkit-scrollbar-thumb{background:#b9c8bf;border-radius:10px}

/* Full-bleed specialist modals already have their own internal layout/scrolling. */
body.famecrm-page .famecrm-modal .modal-card:has(.template-send-modal),
body.famecrm-page .famecrm-modal .modal-card:has(.lead-import-modal){padding:0 !important}
body.famecrm-page .famecrm-modal .modal-card:has(.template-send-modal) #modal-content,
body.famecrm-page .famecrm-modal .modal-card:has(.lead-import-modal) #modal-content{overflow:hidden !important}

/* Keep modal action bars visible while the content above them scrolls. */
body.famecrm-page .famecrm-modal #modal-content .modal-actions,
body.famecrm-page .famecrm-modal #modal-content .form-actions,
body.famecrm-page .famecrm-modal #modal-content .lead-edit-actions,
body.famecrm-page .famecrm-modal #modal-content .lead-modal-footer,
body.famecrm-page .famecrm-modal #modal-content .lead-detail-actions{
  position:sticky !important;
  bottom:0 !important;
  z-index:20 !important;
  background:#fff !important;
  box-shadow:0 -8px 18px rgba(15,23,42,.06) !important;
}
body.famecrm-page .famecrm-modal #modal-content .modal-actions,
body.famecrm-page .famecrm-modal #modal-content .form-actions{
  padding:14px 0 0 !important;
  margin-top:20px !important;
  border-top:1px solid #e8efeb !important;
}
body.famecrm-page .famecrm-modal #modal-content .modal-actions .famecrm-btn,
body.famecrm-page .famecrm-modal #modal-content .form-actions .famecrm-btn,
body.famecrm-page .famecrm-modal #modal-content .lead-edit-actions .famecrm-btn,
body.famecrm-page .famecrm-modal #modal-content .lead-modal-footer .famecrm-btn{
  min-height:42px !important;
}

/* Lead edit modal: remove legacy oversized horizontal padding so the global 20px frame is used. */
body.famecrm-page .famecrm-modal .modal-card:has(.lead-edit-modal){
  width:min(1100px,calc(100% - 32px)) !important;
  max-height:calc(100vh - 32px) !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-profile-header{padding:20px 0 18px !important}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-edit-grid{padding:20px 0 0 !important}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-edit-actions{padding:14px 0 !important;margin-top:20px !important;border-top:1px solid #edf1ef !important;border-bottom:0 !important}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-notes-card{margin:18px 0 !important}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-activity-card{margin-left:0 !important;margin-right:0 !important}

@media(max-width:760px){
  body.famecrm-page .famecrm-modal{padding:8px !important}
  body.famecrm-page .famecrm-modal .modal-card{
    width:calc(100vw - 16px) !important;
    max-height:calc(100vh - 16px) !important;
    padding:20px !important;
    border-radius:16px !important;
  }
  body.famecrm-page .famecrm-modal .modal-card:has(.template-send-modal),
  body.famecrm-page .famecrm-modal .modal-card:has(.lead-import-modal){padding:0 !important}
  body.famecrm-page .famecrm-modal .lead-edit-modal .lead-edit-grid{grid-template-columns:1fr !important}
  body.famecrm-page .famecrm-modal .lead-edit-modal .lead-edit-actions{padding:12px 0 !important}
  body.famecrm-page .famecrm-modal .lead-edit-modal .lead-edit-actions .famecrm-btn{flex:1 !important}
}


/* Wakraft CRM v0.1.3.2.1 — Lead editor control polish and high-visibility actions */
body.famecrm-page .famecrm-modal .modal-card:has(.lead-edit-modal){
  background:#ffffff !important;
  border:1px solid #dce8e2 !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-profile-header{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:28px !important;
  padding:20px 0 18px !important;
  background:linear-gradient(180deg,#fbfefc 0%,#ffffff 100%) !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-status-box{
  width:270px !important;
  min-width:270px !important;
  flex:0 0 270px !important;
  padding:0 !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-status-box label{
  display:block !important;
  margin:0 0 7px !important;
  color:#52645b !important;
  font-size:11px !important;
  font-weight:800 !important;
  letter-spacing:.07em !important;
  text-transform:uppercase !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-status-box .famecrm-select,
body.famecrm-page .famecrm-modal .lead-edit-modal #lead-edit-status{
  display:block !important;
  width:100% !important;
  min-height:48px !important;
  box-sizing:border-box !important;
  padding:11px 42px 11px 14px !important;
  border:1px solid #cfded6 !important;
  border-radius:12px !important;
  background-color:#ffffff !important;
  color:#17251f !important;
  font-size:14px !important;
  font-weight:600 !important;
  line-height:1.2 !important;
  opacity:1 !important;
  visibility:visible !important;
  cursor:pointer !important;
  box-shadow:0 2px 8px rgba(20,60,45,.04) !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-status-box .famecrm-select:focus,
body.famecrm-page .famecrm-modal .lead-edit-modal #lead-edit-status:focus{
  outline:none !important;
  border-color:#159b53 !important;
  box-shadow:0 0 0 3px rgba(21,155,83,.12) !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-convert-wrap{
  margin-top:9px !important;
  width:100% !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .customer-convert-btn{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:48px !important;
  box-sizing:border-box !important;
  padding:11px 16px !important;
  border:1px solid #159b53 !important;
  border-radius:12px !important;
  background:#159b53 !important;
  color:#ffffff !important;
  font-size:14px !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  text-decoration:none !important;
  opacity:1 !important;
  visibility:visible !important;
  cursor:pointer !important;
  box-shadow:0 5px 14px rgba(21,155,83,.18) !important;
  transition:background .16s ease,transform .16s ease,box-shadow .16s ease !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .customer-convert-btn:hover{
  background:#128748 !important;
  border-color:#128748 !important;
  transform:translateY(-1px) !important;
  box-shadow:0 7px 18px rgba(21,155,83,.24) !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .customer-converted-badge{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:48px !important;
  box-sizing:border-box !important;
  padding:11px 14px !important;
  border:1px solid #bfe7cd !important;
  border-radius:12px !important;
  background:#ecfaf1 !important;
  color:#16733e !important;
  font-size:13px !important;
  font-weight:800 !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-edit-actions{
  position:sticky !important;
  bottom:0 !important;
  z-index:50 !important;
  display:flex !important;
  justify-content:flex-end !important;
  gap:10px !important;
  margin-top:22px !important;
  padding:14px 0 2px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.94),#fff 35%) !important;
  border-top:1px solid #e3ebe7 !important;
  box-shadow:0 -10px 22px rgba(15,23,42,.06) !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-edit-actions .famecrm-btn{
  min-width:120px !important;
  min-height:44px !important;
  padding:10px 18px !important;
  border-radius:11px !important;
  font-weight:800 !important;
  opacity:1 !important;
  visibility:visible !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-edit-actions .famecrm-btn:not(.primary){
  background:#ffffff !important;
  color:#405149 !important;
  border:1px solid #ccd9d2 !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-edit-actions .famecrm-btn.primary{
  background:#159b53 !important;
  color:#ffffff !important;
  border:1px solid #159b53 !important;
  box-shadow:0 5px 14px rgba(21,155,83,.18) !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-edit-actions .famecrm-btn.primary:hover{
  background:#128748 !important;
  border-color:#128748 !important;
}
body.famecrm-page .famecrm-modal .lead-edit-modal .lead-profile-copy h2{color:#14231c !important}
@media(max-width:760px){
  body.famecrm-page .famecrm-modal .lead-edit-modal .lead-profile-header{flex-direction:column !important;gap:16px !important}
  body.famecrm-page .famecrm-modal .lead-edit-modal .lead-status-box{width:100% !important;min-width:0 !important;flex:1 1 auto !important}
  body.famecrm-page .famecrm-modal .lead-edit-modal .lead-edit-actions{justify-content:stretch !important}
  body.famecrm-page .famecrm-modal .lead-edit-modal .lead-edit-actions .famecrm-btn{flex:1 1 0 !important;min-width:0 !important}
}

/* Wakraft CRM v0.1.3.2.2 — Lead details right-side drawer */
body.famecrm-page .famecrm-modal:has(.lead-drawer-shell){
  align-items:stretch !important;
  justify-content:flex-end !important;
  padding:0 !important;
}
body.famecrm-page .famecrm-modal:has(.lead-drawer-shell) .modal-card{
  width:min(620px,92vw) !important;
  max-width:none !important;
  height:100vh !important;
  max-height:100vh !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:22px 0 0 22px !important;
  overflow:hidden !important;
  border:1px solid #e1e9e5 !important;
  box-shadow:-24px 0 70px rgba(15,23,42,.22) !important;
}
body.famecrm-page .famecrm-modal:has(.lead-drawer-shell) .modal-close{display:none !important}
.lead-drawer-shell{height:100%;min-height:0;background:#f7f9f8;color:#17231e;display:flex;flex-direction:column}
.lead-drawer-head{height:68px;flex:0 0 68px;background:#fff;border-bottom:1px solid #e8eeeb;display:flex;align-items:center;gap:10px;padding:0 16px;box-sizing:border-box}
.lead-drawer-back{border:0;background:transparent;width:34px;height:34px;border-radius:9px;color:#53635d;font-size:22px;cursor:pointer}.lead-drawer-back:hover{background:#f1f5f3}
.lead-drawer-title{min-width:0;flex:1}.lead-drawer-title strong,.lead-drawer-title small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lead-drawer-title strong{font-size:15px}.lead-drawer-title small{font-size:10px;color:#77857e;margin-top:3px}
.lead-drawer-head-actions{display:flex;align-items:center;gap:7px}.lead-drawer-head-actions .famecrm-btn{white-space:nowrap}.lead-drawer-close{border:0;background:#fff;color:#718079;width:34px;height:34px;border-radius:9px;font-size:24px;cursor:pointer}.lead-drawer-close:hover{background:#f1f5f3;color:#17231e}
.lead-drawer-scroll{flex:1;min-height:0;overflow-y:auto;padding:14px 14px 28px;scroll-behavior:smooth}.lead-drawer-scroll::-webkit-scrollbar{width:8px}.lead-drawer-scroll::-webkit-scrollbar-thumb{background:#c7d3cd;border-radius:10px}
.lead-drawer-profile{background:#fff;border:1px solid #e2ebe6;border-radius:15px;padding:16px;display:flex;align-items:flex-start;gap:12px;position:relative}.lead-drawer-avatar{width:44px;height:44px;flex:0 0 44px;border-radius:50%;display:grid;place-items:center;background:#e0f5e8;color:#159b53;font-weight:900;font-size:17px}.lead-drawer-profile-copy{min-width:0;flex:1}.lead-drawer-tags{display:flex;gap:6px;align-items:center;margin-bottom:6px}.lead-drawer-profile-copy h2{margin:0;font-size:17px;line-height:1.25}.lead-drawer-contact{display:flex;gap:12px;flex-wrap:wrap;color:#5d6d65;font-size:11px;margin-top:7px}.lead-pencil-btn{border:0;background:transparent;color:#809087;font-size:17px;cursor:pointer;width:32px;height:32px;border-radius:8px}.lead-pencil-btn:hover{background:#edf7f1;color:#159b53}
.lead-drawer-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}.lead-action-btn{border:1px solid #e0e8e4;background:#fff;border-radius:12px;min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;color:#52635a;font-weight:700}.lead-action-btn span{font-size:17px}.lead-action-btn small{font-size:10px}.lead-action-btn:hover{border-color:#a8d8ba;background:#f5fbf7;color:#159b53}.lead-action-btn.whatsapp{color:#159b53}.lead-action-btn.follow{background:#101010;color:#fff;border-color:#101010}.lead-action-btn.follow:hover{background:#252525}.lead-action-btn:disabled,.lead-action-btn.disabled{opacity:.45;cursor:not-allowed;background:#f6f8f7;color:#7c8983}
.lead-drawer-card{background:#fff;border:1px solid #e2ebe6;border-radius:15px;padding:15px;margin-bottom:10px}.lead-drawer-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.lead-drawer-card-head small,.metric small{display:block;color:#8a9991;font-size:9px;font-weight:800;letter-spacing:.07em}.lead-drawer-card-head strong{display:block;margin-top:4px;font-size:12px}.lead-drawer-card-head .famecrm-select{width:180px;margin-top:5px}.lead-drawer-card-head>.badge{margin-top:2px}
.lead-drawer-pipeline{display:grid;grid-template-columns:repeat(6,1fr);gap:0;margin:24px 5px 15px;position:relative}.lead-drawer-pipeline:before{content:"";position:absolute;left:5%;right:5%;top:10px;height:2px;background:#dfe6e2;z-index:0}.lead-drawer-stage{position:relative;z-index:1;text-align:center;color:#8b9892}.lead-drawer-stage span{display:grid;place-items:center;width:20px;height:20px;margin:0 auto 6px;border-radius:50%;background:#fff;border:2px solid #dfe6e2;font-size:10px;font-weight:900}.lead-drawer-stage.done span{background:#101010;color:#fff;border-color:#101010}.lead-drawer-stage.active span{background:#fff;color:#101010;border:3px solid #101010}.lead-drawer-stage small{display:block;font-size:8px;font-weight:700}.lead-drawer-stage.done,.lead-drawer-stage.active{color:#1d2b24}.lead-advance-btn{width:100%;border:0;border-radius:10px;background:#101010;color:#fff;min-height:40px;font-weight:800;cursor:pointer}.lead-advance-btn:hover{background:#242424}.lead-win-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.lead-win-actions .famecrm-btn{min-height:38px}.lead-win-actions .danger{color:#d83c3c;border-color:#f2cccc;background:#fff}.lead-drawer-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}.metric strong{display:block;font-size:24px;margin-top:7px;color:#17231e}.metric span{display:block;font-size:9px;color:#9aa69f;margin-top:4px}.win-bar{height:5px;background:#e9efec;border-radius:99px;margin-top:9px;overflow:hidden}.win-bar i{height:100%;display:block;background:#101010;border-radius:99px}
.lead-drawer-tags-list{margin-top:10px;min-height:38px;border:1px dashed #d9e3de;border-radius:10px;padding:8px;display:flex;gap:6px;flex-wrap:wrap;align-items:center}.lead-drawer-tags-list span:not(.muted){padding:5px 8px;border-radius:99px;background:#edf7f1;color:#2d7050;font-size:10px;font-weight:700}.lead-drawer-tags-list .muted{font-size:10px;color:#9aa69f}
.lead-additional-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.lead-additional-grid>div{background:#f7faf8;border:1px solid #e8efeb;border-radius:10px;padding:10px}.lead-additional-grid small{display:block;color:#8a9991;font-size:8px;font-weight:800;text-transform:uppercase}.lead-additional-grid strong{display:block;font-size:11px;margin-top:5px;word-break:break-word}
.lead-tab-nav{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #e7eeea;margin:-15px -15px 0}.lead-tab-nav button{border:0;background:#fff;padding:13px 5px;border-bottom:2px solid transparent;color:#708078;font-size:10px;font-weight:700;cursor:pointer}.lead-tab-nav button.active{color:#17231e;border-bottom-color:#101010}.lead-tab-panel{display:none;padding-top:14px}.lead-tab-panel.active{display:block}.drawer-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:11px}.lead-drawer-timeline-item{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #eef2ef}.lead-drawer-timeline-item>span{width:8px;height:8px;border-radius:50%;background:#159b53;margin-top:5px;flex:0 0 8px}.lead-drawer-timeline-item strong,.lead-drawer-timeline-item small{display:block}.lead-drawer-timeline-item strong{font-size:11px;text-transform:capitalize}.lead-drawer-timeline-item small{font-size:9px;color:#89968f;margin-top:3px}.drawer-empty{text-align:center;padding:24px 10px;color:#7b8982}.drawer-empty strong,.drawer-empty span{display:block}.drawer-empty strong{font-size:12px;color:#3b4b43}.drawer-empty span{font-size:10px;margin:6px 0 13px}.drawer-empty .famecrm-btn{min-height:38px}.lead-action-modal{padding:4px}.lead-action-modal h3{margin:0 0 5px;font-size:20px}.lead-action-modal>p{margin:0 0 18px;color:#77857e;font-size:12px}.lead-action-modal label{display:grid;gap:6px;font-size:11px;font-weight:700;margin:12px 0}.lead-action-modal textarea{resize:vertical}.lead-action-modal-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e7eeea;padding-top:14px;margin-top:18px}
@media(max-width:760px){body.famecrm-page .famecrm-modal:has(.lead-drawer-shell) .modal-card{width:100vw !important;border-radius:18px 0 0 18px !important}.lead-drawer-head-actions .famecrm-btn{display:none}.lead-drawer-actions{grid-template-columns:repeat(2,1fr)}.lead-drawer-pipeline{grid-template-columns:repeat(3,1fr);row-gap:12px}.lead-drawer-pipeline:before{display:none}.lead-drawer-stage{padding-bottom:4px}.lead-additional-grid,.lead-drawer-metrics{grid-template-columns:1fr}.lead-drawer-scroll{padding:10px 10px 20px}}

/* Wakraft v0.1.3.2.3 — lead ownership controls */
.lead-owner-inline{min-width:150px;max-width:190px;height:34px;padding:6px 28px 6px 9px;border:1px solid #dbe5df;border-radius:8px;background:#fff;color:#1b2a23;font-size:12px;line-height:1.2;cursor:pointer;}
.lead-owner-inline:focus{outline:2px solid rgba(22,155,83,.18);border-color:#169b53;}
#lead-assignee-filter{min-width:150px;}

/* Wakraft CRM v0.1.3.2.4 — Team Management table UX */
body.famecrm-page .team-invite-submit{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:145px;font-size:13px;font-weight:700}
body.famecrm-page .team-members-card{padding:0!important;overflow:hidden}
body.famecrm-page .team-members-card .card-head{padding:20px 22px 14px;margin:0;border-bottom:1px solid #edf1ef}
body.famecrm-page .team-table-toolbar{display:flex;gap:10px;align-items:center;padding:14px 22px;background:#fff;border-bottom:1px solid #edf1ef}
body.famecrm-page .team-search-wrap{display:flex;align-items:center;gap:8px;flex:1;max-width:420px;border:1px solid #dce6e1;border-radius:9px;padding-left:11px;background:#fff}
body.famecrm-page .team-search-wrap>span{font-size:18px;color:#728079}
body.famecrm-page .team-search-wrap .famecrm-input{border:0;box-shadow:none;padding-left:2px}
body.famecrm-page .team-table-toolbar>.famecrm-select{width:180px;min-height:42px}
body.famecrm-page .team-table-wrap{overflow:auto}
body.famecrm-page .team-data-table{width:100%;min-width:760px;border-collapse:collapse}
body.famecrm-page .team-data-table th,body.famecrm-page .team-data-table td{padding:13px 16px;border-top:1px solid #edf1ef;text-align:left;vertical-align:middle}
body.famecrm-page .team-data-table th{background:#f8f9fb;color:#687283;font-size:10px;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}
body.famecrm-page .team-data-table td{font-size:12px;color:#26332e}
body.famecrm-page .team-member-cell{display:flex;align-items:center;gap:10px;min-width:180px}
body.famecrm-page .team-member-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e8f7ed;color:#13823b;font-weight:800;flex:0 0 34px}
body.famecrm-page .team-member-cell strong,body.famecrm-page .team-member-cell small,body.famecrm-page .team-contact-cell strong,body.famecrm-page .team-contact-cell small{display:block}
body.famecrm-page .team-member-cell small,body.famecrm-page .team-contact-cell small{margin-top:3px;color:#89958f;font-size:10px}
body.famecrm-page .team-contact-cell strong{font-weight:600}
body.famecrm-page .team-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:20px;font-size:10px;font-weight:700}
body.famecrm-page .team-status.active{background:#e7f7ed;color:#16803d}
body.famecrm-page .team-data-table .status-pill{display:inline-flex;background:#eef2ef;color:#55645d;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:700}
@media(max-width:700px){body.famecrm-page .team-table-toolbar{flex-direction:column;align-items:stretch;padding:12px 16px}body.famecrm-page .team-search-wrap{max-width:none}body.famecrm-page .team-table-toolbar>.famecrm-select{width:100%}body.famecrm-page .team-members-card .card-head{padding:16px}}

/* Wakraft CRM v0.1.4 - unified reference-inspired application shell */
.famecrm-page .famecrm-sidebar{background:#0d1628!important;color:#e8eef8!important;border-right:1px solid #1e2a40!important}
.famecrm-page .famecrm-brand{padding:18px 20px 16px!important;border-bottom:1px solid #1d2940!important}
.famecrm-page .famecrm-brand:before{content:'W';display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:11px;background:#fff;color:#0d1628;font-weight:900;font-size:22px;margin-right:10px;vertical-align:middle}
.famecrm-page .famecrm-wordmark{display:inline-flex!important;vertical-align:middle;flex-direction:column!important;gap:1px!important}
.famecrm-page .famecrm-wordmark span{font-size:15px!important;font-weight:800!important;color:#fff!important}
.famecrm-page .famecrm-wordmark b{font-size:11px!important;color:#9caac0!important}
.famecrm-page .famecrm-brand small{display:none!important}
.wakraft-ref-nav{padding:10px 12px 16px!important}
.wakraft-ref-nav>button,.wakraft-ref-nav .nav-parent{min-height:44px!important;border-radius:10px!important;color:#d9e2ef!important;margin:2px 0!important;padding:0 12px!important;font-weight:600!important}
.wakraft-ref-nav>button:hover,.wakraft-ref-nav .nav-parent:hover,.wakraft-ref-nav .nav-group.open>.nav-parent{background:#14213a!important;color:#fff!important}
.wakraft-ref-nav .nav-sub{padding:3px 0 6px 28px!important}
.wakraft-ref-nav .nav-sub button{min-height:38px!important;color:#b9c5d6!important;border-radius:8px!important;padding:0 10px!important;margin:1px 0!important}
.wakraft-ref-nav .nav-sub button:hover,.wakraft-ref-nav .nav-sub button.active{background:#1a2945!important;color:#fff!important}
.wakraft-ref-nav .nav-sub button b{margin-left:auto!important;background:#263654!important;color:#dce7f7!important;border-radius:999px!important;padding:2px 7px!important;font-size:11px!important}
.wakraft-ref-nav .nav-coming-soon{opacity:.62!important;cursor:not-allowed!important}
.wakraft-ref-nav .nav-coming-soon em{margin-left:auto;font-size:9px;font-style:normal;color:#7f91aa}
.wakraft-ref-nav .nav-chevron{transition:transform .18s ease!important}
.wakraft-ref-nav .nav-group.open>.nav-parent .nav-chevron{transform:rotate(90deg)!important}
.famecrm-page .famecrm-main{background:#f5f7fa!important}
.famecrm-page .famecrm-topbar{height:64px!important;background:#fff!important;border-bottom:1px solid #e7ebf0!important}
.famecrm-page .famecrm-content{background:#f5f7fa!important}
.famecrm-page .famecrm-page-head h1{letter-spacing:-.025em!important}
.famecrm-page .famecrm-card,.famecrm-page .famecrm-stat{border-color:#e3e8ef!important;box-shadow:0 1px 3px rgba(15,23,42,.04)!important}
.famecrm-page .famecrm-btn{border-radius:9px!important;font-weight:600!important}
.famecrm-page .famecrm-btn.primary,.famecrm-page button.primary{background:#16a34a!important;border-color:#16a34a!important;color:#fff!important}

/* Wakraft 0.1.4.1 - unified Settings workspace */
.wakraft-settings-page{max-width:1180px;margin:0 auto;padding:4px 0 40px}
.wakraft-settings-head{padding:8px 0 12px}.wakraft-settings-head h1{margin:0 0 4px;font-size:24px;color:#14211b}.wakraft-settings-head p{margin:0;color:var(--muted);font-size:12px}
.wakraft-settings-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:14px;overflow:auto}.wakraft-settings-tab{border:0;background:transparent;padding:11px 13px;color:#66736d;font-weight:600;cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent}.wakraft-settings-tab:hover{color:#17231d}.wakraft-settings-tab.active{color:#111;background:#fff;border-bottom-color:#111}
.wakraft-settings-panel{display:none}.wakraft-settings-panel.active{display:block}.wakraft-settings-grid{display:grid;gap:14px}.wakraft-settings-grid.two{grid-template-columns:340px 1fr}.wakraft-settings-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:14px;box-shadow:0 1px 2px rgba(12,42,30,.02)}.wakraft-settings-card h3{margin:0 0 6px;font-size:14px;color:#17231d}.wakraft-settings-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.wakraft-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:16px}.account-card{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:250px}.wakraft-account-avatar{width:82px;height:82px;border-radius:24px;background:#e4f7eb;color:#129247;display:grid;place-items:center;font-size:34px;font-weight:800;margin:4px auto 12px}.account-card strong{font-size:16px}.account-card span{margin-top:5px;padding:4px 9px;border-radius:999px;background:#edf2ef;color:#54635d;font-size:10px;font-weight:700}.account-card small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.settings-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.settings-form-grid label{display:flex;flex-direction:column;gap:6px;color:#53625c;font-size:11px;font-weight:600}.settings-form-grid label.full-span{grid-column:1/-1}.settings-form-grid small{font-size:9px;color:var(--muted);font-weight:400}.settings-actions{display:flex;justify-content:flex-end;margin-top:15px}.famecrm-btn.full{width:100%}.settings-note{font-size:11px;color:var(--muted);line-height:1.55;margin-top:12px}.wakraft-settings-subtabs{display:flex;gap:6px;margin:0 0 14px}.wakraft-settings-subtabs button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 11px;font-size:11px;color:#66736d;cursor:pointer}.wakraft-settings-subtabs button.active{background:#111;color:#fff;border-color:#111}.wakraft-profile-pane{display:none}.wakraft-profile-pane.active{display:block}.wakraft-signature-preview{margin-top:14px;border:1px dashed #cddbd4;background:#f8fbf9;border-radius:10px;padding:16px;min-height:60px}.wakraft-settings-page .status-pill{white-space:nowrap}.wakraft-settings-page textarea{resize:vertical;min-height:70px}
@media(max-width:900px){.wakraft-settings-grid.two{grid-template-columns:1fr}.settings-form-grid{grid-template-columns:1fr}.settings-form-grid label.full-span{grid-column:auto}.wakraft-settings-tabs{flex-wrap:nowrap}.wakraft-settings-page{padding-bottom:20px}}

/* Wakraft v0.1.4.2 — Integrations Hub */
.integration-cards-grid.v0142-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}
.v0142-grid .integration-card{min-height:224px;padding:18px;border-radius:16px;cursor:default;box-sizing:border-box}
.v0142-grid .integration-card.integration-card-live{cursor:pointer}
.v0142-grid .integration-card.integration-card-placeholder:hover{transform:none;box-shadow:0 4px 18px rgba(20,60,45,.05);border-color:#e4ebe7}
.v0142-grid .integration-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.v0142-grid .integration-card-icon{width:46px;height:46px;border-radius:12px;font-size:22px;flex:0 0 46px}
.v0142-grid .integration-card-icon.indiamart{background:#fff1f2;color:#c62828}.v0142-grid .integration-card-icon.exporters{background:#fff7ed;color:#b45309}.v0142-grid .integration-card-icon.smartflo{background:#eef2f3;color:#64748b}.v0142-grid .integration-card-icon.ivr{background:#eaf2ff;color:#2563eb}.v0142-grid .integration-card-icon.meet{background:#eaf1ff;color:#2563eb}.v0142-grid .integration-card-icon.zoom{background:#eaf4ff;color:#2563eb}.v0142-grid .integration-card-icon.realestate{background:#f2f7ef;color:#3f7d20}.v0142-grid .integration-card-icon.housing{background:#f0f4f8;color:#35607f}
.v0142-grid .integration-card-body h3{font-size:16px;margin:12px 0 7px}.v0142-grid .integration-card-body p{font-size:11px;line-height:1.55}.v0142-grid .integration-card-status{font-size:9px;padding:5px 8px}.v0142-grid .integration-card-status.coming-soon{background:#fff0e8;color:#c2410c}.v0142-grid .integration-card-action{margin-top:10px;align-self:flex-start;font-size:11px}.v0142-grid .integration-card-action.muted{color:#9aa39f}.v0142-grid .integration-card-actions{display:flex;gap:8px;margin-top:10px}.v0142-grid .integration-manage,.v0142-grid .integration-connect{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e0e7e3;border-radius:9px;padding:8px 13px;font-size:11px;font-weight:800}.v0142-grid .integration-manage{background:#fff;color:#17221e;flex:1}.v0142-grid .integration-connect{background:#111;color:#fff;border-color:#111;flex:1}.v0142-grid .integration-card-live:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(20,60,45,.09);border-color:#cfe2d8}
@media(max-width:1100px){.integration-cards-grid.v0142-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.integration-cards-grid.v0142-grid{grid-template-columns:1fr}}

/* v0.1.4.3 - Baileys WhatsApp Web */
.baileys-grid{display:grid;grid-template-columns:minmax(320px,1fr) minmax(320px,1fr);gap:18px;margin-bottom:18px}.baileys-connect-card{text-align:center}.baileys-qr-wrap{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px dashed #d8e2dd;border-radius:18px;background:#fbfdfc;margin:16px 0;padding:20px}.baileys-qr{width:280px;height:280px;object-fit:contain;border-radius:12px;background:#fff;padding:8px}.baileys-actions{display:flex;gap:10px;justify-content:center}.baileys-status-list{display:grid;gap:0;border:1px solid #e2e8e5;border-radius:14px;overflow:hidden}.baileys-status-list div{display:flex;justify-content:space-between;gap:20px;padding:15px 16px;border-bottom:1px solid #edf1ef}.baileys-status-list div:last-child{border-bottom:0}.baileys-status-list span{color:#718078}.baileys-status-list strong{text-align:right}.baileys-note{margin-top:16px;padding:15px 16px;border-radius:12px;background:#f4faf6}.baileys-note p{margin:5px 0 0;color:#66736c}.baileys-connected-mark{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#15803d;font-size:42px;font-weight:800}.status-pill.success{color:#15803d;background:#dcfce7}.status-pill.info{color:#475569;background:#f1f5f9}@media(max-width:900px){.baileys-grid{grid-template-columns:1fr}}
