:root{--primary:#078ca3;--primary-dark:#07516d;--accent:#ffb64a;--ink:#173449;--muted:#6c8291;--bg:#f4f9fb;--line:#dce9ee;--white:#fff;--success:#159a73}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--ink);margin:0;font-family:Arial,Noto Sans Hebrew,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.shell{grid-template-columns:260px 1fr;min-height:100vh;display:grid}.sidebar{color:#fff;background:linear-gradient(170deg,#063c59 0%,#07778c 65%,#09a2a5 100%);height:100vh;padding:26px 18px;position:sticky;top:0}.brand{margin:4px 8px 32px;font-size:23px;font-weight:900}.brand small{color:#c6f3f1;margin-top:5px;font-size:11px;font-weight:400;display:block}.nav{gap:5px;display:grid}.nav a{color:#e8faf9;border-radius:11px;padding:12px 14px;transition:all .2s}.nav a:hover{background:#ffffff18;transform:translate(-2px)}.main{width:100%;max-width:1500px;margin:auto;padding:28px 34px}.top{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;margin-bottom:25px;padding-bottom:14px;display:flex}h1{margin:0 0 6px;font-size:30px}h2{margin-top:0;font-size:19px}.hero{background:linear-gradient(120deg,#fff,#e9fbfb);border:1px solid #cdeced;border-radius:20px;justify-content:space-between;align-items:center;margin-bottom:18px;padding:25px;display:flex}.hero h1{font-size:28px}.hero-actions{gap:9px;display:flex}.cards{grid-template-columns:repeat(4,1fr);gap:15px;display:grid}.card,.panel{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:19px;box-shadow:0 5px 18px #153d5010}.card{position:relative;overflow:hidden}.card:before{content:"";background:var(--primary);width:5px;height:100%;position:absolute;top:0;right:0}.card b{margin-top:9px;font-size:29px;display:block}.muted{color:var(--muted)}.grid{grid-template-columns:2fr 1fr;gap:17px;margin-top:17px;display:grid}.btn{background:var(--primary);color:#fff;cursor:pointer;border:0;border-radius:10px;padding:11px 17px;font-weight:700}.btn:hover{background:var(--primary-dark)}.btn.secondary{color:var(--ink);border:1px solid var(--line);background:#fff}table{border-collapse:collapse;width:100%}th,td{text-align:right;border-bottom:1px solid var(--line);padding:12px}th{color:var(--muted);font-size:13px}input,select,textarea{border:1px solid var(--line);background:#fff;border-radius:10px;width:100%;padding:11px}.form{gap:12px;max-width:540px;display:grid}.badge{color:#08755f;background:#e4f7f1;border-radius:20px;padding:5px 10px;font-size:12px;display:inline-block}.pipeline{grid-template-columns:repeat(4,1fr);gap:10px;display:grid}.stage{border:1px solid var(--line);background:#f7fbfc;border-radius:12px;padding:14px}.stage b{font-size:22px;display:block}.error{color:#b42318}.auth{max-width:430px;margin:10vh auto}.auth .panel{padding:30px}@media (max-width:900px){.shell{grid-template-columns:1fr}.sidebar{display:none}.main{padding:18px}.cards,.pipeline{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr}.hero{flex-direction:column;align-items:flex-start;gap:16px}}@media (max-width:520px){.cards,.pipeline{grid-template-columns:1fr}.hero-actions{flex-direction:column;width:100%}.hero-actions .btn{width:100%}}
.sidebar{background:linear-gradient(170deg,#032b22,#064536 65%,#092d26)}.logo-frame{background:#061f19;border:1px solid #d5a74555;border-radius:16px;height:125px;margin-bottom:6px;overflow:hidden}.logo-frame img{object-fit:cover;object-position:center 44%;width:100%;height:100%}.brand{text-align:center;margin:8px 0 22px}.brand small{color:#e6ca7b}.btn{background:#8f1728}.btn:hover{background:#5d0d18}.card:before{background:#d5a745}.hero{background:linear-gradient(120deg,#fff,#f8f0d9)}
.page-title,.panel-head,.account-row,.account-actions{justify-content:space-between;align-items:center;gap:14px;display:flex}.page-title{margin-bottom:18px}.count-pill,.connection-pill{background:#e7f1f5;border-radius:999px;padding:8px 13px;font-size:13px;font-weight:800}.connection-pill.online{color:#08755f;background:#dcf8ed}.connection-pill.waiting{color:#95600d;background:#fff3dc}.setup-steps{grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:17px;display:grid}.setup-step{border:1px solid var(--line);background:#fff;border-radius:14px;align-items:center;gap:10px;padding:14px;display:flex}.setup-step>b{width:30px;height:30px;color:var(--muted);background:#e9f1f4;border-radius:50%;place-items:center;display:grid}.setup-step span{gap:3px;display:grid}.setup-step small{color:var(--muted)}.setup-step.done>b{color:#08755f;background:#daf7ec}.setup-step.current{border-color:#79cbd3;box-shadow:0 0 0 3px #0793a412}.setup-step.current>b{background:var(--primary);color:#fff}.setup-step.locked{opacity:.62}.notice{border-radius:11px;margin:12px 0;padding:12px 15px;font-weight:700}.notice-success{color:#08755f;background:#e3f8ef}.notice-error{color:#b42318;background:#fff0ef}.account-row{border-bottom:1px solid var(--line);padding:15px 0}.account-row p{margin:6px 0}.account-actions{flex-wrap:wrap;justify-content:flex-end}.badge-live{color:#08755f;background:#e4f7f1}.badge-wait{color:#8a5700;background:#fff1d8}.btn:disabled,.disabled{opacity:.55;cursor:not-allowed}.security-note{color:var(--muted);background:#f4f8fa;border-radius:10px;margin-top:16px;padding:12px;font-size:13px}.empty-state{text-align:center;color:var(--muted);background:#f8fbfc;border:1px dashed #bdd5dd;border-radius:13px;padding:35px 16px}.empty-state b{color:var(--ink)}.search{max-width:260px}.upload-box{color:var(--primary-dark);cursor:pointer;background:#f0fbfc;border:1px dashed #79bdc8;border-radius:11px;justify-content:space-between;align-items:center;gap:10px;margin:15px 0;padding:13px;font-weight:700;display:flex}.upload-box small{color:var(--muted);font-weight:400}.table-wrap{overflow:auto}.check-row{background:#f7fafb;border-radius:10px;align-items:flex-start;gap:10px;padding:12px;display:flex}.check-row input{width:auto;margin-top:3px}.check-row span{gap:3px;display:grid}.check-row small{color:var(--muted)}label{gap:6px;font-size:13px;font-weight:700;display:grid}@media (max-width:900px){.setup-steps{grid-template-columns:1fr 1fr}}@media (max-width:520px){.setup-steps{grid-template-columns:1fr}.page-title,.panel-head,.account-row{flex-direction:column;align-items:stretch}.search{max-width:none}.upload-box{flex-direction:column;align-items:flex-start}}
.template-card{border-bottom:1px solid var(--line);padding:16px 0}.template-head,.template-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.template-body{white-space:pre-wrap;background:#f7fafb;border-radius:10px;padding:13px}.template-actions{justify-content:flex-start}.template-actions select{width:auto;min-width:190px}.btn.danger{color:#b42318;background:#fff;border:1px solid #f0b5af}.btn.danger:hover{background:#fff0ef}@media (max-width:520px){.template-actions>*{width:100%!important}}
.message-preview{background:#eaf8f4;border:1px solid #bfe7da;border-radius:12px;padding:12px}.message-preview p{white-space:pre-wrap;margin-bottom:0}.recipient-box{border:1px solid var(--line);border-radius:12px;max-height:230px;padding:12px;overflow:auto}.recipient-row{border-bottom:1px solid var(--line);align-items:center;gap:9px;padding:8px;display:flex}.recipient-row input{width:auto}.text-button{color:var(--primary);cursor:pointer;background:0 0;border:0;margin-bottom:5px;font-weight:700}
.form-two{grid-template-columns:1fr 1fr;gap:10px;display:grid}.block{color:var(--muted);margin-top:4px;display:block}.actions{gap:5px;display:flex}.small{padding:7px 10px}.danger{background:#b4233b}.compact{width:auto;min-width:130px}.inbox-grid{grid-template-columns:340px 1fr;gap:16px;display:grid}.conversation-list{padding:8px}.conversation-row{text-align:right;border:0;border-bottom:1px solid var(--line);cursor:pointer;background:#fff;justify-content:space-between;width:100%;padding:14px;display:flex}.conversation-row.active{background:#eaf8fa}.conversation-row small{color:var(--muted);margin-top:5px;display:block}.unread{background:var(--primary);color:#fff;border-radius:50%;padding:4px 8px}.chat-panel{min-height:520px}.chat-tools{gap:8px;display:flex}.messages{flex-direction:column;gap:8px;min-height:280px;padding:18px 0;display:flex}.bubble{background:#eef4f6;border-radius:14px;max-width:75%;padding:10px 14px}.bubble.out{background:#dcf8ed;align-self:flex-start}.bubble.in{align-self:flex-end}@media (max-width:900px){.inbox-grid{grid-template-columns:1fr}}@media (max-width:520px){.form-two{grid-template-columns:1fr}}.automation-row,.report-bar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:14px;display:flex}.automation-row small{color:var(--muted);margin-top:5px;display:block}.top-space{margin-top:17px}.task-row{border-bottom:1px solid var(--line);grid-template-columns:38px 1fr;align-items:start;gap:10px;padding:14px;display:grid}.task-row.urgent{border-right:4px solid #d43d51}.task-row small,.timeline-item small{color:var(--muted);margin-top:5px;display:block}.task-check{border:2px solid var(--primary);color:#fff;background:#fff;border-radius:50%;width:30px;height:30px}.task-check.done{background:var(--primary)}.overdue{color:#b4233b!important}.timeline-item{border-right:3px solid var(--primary);background:#f8fbfc;margin:9px 0;padding:13px}.block-btn{text-align:center;margin-top:15px;display:block}.kanban{grid-template-columns:repeat(5,minmax(210px,1fr));gap:12px;display:grid;overflow-x:auto}.kanban-stage{background:#eef5f7;border-radius:15px;min-height:420px;padding:10px}.kanban-head{justify-content:space-between;padding:10px;display:flex}.kanban-head span{background:#fff;border-radius:20px;padding:3px 9px}.lead-card{border:1px solid var(--line);background:#fff;border-radius:12px;margin-bottom:9px;padding:12px;box-shadow:0 3px 10px #1734490b}.lead-card small{color:var(--muted);margin:7px 0;display:block}.lead-actions{justify-content:space-between;display:flex}.lead-actions button{border:1px solid var(--line);cursor:pointer;background:#f5fafb;border-radius:8px;padding:5px 11px}@media (max-width:900px){.kanban{grid-template-columns:repeat(5,250px)}}.health-grid{grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px;display:grid}.health-card{border:1px solid var(--line);background:#fff;border-radius:15px;align-items:center;gap:13px;padding:18px;display:flex}.health-card>span{border-radius:50%;place-items:center;width:36px;height:36px;font-weight:700;display:grid}.health-card.ok>span{color:#08755f;background:#daf5ea}.health-card.wait>span{color:#a25a00;background:#fff0d4}.health-card small{color:var(--muted);margin-top:5px;display:block}.narrow{max-width:600px}.nav{max-height:calc(100vh - 150px);overflow-y:auto}@media (max-width:900px){.sidebar{padding:12px;height:auto!important;display:block!important;position:static!important}.logo-frame,.brand{display:none}.nav{gap:6px;max-height:none;overflow-x:auto;display:flex!important}.nav a{white-space:nowrap;background:#ffffff10}.health-grid{grid-template-columns:1fr 1fr}.top{margin-top:8px}}@media (max-width:520px){.health-grid{grid-template-columns:1fr}.page-title{flex-direction:column;gap:12px;align-items:flex-start!important}.compact{width:100%}}
.legal-page{background:linear-gradient(160deg,#eefbfc 0%,#f7fbfc 45%,#fff8ed 100%);min-height:100vh;padding:48px 20px}.legal-container{width:min(880px,100%);margin:0 auto}.legal-header{justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px;display:flex}.legal-brand{color:var(--primary-dark);align-items:center;gap:14px;font-size:20px;font-weight:900;display:flex}.legal-brand img{object-fit:contain;border:1px solid var(--line);background:#fff;border-radius:14px;width:68px;height:68px;padding:6px}.legal-header a,.legal-footer a,.legal-card a{color:#067e91;text-underline-offset:3px;text-decoration:underline}.legal-links{flex-wrap:wrap;align-items:center;gap:18px;display:flex}.legal-card{border:1px solid var(--line);background:#fff;border-radius:22px;padding:clamp(24px,5vw,52px);line-height:1.8;box-shadow:0 18px 50px #07516d14}.legal-card h1{color:var(--primary-dark);margin:0 0 8px;font-size:clamp(28px,5vw,42px)}.legal-card h2{color:var(--primary-dark);margin:32px 0 8px;font-size:21px}.legal-card p,.legal-card li{font-size:16px}.legal-card ul,.legal-card ol{padding-right:24px}.legal-card li+li{margin-top:7px}.legal-updated{color:var(--muted);margin:0 0 30px}.legal-note{border-right:4px solid var(--primary);background:#edfafa;border-radius:12px;margin:22px 0;padding:16px 18px}.legal-footer{text-align:center;color:var(--muted);padding:24px 10px 0;font-size:14px}@media (max-width:600px){.legal-page{padding:22px 12px}.legal-header{flex-direction:column;align-items:flex-start}.legal-brand img{width:56px;height:56px}.legal-card{border-radius:16px}.legal-card h2{margin-top:26px}}
