:root{font-family:"Segoe UI",sans-serif;color:#263934;background:#eef3f0;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;border:0}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #a2d4b4;outline-offset:2px}[hidden]{display:none!important}button:not(.text-button):not(.add){background:#18744d;color:white;border-radius:9px;padding:12px 20px;font-weight:600}.login{min-height:100vh;display:grid;place-items:center;padding:20px;background:#e4eee8}.login-card{width:min(410px,100%);background:white;padding:42px;border-radius:16px;box-shadow:0 15px 55px #193f2d14}.brand-mark{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#18744d;color:#fff;font-weight:800;font-size:22px}.login h1{font-size:30px;line-height:1.2;margin:26px 0 10px}.login p,.list-title p,.dialog-head p{color:#788b82;font-size:14px}label{display:block;font-size:13px;font-weight:600;margin:20px 0 0}input,textarea{border:1px solid #d8e2dc;background:#fff;border-radius:8px;padding:12px;width:100%;color:#263934}label input{margin-top:8px}.login button{width:100%;margin-top:24px}.app{display:flex;height:100dvh}.sidebar{width:360px;min-width:300px;background:#fff;border-right:1px solid #e0e9e3;display:flex;flex-direction:column}.sidebar-top{display:flex;justify-content:space-between;align-items:center;padding:25px 24px;border-bottom:1px solid #edf1ee}.brand{display:flex;gap:11px;align-items:center}.brand strong,.brand small{display:block}.brand small{color:#809088;margin-top:3px;font-size:12px}.text-button{background:none;color:#72867b;padding:5px}.list-title{display:flex;align-items:center;justify-content:space-between;padding:25px 24px 12px}.list-title h1{font-size:23px;margin:0}.list-title p{margin:6px 0}.add{background:#e7f3eb;color:#18744d;font-size:25px;width:38px;height:38px;border-radius:9px}.search{width:calc(100% - 48px);margin:0 24px 16px;background:#f6f9f7}.contacts{overflow:auto}.contact{display:flex;gap:12px;width:100%;text-align:left;background:white;padding:16px 24px;border-left:3px solid transparent}.contact:hover,.contact.active{background:#f0f7f2}.contact.active{border-left-color:#18744d}.avatar{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:50%;background:#dceee2;color:#246745;font-weight:700}.contact-info{min-width:0;flex:1}.contact strong,.contact small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact small{margin-top:5px;color:#84968a}.contact time{font-size:11px;color:#8c9a91}.main{flex:1;min-width:0;background:#f3f7f4}.empty{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px}.empty-icon{font-size:32px;color:#18744d;background:#deeee3;width:70px;height:70px;display:grid;place-items:center;border-radius:24px}.empty h2{margin:22px 0 6px;font-size:22px}.empty p{color:#819187;max-width:300px;line-height:1.5}.empty .secondary{background:#fff!important;color:#18744d!important;border:1px solid #cfe1d4!important;margin-top:10px}.conversation{height:100%;display:flex;flex-direction:column}.chat-header{background:#fff;border-bottom:1px solid #e0e9e3;padding:17px 28px;display:flex;gap:12px;align-items:center}.chat-header h2{font-size:16px;margin:0}.chat-header p{font-size:12px;color:#819187;margin:5px 0 0}.window{margin-left:auto;color:#678575;font-size:12px}.messages{flex:1;overflow:auto;padding:30px;display:flex;flex-direction:column;gap:12px}.bubble{max-width:min(70%,520px);background:white;padding:12px 15px;border-radius:4px 14px 14px 14px;box-shadow:0 2px 8px #274d3109;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;font-size:14px}.bubble.out{align-self:flex-end;background:#dcefe2;border-radius:14px 4px 14px 14px}.bubble a{color:#126341}.bubble time{display:block;text-align:right;font-size:10px;color:#82958a;margin-top:6px}.composer{padding:16px 26px;background:white;border-top:1px solid #e0e9e3}.compose-row{display:flex;gap:12px;align-items:center}.compose-row textarea{resize:none;min-height:46px}.attach{margin:0;font-size:25px;color:#6b8174;cursor:pointer}.file-name{font-size:12px;color:#5d7668;margin-bottom:8px}.error{color:#ac3737!important;font-size:13px;min-height:0}.error:empty{display:none}.back{display:none;font-size:28px}dialog{border:0;border-radius:15px;width:min(460px,calc(100% - 32px));padding:28px;box-shadow:0 15px 80px #0003}dialog::backdrop{background:#16271e80}.dialog-head{display:flex;justify-content:space-between}.dialog-head h2{margin:0}.dialog-head p{line-height:1.4}.dialog-head .text-button{align-self:start}dialog small{display:block;color:#819187;margin-top:7px;font-weight:400}dialog form>button{width:100%;margin-top:20px}.no-contacts{padding:20px 24px;color:#819187;font-size:14px;line-height:1.5}@media(max-width:700px){.sidebar{width:100%;min-width:0}.main{display:none}.app.chat-open .sidebar{display:none}.app.chat-open .main{display:block}.back{display:block}.messages{padding:18px}.window{max-width:120px;text-align:right}.bubble{max-width:85%}}
select{font:inherit;border:1px solid #d8e2dc;background:#fff;border-radius:8px;padding:12px;width:100%;color:#263934;margin-top:8px}.template-button{background:#edf5ef!important;color:#18744d!important;padding:10px!important;font-size:13px}.template-preview{margin-top:20px;background:#f0f7f2;border-radius:9px;padding:14px;white-space:pre-wrap;line-height:1.5;font-size:14px;color:#36584a}button:disabled{opacity:.5;cursor:not-allowed}#templateDialog{max-height:85dvh;overflow:auto}
