:root{color-scheme:light;--bg:#f3f7f5;--panel:#fff;--panel-soft:#f8fbfa;--line:#dce9e3;--text:#14231d;--muted:#6e8179;--green:#25d366;--green-dark:#075e54;--green-mid:#128c7e;--green-pale:#e9fbf1;--red:#c94f4f;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:linear-gradient(145deg,#f7faf8 0,#edf4f1 100%);color:var(--text)}button,input,textarea,select{font:inherit}button{border:0;border-radius:12px;padding:.78rem 1.05rem;background:var(--green);color:#063c2b;font-weight:800;cursor:pointer;box-shadow:0 5px 14px #25d36624;transition:.18s ease}button:hover{transform:translateY(-1px);filter:saturate(1.08)}.hidden{display:none!important}.card{background:#fff;border:1px solid #e0ebe6;border-radius:20px;box-shadow:0 16px 48px #164f3818}.login-shell{min-height:100vh;display:grid;place-items:center;padding:1.2rem;background:radial-gradient(circle at 12% 10%,#d9f8e7 0,transparent 32%),radial-gradient(circle at 88% 88%,#d8f1eb 0,transparent 30%)}.login-card{width:min(440px,100%);padding:2.2rem}.brand-mark{width:56px;height:56px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(145deg,#31df73,#1fc661);color:#064730;font-weight:950;box-shadow:0 10px 24px #25d3663b}.brand-mark.small{width:41px;height:41px;border-radius:13px;box-shadow:none}.eyebrow{color:var(--green-mid);font-size:.71rem;font-weight:900;letter-spacing:.14em;margin:1.5rem 0 .42rem}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.95rem,4vw,2.75rem);letter-spacing:-.038em;margin-bottom:.45rem}h2{font-size:1.15rem;letter-spacing:-.015em}.muted{color:var(--muted)}label{display:grid;gap:.46rem;margin:1rem 0;color:#3d5149;font-size:.85rem;font-weight:700}input,textarea,select{width:100%;border:1px solid #ceddd6;border-radius:11px;background:#fbfdfc;color:var(--text);padding:.8rem;outline:none;resize:vertical;transition:.15s}input:focus,textarea:focus,select:focus{border-color:var(--green-mid);box-shadow:0 0 0 4px #25d3661c;background:#fff}.login-card button{width:100%;margin-top:.55rem}.error{min-height:1.2rem;color:var(--red);font-size:.84rem}.app-shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}.app-shell>aside{position:sticky;top:0;height:100vh;padding:1.4rem;background:linear-gradient(180deg,#075e54 0,#087267 100%);color:#fff;display:flex;flex-direction:column;box-shadow:8px 0 30px #075e5415}.brand{display:flex;align-items:center;gap:.75rem}.brand div{display:grid;min-width:0}.brand strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}.brand small{color:#bce1d9}nav{display:grid;gap:.3rem;margin-top:2.4rem}nav button{text-align:left;background:transparent;color:#d4ebe6;padding:.68rem .85rem;box-shadow:none}nav button.active{background:#ffffff18;color:#fff;box-shadow:inset 3px 0 0 var(--green)}.ghost{background:transparent;color:var(--muted);border:1px solid var(--line);box-shadow:none}.ghost:hover{background:#f4f8f6}.app-shell>aside>.ghost{margin-top:auto;color:#e4f2ef;border-color:#ffffff35}.app-shell>aside>.ghost:hover{background:#ffffff12}.workspace{padding:2.2rem clamp(1rem,4vw,3.2rem);width:100%;max-width:1480px;margin:auto}.page>header{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.page>header .eyebrow{margin:0 0 .4rem}.page>header p{margin-bottom:0}.notice{position:fixed;top:1rem;right:1rem;z-index:30;max-width:420px;background:var(--green-pale);color:#08734c;border:1px solid #bdebd0;border-radius:13px;padding:.9rem 1rem;box-shadow:0 12px 35px #164f3825}.completion-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.85rem;margin-bottom:1rem}.completion-card{border:1px solid #e0ebe6;background:#fff;border-radius:16px;padding:1.05rem;display:grid;gap:.45rem;box-shadow:0 8px 28px #174f3810}.completion-card span{color:var(--muted);font-size:.77rem}.completion-card strong{font-size:.98rem}.completion-dot{width:9px;height:9px;border-radius:50%;background:#c7d3ce}.completion-dot.done{background:var(--green);box-shadow:0 0 12px #25d36677}.hero-card{padding:clamp(1.4rem,3vw,2.1rem);display:flex;align-items:center;justify-content:space-between;gap:2rem;border-left:4px solid var(--green)}.hero-card .eyebrow{margin:0 0 .5rem}.hero-card p{max-width:760px}.form-card{padding:1.35rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}.form-grid.compact{grid-template-columns:repeat(3,1fr)}.wide{grid-column:1/-1}.save-bar{border-top:1px solid #e2ece7;margin-top:1rem;padding-top:1rem;display:flex;align-items:center;justify-content:space-between}.section-gap{margin-bottom:1rem}.title-row{display:flex;justify-content:space-between;align-items:center;gap:1rem}.title-row h2,.title-row p{margin-bottom:.25rem}.secondary{background:var(--green-pale);color:#08734c;border:1px solid #bdebd0;box-shadow:none}.repeat-list{display:grid;gap:.85rem}.repeat-row,.faq-row,.campaign-row{background:var(--panel-soft);border:1px solid #dfeae5;border-radius:15px;padding:1rem}.repeat-row{display:grid;grid-template-columns:1fr 2fr auto auto;gap:.7rem;align-items:end}.repeat-row label{margin:0}.remove{background:#fff3f3;color:var(--red);border:1px solid #efcccc;padding:.7rem;box-shadow:none}.product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:1rem}.product-card{padding:1.2rem}.product-head{display:flex;justify-content:space-between;gap:.7rem}.product-price{font-size:1.45rem;font-weight:850;color:#08734c}.product-card p{color:var(--muted);font-size:.86rem;min-height:2.5rem}.badge{display:inline-flex;border-radius:999px;padding:.32rem .62rem;background:#eef2f0;color:#596a63;font-size:.72rem;font-weight:750}.badge.active{background:var(--green-pale);color:#08734c}.empty{padding:3rem;text-align:center;display:grid;gap:.4rem;color:var(--muted)}.weekly-hours{display:grid;gap:.48rem;margin:1rem 0}.day-row{display:grid;grid-template-columns:130px 1fr 1fr;gap:.7rem;align-items:center;padding:.58rem .72rem;border:1px solid #dfe9e4;border-radius:11px;background:var(--panel-soft)}.day-row label{display:flex;align-items:center;gap:.45rem;margin:0}.day-row input[type=checkbox]{width:auto}.day-row input[type=time]{padding:.55rem}.switch{display:flex;align-items:center;gap:.55rem}.switch input{width:auto}.floating-save{position:sticky;bottom:1rem;display:flex;justify-content:flex-end;margin-top:1rem}.faq-row .form-grid,.campaign-row .form-grid{align-items:end}.faq-row label,.campaign-row label{margin:.4rem 0}dialog{width:min(700px,calc(100% - 2rem));max-height:92vh;overflow:auto;border:1px solid #dbe7e1;border-radius:21px;background:#fff;color:var(--text);padding:0;box-shadow:0 35px 100px #143e2e38}dialog::backdrop{background:#123d3066;backdrop-filter:blur(5px)}dialog form{padding:1.55rem}.dialog-head{display:flex;justify-content:space-between}.dialog-head .eyebrow{margin:0 0 .4rem}.icon-button{background:transparent;color:var(--muted);font-size:1.8rem;padding:.2rem;box-shadow:none}.actions{display:flex;justify-content:flex-end;gap:.7rem}.actions .ghost{margin:0}.crm-toolbar{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1rem}.crm-metrics{display:flex;gap:.65rem;flex-wrap:wrap}.crm-metric{background:#fff;border:1px solid #e0ebe6;border-radius:14px;padding:.78rem 1rem;display:grid;min-width:108px;box-shadow:0 6px 20px #164f380d}.crm-metric span{font-size:.71rem;color:var(--muted)}.crm-metric strong{font-size:1.35rem}.crm-search{margin:0;min-width:240px}.funnel-wrap{overflow-x:auto;padding-bottom:.8rem}.crm-board{display:grid;grid-template-columns:repeat(10,minmax(260px,1fr));gap:.85rem;min-width:max-content}.funnel-column{width:272px;background:#edf4f1;border:1px solid #dae7e1;border-radius:16px;overflow:hidden;align-self:start}.funnel-head{padding:.9rem 1rem;border-bottom:1px solid #d8e5df;display:flex;justify-content:space-between;align-items:center;background:#f8fbfa}.funnel-head h2{font-size:.9rem;margin:0}.funnel-head span{font-size:.71rem;background:#e3ece8;padding:.25rem .5rem;border-radius:999px}.lead-stack{display:grid;gap:.65rem;padding:.68rem;min-height:82px}.lead-card{display:grid;gap:.52rem;width:100%;text-align:left;background:#fff;border:1px solid #dce8e2;color:var(--text);padding:.88rem;box-shadow:0 5px 15px #164f380b}.lead-card:hover{background:#fbfefc}.lead-card-top{display:flex;justify-content:space-between;gap:.5rem}.lead-card strong{font-size:.9rem}.lead-card small{color:var(--muted)}.temperature{width:9px;height:9px;border-radius:50%;margin-top:.3rem;flex:none}.temperature.cold{background:#75a7ca}.temperature.warm{background:#e2b650}.temperature.hot{background:#ef7c45}.temperature.very_hot{background:#ef4056;box-shadow:0 0 9px #ef405677}.lead-meta{display:flex;justify-content:space-between;gap:.5rem;color:var(--muted);font-size:.71rem}.owner-chip{font-size:.67rem;color:#08734c}.route-warning{color:#9c681b}.crm-empty{color:var(--muted);font-size:.78rem;padding:.8rem}.stage-won .funnel-head{border-top:3px solid var(--green)}.stage-lost .funnel-head{border-top:3px solid #d36c6c}.stage-human_service .funnel-head{border-top:3px solid #e0b45f}.dossier-dialog{width:min(1120px,calc(100% - 1rem));max-height:96vh}.dossier-shell{padding:1.5rem}.dossier-head{position:sticky;top:-1.5rem;z-index:2;background:#fff;padding:1rem 0;border-bottom:1px solid #edf2ef}.dossier-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:1rem}.dossier-main,.dossier-side section,.dossier-section{background:#fbfdfc;border:1px solid #dfeae5;border-radius:15px;padding:1rem}.dossier-side{display:grid;gap:1rem;align-self:start}.dossier-section{margin-top:1rem}.dossier-alert{padding:.78rem 1rem;background:#fff7e7;color:#8a5c16;border:1px solid #f0d99f;border-radius:11px;margin-bottom:1rem}.key-values{display:grid;gap:.5rem}.key-value{display:grid;gap:.15rem;padding-bottom:.5rem;border-bottom:1px solid #e3ece8}.key-value span,.timeline-item small{font-size:.71rem;color:var(--muted)}.mini-timeline{display:grid;gap:.65rem}.timeline-item{border-left:2px solid #65c999;padding-left:.75rem;display:grid;gap:.2rem;font-size:.83rem}.message-list{display:grid;gap:.58rem;max-height:430px;overflow:auto;padding:.5rem;background:#efeae2;border-radius:12px}.message{max-width:78%;padding:.72rem .88rem;border-radius:13px 13px 13px 4px;background:#fff;justify-self:start;box-shadow:0 2px 6px #3d4e4714}.message.outbound{background:#d9fdd3;justify-self:end;border-radius:13px 13px 4px 13px}.message small{display:block;color:#6e8179;margin-top:.3rem;font-size:.67rem}.note-form{display:grid;grid-template-columns:1fr auto;gap:.7rem;align-items:end}.note-form textarea{grid-column:1/-1}.note-form label{margin:0}.dossier-section h3,.dossier-side h3{margin-bottom:.65rem}.lab-shell{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,.7fr);gap:1rem}.lab-phone{background:#efeae2;border:1px solid #ddd7ce;border-radius:18px;overflow:hidden;box-shadow:0 18px 45px #164f3815}.lab-phone-head{padding:1rem;background:var(--green-dark);color:#fff;display:flex;align-items:center;gap:.75rem}.lab-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#064730;font-weight:900}.lab-chat{min-height:430px;max-height:560px;overflow:auto;padding:1rem;display:grid;align-content:start;gap:.65rem}.lab-bubble{max-width:82%;padding:.78rem .9rem;border-radius:13px 13px 13px 4px;background:#fff;box-shadow:0 2px 6px #3d4e4714}.lab-bubble.user{justify-self:end;background:#d9fdd3;border-radius:13px 13px 4px 13px}.lab-bubble small{display:block;color:var(--muted);font-size:.65rem;margin-top:.25rem}.lab-compose{display:grid;grid-template-columns:1fr auto;gap:.6rem;padding:.75rem;background:#f8f8f8;border-top:1px solid #dedbd6}.lab-compose textarea{resize:none;background:#fff}.lab-info{padding:1.15rem;align-self:start}.lab-info ul{padding-left:1.1rem;color:var(--muted);font-size:.86rem;line-height:1.6}.decision-card{display:grid;gap:.6rem;padding:.75rem;background:var(--green-pale);border-radius:12px;font-size:.8rem}.decision-card div{display:flex;justify-content:space-between;gap:.5rem}
@media(max-width:900px){.completion-grid{grid-template-columns:repeat(2,1fr)}.form-grid.compact{grid-template-columns:1fr 1fr}.dossier-layout,.lab-shell{grid-template-columns:1fr}.dossier-side{grid-template-columns:1fr 1fr}.crm-toolbar{align-items:stretch;flex-direction:column}.crm-search{min-width:0}}
@media(max-width:720px){.app-shell{display:block}.app-shell>aside{position:sticky;z-index:10;height:auto;padding:.75rem 1rem;border-right:0}.app-shell>aside .brand small{display:none}.app-shell>aside>.ghost{position:absolute;right:1rem;top:.75rem;padding:.5rem .7rem}nav{display:flex;overflow:auto;margin-top:.75rem;padding-bottom:.15rem}nav button{white-space:nowrap}.workspace{padding:1.25rem 1rem}.page>header{align-items:flex-end}.page>header button{font-size:.8rem}.form-grid,.form-grid.compact{grid-template-columns:1fr}.wide{grid-column:auto}.completion-grid{grid-template-columns:1fr 1fr}.hero-card{display:grid}.repeat-row{grid-template-columns:1fr}.day-row{grid-template-columns:1fr 1fr}.day-row>label{grid-column:1/-1}.product-grid{grid-template-columns:1fr}.dossier-shell{padding:1rem}.dossier-head{top:-1rem}.dossier-side{grid-template-columns:1fr}.note-form{grid-template-columns:1fr}.message{max-width:90%}.crm-board{grid-template-columns:repeat(10,minmax(240px,1fr))}.funnel-column{width:250px}.lab-chat{min-height:360px}}
.channel-status{display:inline-flex;align-items:center;gap:.45rem;padding:.48rem .75rem;border-radius:999px;background:#eef2f0;color:#65766f;font-size:.76rem;font-weight:850}.channel-status:before{content:"";width:8px;height:8px;border-radius:50%;background:#9aaba4}.channel-status.active{background:var(--green-pale);color:#08734c}.channel-status.active:before{background:var(--green);box-shadow:0 0 10px #25d36699}.channel-status.warning{background:#fff7e7;color:#8a5c16}.channel-status.warning:before{background:#e5b54d}.channel-status.danger{background:#fff0f0;color:#a94646}.channel-status.danger:before{background:#d76060}.channel-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}.channel-card{padding:1.3rem;min-height:230px;display:flex;flex-direction:column}.channel-primary{background:linear-gradient(145deg,#fff 35%,#effbf4)}.channel-card-head{display:flex;align-items:center;gap:.85rem}.channel-card small,.allowance-heading small{font-size:.67rem;letter-spacing:.11em;font-weight:900;color:var(--green-mid)}.channel-card h2,.allowance-heading h2{margin:.25rem 0 0}.channel-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:var(--green);color:#064730;font-weight:950;box-shadow:0 8px 22px #25d36645}.channel-card>p{margin:1rem 0}.channel-meta{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:auto;padding-top:.85rem;border-top:1px solid #e3ece8;font-size:.76rem}.channel-meta span{color:var(--muted)}.channel-meta strong{text-align:right}.allowance-heading{display:flex;align-items:start;justify-content:space-between;gap:1rem}.allowance-heading>strong{color:#08734c;font-size:.82rem;background:var(--green-pale);padding:.4rem .6rem;border-radius:999px}.allowance-track{height:12px;overflow:hidden;border-radius:999px;background:#e6efeb;margin:1.15rem 0 .25rem}.allowance-track i{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,var(--green),#10ad70);transition:width .35s ease}.allowance-track i.unlimited{background:repeating-linear-gradient(120deg,#25d366 0,#25d366 12px,#18bd6a 12px,#18bd6a 24px)}.channel-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:1rem}.channel-alert-form h2,.channel-rules h2{margin-bottom:.45rem}.channel-alert-form>.eyebrow,.channel-rules>.eyebrow{margin:0 0 .4rem}.channel-rules{padding:1.3rem}.rule-list{display:grid;gap:.78rem;margin-top:1rem}.rule-list>div{display:flex;gap:.7rem;align-items:flex-start;padding:.72rem;background:var(--panel-soft);border:1px solid #e1ebe6;border-radius:12px}.rule-list i{width:25px;height:25px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--green-pale);color:#08734c;font-style:normal;font-weight:950}.rule-list span{display:grid;gap:.18rem}.rule-list strong{font-size:.84rem}.rule-list small{color:var(--muted);font-size:.73rem;line-height:1.4}.channel-footnote{text-align:center;color:var(--muted);font-size:.72rem;margin:1rem 0 0}
@media(max-width:900px){.channel-summary-grid,.channel-layout{grid-template-columns:1fr}.channel-card{min-height:210px}}
@media(max-width:720px){.channel-summary-grid{gap:.8rem}.channel-card,.channel-rules{padding:1.05rem}.channel-meta{align-items:flex-start;flex-direction:column;gap:.3rem}.channel-meta strong{text-align:left}.channel-alert-form .save-bar{align-items:stretch;flex-direction:column;gap:.8rem}.channel-alert-form .save-bar button{width:100%}}
.automation-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:.85rem;margin-bottom:1rem}.automation-metric{padding:1rem;display:grid;gap:.3rem}.automation-metric span{color:var(--muted);font-size:.74rem}.automation-metric strong{font-size:1.45rem;color:var(--green-dark)}
@media(max-width:900px){.automation-metrics{grid-template-columns:1fr 1fr}}
.audio-preference{margin-top:1rem;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);gap:1rem 1.4rem;align-items:center}.audio-preference>div>.eyebrow{margin:0 0 .4rem}.audio-preference .save-bar{grid-column:1/-1;margin-top:0}.audio-choice{display:flex;align-items:flex-start;gap:.8rem;margin:0;padding:1rem;background:var(--green-pale);border:1px solid #bdebd0;border-radius:14px}.audio-choice input{width:20px;height:20px;margin-top:.1rem}.audio-choice span{display:grid;gap:.25rem}.audio-choice small{color:var(--muted);font-weight:500;line-height:1.45}
@media(max-width:900px){.audio-preference{grid-template-columns:1fr}.audio-preference .save-bar{grid-column:auto}}
@media(max-width:720px){.audio-preference .save-bar{align-items:stretch;flex-direction:column;gap:.8rem}.audio-preference .save-bar button{width:100%}}
.media-preference{margin-top:1rem;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,1fr);gap:1rem 1.4rem;align-items:center}.media-preference>div>.eyebrow{margin:0 0 .4rem}.media-preference .save-bar{grid-column:1/-1;margin-top:0}.media-choices{display:grid;gap:.7rem}.media-choice{display:flex;align-items:flex-start;gap:.8rem;margin:0;padding:.9rem 1rem;background:var(--green-pale);border:1px solid #bdebd0;border-radius:14px}.media-choice input{width:20px;height:20px;margin-top:.1rem}.media-choice span{display:grid;gap:.25rem}.media-choice small{color:var(--muted);font-weight:500;line-height:1.45}
@media(max-width:900px){.media-preference{grid-template-columns:1fr}.media-preference .save-bar{grid-column:auto}}
@media(max-width:720px){.media-preference .save-bar{align-items:stretch;flex-direction:column;gap:.8rem}.media-preference .save-bar button{width:100%}}
.material-safety{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1rem;padding:1.1rem 1.25rem;margin-bottom:1rem;background:linear-gradient(135deg,#fff 45%,#effbf4)}.material-safety p{margin:.25rem 0 0;font-size:.83rem}.material-safety>small{max-width:240px;color:#08734c;font-weight:750;line-height:1.45}.material-shield{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--green);color:#064730;font-weight:950;box-shadow:0 8px 20px #25d36635}.material-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:1rem}.material-card{padding:1.15rem;display:grid;gap:.85rem}.material-card-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.75rem;align-items:start}.material-card-head h2{margin:0 0 .4rem}.material-kind{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;background:#e9f3ff;color:#35648b;font-size:.66rem;font-weight:950;letter-spacing:.04em}.material-kind.image{background:var(--green-pale);color:#08734c}.material-card>p{min-height:2.5rem;margin:0;color:var(--muted);font-size:.84rem;line-height:1.5}.material-meta,.material-tags{display:flex;align-items:center;justify-content:space-between;gap:.6rem;font-size:.72rem}.material-meta{padding-top:.75rem;border-top:1px solid #e3ece8;color:var(--muted)}.material-meta span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-tags{justify-content:flex-start;flex-wrap:wrap}.material-tags span{padding:.32rem .55rem;border-radius:999px;background:#f0f5f2;color:#52675e;font-weight:750}.material-file-field{border:1px dashed #9bdab7;border-radius:14px;padding:1rem;background:#f5fcf8}.material-file-field input{background:#fff}.material-file-field small{color:var(--muted);font-weight:500}.material-current-file{display:flex;align-items:center;gap:.75rem;padding:.85rem;background:var(--green-pale);border:1px solid #bdebd0;border-radius:14px}.material-current-file div{display:grid;gap:.18rem}.material-current-file small{color:var(--muted)}
@media(max-width:720px){.material-safety{grid-template-columns:auto 1fr}.material-safety>small{grid-column:1/-1;max-width:none}.material-grid{grid-template-columns:1fr}.material-card-head{grid-template-columns:auto 1fr}.material-card-head button{grid-column:1/-1}.material-meta{align-items:flex-start;flex-direction:column}}

.read-only-form{background:#f8fbfa}.read-only-form input,.read-only-form textarea,.read-only-form select{color:#6e8179;background:#eef4f1}.team-safety{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(180px,260px);align-items:center;gap:1rem;padding:1.15rem 1.3rem;margin-bottom:1rem;background:linear-gradient(135deg,#fff 42%,#edfaf3)}.team-safety p{margin:.25rem 0 0;font-size:.83rem;line-height:1.45}.team-safety>small{color:#08734c;font-weight:750;line-height:1.45}.team-lock{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:var(--green);color:#064730;font-weight:950;box-shadow:0 8px 20px #25d36635}.team-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;margin-bottom:1rem}.team-metric{padding:1rem 1.1rem;display:grid;gap:.25rem}.team-metric span{color:var(--muted);font-size:.75rem}.team-metric strong{font-size:1.5rem;color:var(--green-dark)}.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:1rem}.team-card{padding:1.15rem;display:grid;gap:1rem;position:relative;overflow:hidden}.team-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--green)}.team-card.inactive{background:#f8faf9;box-shadow:none}.team-card.inactive::before{background:#aab9b2}.team-card-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.75rem}.team-card-head h2{margin:0 0 .35rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-avatar{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#25d366,#16b963);color:#064730;font-weight:950;letter-spacing:.02em;box-shadow:0 8px 20px #25d3662c}.team-card.inactive .team-avatar{background:#e4ece8;color:#607169;box-shadow:none}.team-role{display:grid;gap:.18rem;padding:.82rem .9rem;border-radius:13px;background:var(--panel-soft);border:1px solid #e1ebe6}.team-role strong{color:#08734c;font-size:.78rem}.team-role span{color:var(--muted);font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-permission-count{display:flex;align-items:flex-end;justify-content:space-between;gap:.8rem;padding-top:.15rem}.team-permission-count span{font-size:.78rem;font-weight:800}.team-permission-count small{color:var(--muted);font-size:.68rem;text-align:right}.team-dialog{width:min(980px,calc(100% - 2rem))}.permission-section{margin:1.25rem 0}.permission-section>div:first-child{display:flex;align-items:end;justify-content:space-between;gap:1rem;padding-bottom:.8rem;border-bottom:1px solid var(--line)}.permission-section h3,.permission-section p{margin:0}.permission-section p{font-size:.78rem}.permission-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.permission-group{padding:1rem;border:1px solid #dfebe5;border-radius:16px;background:#fbfdfc}.permission-group h4{margin:0 0 .7rem;color:var(--green-dark);font-size:.78rem;letter-spacing:.04em}.permission-option{display:flex;grid-template-columns:none;align-items:flex-start;gap:.7rem;margin:0;padding:.72rem 0;border-top:1px solid #e8efeb;cursor:pointer}.permission-option:first-of-type{border-top:0}.permission-option input{width:19px;height:19px;margin:.1rem 0 0;accent-color:var(--green-mid);flex:none}.permission-option span{display:grid;gap:.2rem}.permission-option strong{font-size:.79rem;color:#31463d}.permission-option small{color:var(--muted);font-size:.7rem;font-weight:500;line-height:1.4}.permission-option.locked{cursor:not-allowed;opacity:.58}.permission-option.locked strong::after{content:" · protegido";color:#8a9a93;font-size:.65rem;font-weight:700}
@media(max-width:900px){.team-safety{grid-template-columns:auto 1fr}.team-safety>small{grid-column:1/-1;max-width:none}.permission-groups{grid-template-columns:1fr}}
@media(max-width:720px){.team-summary{grid-template-columns:1fr}.team-grid{grid-template-columns:1fr}.team-card-head{grid-template-columns:auto 1fr}.team-card-head button{grid-column:1/-1}.team-permission-count{align-items:flex-start;flex-direction:column}.team-permission-count small{text-align:left}.team-dialog{width:calc(100% - 1rem)}.permission-section>div:first-child{align-items:flex-start;flex-direction:column}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
button:disabled{cursor:not-allowed;opacity:.55;transform:none;filter:none}
.app-shell>aside nav{min-height:0;overflow-y:auto;scrollbar-width:thin}
.alerts-trigger{position:relative;display:flex;align-items:center;gap:.65rem;margin-top:1.2rem;padding:.7rem .82rem;background:#ffffff12;color:#e6f5f1;border:1px solid #ffffff20;box-shadow:none;text-align:left}.alerts-trigger:hover{background:#ffffff1d}.alerts-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.alerts-trigger b{margin-left:auto;min-width:22px;height:22px;padding:0 .38rem;display:grid;place-items:center;border-radius:999px;background:var(--green);color:#064730;font-size:.65rem;box-shadow:0 5px 13px #043b2d55}.alerts-backdrop{position:fixed;inset:0;z-index:50;background:#082c246b;backdrop-filter:blur(3px)}.alerts-drawer{position:fixed;z-index:60;top:0;right:0;width:min(430px,100%);height:100vh;display:flex;flex-direction:column;background:#fff;border-left:1px solid #dce9e3;box-shadow:-20px 0 70px #082d2240}.alerts-drawer>header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.35rem 1.25rem 1rem;border-bottom:1px solid #e3ece8}.alerts-drawer>header .eyebrow{margin:0 0 .32rem}.alerts-drawer>header h2{margin:0 0 .2rem;font-size:1.35rem}.alerts-drawer>header span{color:var(--muted);font-size:.76rem}.alerts-drawer>footer{padding:.9rem 1.15rem;border-top:1px solid #e3ece8;color:var(--muted);font-size:.67rem;line-height:1.45;background:#f8fbfa}.alerts-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.72rem 1rem;border-bottom:1px solid #edf2ef}.alerts-toolbar span{color:var(--muted);font-size:.68rem}.alerts-toolbar button{padding:.48rem .62rem;font-size:.66rem}.alerts-list{min-height:0;overflow-y:auto;flex:1}.alert-item{position:relative;width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:.75rem;padding:1rem 1.05rem;border-radius:0;border-bottom:1px solid #edf2ef;background:#fff;color:var(--text);box-shadow:none;text-align:left}.alert-item:hover{transform:none;background:#f8fcfa}.alert-item.unread{background:#edf9f3}.alert-item.unread::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--green-mid)}.alert-mark{width:39px;height:39px;display:grid;place-items:center;border-radius:13px;background:#eaf4ef;color:#47685a;font-size:.72rem;font-weight:950}.alert-mark.lead_assigned{background:#e9f3ff;color:#35648b}.alert-mark.human_message{background:var(--green-pale);color:#08734c}.alert-mark.human_waiting{background:#fff3dc;color:#8a5c16}.alert-copy{min-width:0;display:grid;gap:.28rem}.alert-copy strong{font-size:.8rem}.alert-copy small{color:#5f746b;font-size:.72rem;line-height:1.42;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.alert-copy time{color:#8a9a93;font-size:.62rem}.alert-item em{align-self:center;padding:.27rem .42rem;border-radius:999px;background:#e0f5e9;color:#08734c;font-size:.59rem;font-style:normal;white-space:nowrap}.alerts-empty{min-height:240px;display:grid;place-content:center;justify-items:center;gap:.35rem;padding:2rem;text-align:center;color:var(--muted);font-size:.76rem}.alerts-empty::before{content:"✓";width:52px;height:52px;display:grid;place-items:center;margin-bottom:.45rem;border-radius:17px;background:var(--green-pale);color:#08734c;font-size:1.15rem;font-weight:950}.alerts-empty strong{color:#435b51}.alerts-open{overflow:hidden}
.inbox-shell{height:min(730px,calc(100vh - 180px));min-height:580px;display:grid;grid-template-columns:350px minmax(0,1fr);gap:1rem}
.inbox-sidebar,.inbox-thread{min-width:0;overflow:hidden}
.inbox-sidebar{display:flex;flex-direction:column;border-radius:18px}
.inbox-filter-row{display:flex;gap:.35rem;padding:.8rem .8rem .55rem;border-bottom:1px solid #e5eee9;overflow-x:auto}
.inbox-filter-row button{flex:none;padding:.52rem .68rem;border-radius:999px;background:#f0f5f2;color:#5a6e65;border:1px solid transparent;box-shadow:none;font-size:.7rem}
.inbox-filter-row button.active{background:var(--green-pale);color:#08734c;border-color:#bdebd0}
.inbox-search{margin:.6rem .8rem}.inbox-search input{padding:.68rem .78rem;background:#f7faf8}
.inbox-list{min-height:0;overflow-y:auto;border-top:1px solid #edf2ef}
.inbox-list-item{position:relative;width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.72rem;padding:.86rem .85rem;border-radius:0;border-bottom:1px solid #edf2ef;background:#fff;color:var(--text);text-align:left;box-shadow:none}
.inbox-list-item:hover{transform:none;background:#f8fcfa}.inbox-list-item.active{background:#eaf9f1;box-shadow:inset 4px 0 0 var(--green-mid)}
.inbox-list-avatar,.inbox-contact-avatar{display:grid;place-items:center;flex:none;border-radius:50%;background:linear-gradient(145deg,#d9f8e7,#bfead1);color:#08734c;font-weight:900}
.inbox-list-avatar{width:44px;height:44px;font-size:.83rem}.inbox-list-copy{min-width:0;display:grid;gap:.28rem}.inbox-list-copy>span{display:flex;justify-content:space-between;gap:.55rem;min-width:0}
.inbox-list-copy strong,.inbox-list-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inbox-list-copy strong{font-size:.82rem}.inbox-list-copy time{color:#82928b;font-size:.65rem;flex:none}
.inbox-list-copy small{color:#62756d;font-size:.72rem;font-weight:500}.inbox-list-copy em{width:max-content;max-width:100%;font-style:normal;font-size:.62rem;font-weight:800;color:#688078;background:#edf3f0;padding:.22rem .42rem;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbox-list-copy em.human{color:#8a5c16;background:#fff5df}.inbox-unread{min-width:21px;height:21px;padding:0 .35rem;display:grid;place-items:center;border-radius:999px;background:var(--green);color:#064730;font-size:.63rem}
.inbox-list-empty{min-height:150px;display:grid;align-content:center;justify-items:center;gap:.35rem;padding:1.4rem;text-align:center;color:var(--muted);font-size:.78rem}.inbox-list-empty strong{color:#53675e}
.inbox-thread{border-radius:18px;min-height:0;background:#f5f1eb}.inbox-thread-empty{height:100%;display:grid;place-content:center;justify-items:center;text-align:center;padding:2rem;color:var(--muted)}.inbox-thread-empty h2{margin:.8rem 0 .25rem;color:#3b5148}.inbox-thread-empty p{margin:0}
.inbox-empty-mark{width:70px;height:70px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(145deg,#25d366,#14b95d);color:#064730;font-size:1.55rem;font-weight:950;box-shadow:0 18px 38px #25d3663b}
#inbox-thread-content{height:100%;display:flex;flex-direction:column;min-height:0}
.inbox-thread-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.8rem 1rem;background:#fff;border-bottom:1px solid #e0ebe6}
.inbox-contact-avatar{width:45px;height:45px}.inbox-contact-copy{min-width:0;display:grid;gap:.22rem}.inbox-contact-copy strong,.inbox-contact-copy span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inbox-contact-copy strong{font-size:.9rem}.inbox-contact-copy span{color:var(--muted);font-size:.69rem}
.inbox-actions{display:flex;align-items:center;gap:.45rem}.inbox-actions button{padding:.58rem .7rem;font-size:.68rem}.inbox-actions .ghost{color:#7a6b4d;border-color:#e9d9b8}
.inbox-hours-warning{padding:.65rem 1rem;background:#fff5df;color:#7e581c;border-bottom:1px solid #eed59d;font-size:.73rem;line-height:1.4}
.inbox-messages{flex:1;min-height:0;overflow-y:auto;padding:1.05rem;display:flex;flex-direction:column;gap:.58rem;background-color:#f2eee7;background-image:radial-gradient(#6fa38a12 1px,transparent 1px);background-size:18px 18px}
.inbox-bubble{width:max-content;max-width:min(78%,680px);padding:.67rem .78rem;border-radius:14px 14px 14px 4px;background:#fff;border:1px solid #e8e4dd;box-shadow:0 3px 12px #2b493c12;align-self:flex-start}
.inbox-bubble.outbound{align-self:flex-end;background:#d9fdd3;border-color:#c6eec0;border-radius:14px 14px 4px 14px}.inbox-bubble.ai{background:#eaf8f1;border-color:#d1eadc}.inbox-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.82rem;line-height:1.48}.inbox-bubble footer{display:flex;justify-content:flex-end;align-items:center;gap:.38rem;margin-top:.32rem;color:#708279;font-size:.6rem}.inbox-bubble footer span{margin-right:auto;font-weight:750}.inbox-bubble footer b{font-weight:800;color:#08734c}.inbox-bubble footer .delivery-failed,.inbox-bubble footer .delivery-uncertain{color:#b24949}
.inbox-message-error{display:block;margin-top:.42rem;color:#aa4545;font-size:.64rem;line-height:1.35}.inbox-retry{display:block;margin:.5rem 0 0 auto;padding:.38rem .55rem;background:#fff;color:#9f3e3e;border:1px solid #e8bcbc;box-shadow:none;font-size:.64rem}
.inbox-compose{padding:.72rem .85rem;background:#fff;border-top:1px solid #e0ebe6}.inbox-compose textarea{margin:0;min-height:64px;max-height:150px;resize:vertical;background:#f9fbfa}.inbox-compose>div{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:.55rem}.inbox-compose span{color:var(--muted);font-size:.66rem;line-height:1.35}.inbox-compose button{padding:.62rem .9rem}
@media(max-width:1050px){.inbox-shell{grid-template-columns:310px minmax(0,1fr)}.inbox-actions{align-items:stretch;flex-direction:column}.inbox-actions button{width:100%}}
@media(max-width:820px){.inbox-shell{height:auto;min-height:0;grid-template-columns:1fr}.inbox-sidebar{height:310px}.inbox-thread{height:620px}.inbox-thread-head{grid-template-columns:auto minmax(0,1fr)}.inbox-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.inbox-bubble{max-width:88%}}
@media(max-width:720px){.app-shell>aside nav{overflow-x:auto;overflow-y:hidden}.inbox-shell{gap:.75rem}.inbox-sidebar{height:270px}.inbox-thread{height:570px}.inbox-thread-head{padding:.72rem}.inbox-contact-avatar{width:40px;height:40px}.inbox-actions{grid-template-columns:1fr}.inbox-compose>div{align-items:stretch;flex-direction:column}.inbox-compose button{width:100%}}
@media(max-width:720px){.alerts-trigger{position:absolute;right:4.7rem;top:.75rem;width:40px;height:40px;margin:0;padding:0;justify-content:center}.alerts-trigger>span{display:none}.alerts-trigger b{position:absolute;right:-7px;top:-7px;margin:0}.alerts-drawer{width:100%}.alerts-toolbar{align-items:flex-start}.alert-item{padding:.92rem}.alert-item em{display:none}}
.reports-filter{display:flex;align-items:center;gap:.65rem;margin:0;color:var(--muted);font-size:.74rem}.reports-filter select{width:auto;min-width:180px;background:#fff}.report-context{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:-.55rem 0 1rem;padding:.72rem .9rem;border:1px solid #dce9e3;border-radius:13px;background:#f8fbfa;color:var(--muted)}.report-context span{font-size:.74rem;font-weight:850;color:#08734c}.report-context small{font-size:.68rem}.report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem;margin-bottom:1rem}.report-metric{min-height:126px;padding:1.05rem;display:flex;flex-direction:column;gap:.4rem;overflow:hidden;position:relative}.report-metric::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--green)}.report-metric.warning::before{background:#e2b650}.report-metric strong{font-size:1.75rem;line-height:1;color:var(--green-dark)}.report-metric span{font-size:.73rem;font-weight:850}.report-metric small{margin-top:auto;color:var(--muted);font-size:.65rem;line-height:1.4}.report-metric.loading{grid-column:1/-1;min-height:90px;display:grid;place-items:center;color:var(--muted)}
.report-chart-card,.report-breakdown,.report-team-card{padding:1.2rem;margin-bottom:1rem}.report-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.report-section-head .eyebrow{margin:0 0 .32rem}.report-section-head h2,.report-section-head p{margin-bottom:.2rem}.report-legend{display:flex;gap:.8rem;color:var(--muted);font-size:.68rem}.report-legend span{display:flex;align-items:center;gap:.35rem}.report-legend i{width:18px;height:4px;border-radius:999px;background:var(--green)}.report-legend i.won{background:var(--green-dark)}.report-trend{min-height:260px;display:grid;place-items:center;overflow-x:auto}.report-chart-svg{width:100%;min-width:650px;height:auto;overflow:visible}.report-grid-line{stroke:#e3ece8;stroke-width:1}.report-axis-label{fill:#81928b;font-size:10px}.report-line-leads{fill:none;stroke:var(--green);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.report-line-won{fill:none;stroke:var(--green-dark);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.report-point-leads{fill:#fff;stroke:var(--green);stroke-width:3}.report-point-won{fill:#fff;stroke:var(--green-dark);stroke-width:2}
.report-two-column{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.report-bars{display:grid;gap:.78rem}.report-bar-row{display:grid;gap:.4rem}.report-bar-row>div{display:flex;justify-content:space-between;gap:.8rem;font-size:.73rem}.report-bar-row>div span{color:#50655c}.report-bar-track{display:block;width:100%;height:9px;overflow:hidden;border:0;border-radius:999px;background:#e8f0ec;appearance:none}.report-bar-track::-webkit-progress-bar{background:#e8f0ec;border-radius:999px}.report-bar-track::-webkit-progress-value{min-width:3px;border-radius:999px;background:linear-gradient(90deg,var(--green),#11ad70)}.report-bar-track::-moz-progress-bar{min-width:3px;border-radius:999px;background:linear-gradient(90deg,var(--green),#11ad70)}.report-table-wrap{overflow-x:auto}.report-table{width:100%;border-collapse:collapse;min-width:880px;font-size:.72rem}.report-table th{text-align:left;padding:.72rem;border-bottom:1px solid #dbe7e1;color:#71847b;font-size:.63rem;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}.report-table td{padding:.78rem .72rem;border-bottom:1px solid #e8efeb;white-space:nowrap}.report-table tbody tr:hover{background:#f7fbf9}.report-person{display:grid;gap:.18rem}.report-person strong{font-size:.76rem}.report-person small{color:var(--muted);font-size:.62rem}.report-conversion{font-weight:900;color:#08734c}.report-footnote{text-align:center;color:var(--muted);font-size:.68rem;margin:0}.report-empty{min-height:170px;display:grid;place-content:center;text-align:center;color:var(--muted);font-size:.76rem}
@media(max-width:1050px){.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.report-two-column{grid-template-columns:1fr}}
@media(max-width:720px){#page-reports>header{align-items:stretch;flex-direction:column}.reports-filter{align-items:stretch;flex-direction:column}.reports-filter select{width:100%}.report-context{align-items:flex-start;flex-direction:column}.report-metrics{grid-template-columns:1fr 1fr}.report-metric{min-height:116px}.report-chart-card,.report-breakdown,.report-team-card{padding:1rem}.report-chart-svg{min-width:580px}}

/* FIX9 - controles operacionais do WhatsApp */
.whatsapp-controls{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  margin:.15rem 0 1rem;
}

.whatsapp-controls button{
  min-height:40px;
  padding:.65rem .9rem;
  font-size:.76rem;
}

.whatsapp-controls button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

@media(max-width:720px){
  .whatsapp-controls{
    display:grid;
    grid-template-columns:1fr;
  }

  .whatsapp-controls button{
    width:100%;
  }
}
