*{box-sizing:border-box}body{margin:0;background:#f4f6f8;color:#17212b;font-family:Tahoma,Arial,sans-serif}a{color:#176b55;text-decoration:none}header{height:68px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100% - 1100px)/2));position:sticky;top:0;z-index:5}.brand{font-size:20px;font-weight:800;color:#123}nav{display:flex;gap:18px}.wrap{max-width:1100px;margin:28px auto;padding:0 16px;min-height:calc(100vh - 140px)}.card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:24px;box-shadow:0 6px 24px #0000000a}.hero{max-width:700px;margin:80px auto;text-align:center;padding:50px}.hero h1{font-size:34px}.btn,button{display:inline-block;background:#176b55;color:#fff;border:0;border-radius:11px;padding:12px 18px;font-weight:700;cursor:pointer}.secondary{background:#e8f2ef;color:#176b55}.actions{display:flex;gap:10px;justify-content:center}.auth{max-width:480px;margin:35px auto}.auth form{display:grid;gap:16px}label{display:grid;gap:7px;font-weight:700}input,select{width:100%;padding:13px;border:1px solid #d5d9de;border-radius:10px;background:#fff;font:inherit}.muted,small{color:#75808a}.alert{padding:12px;border-radius:10px;margin:10px 0}.err{background:#fff0f0;color:#9d2020}.ok{background:#eaf8ef;color:#176b55}.topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.deal-list{display:grid}.deal-row{display:flex;justify-content:space-between;align-items:center;padding:17px 5px;border-bottom:1px solid #edf0f2;color:#17212b;gap:16px}.deal-row:last-child{border:0}.deal-row>div{display:grid;gap:6px}.deal-row>div:last-child{text-align:left}.status{font-size:12px;padding:5px 9px;border-radius:999px;background:#eef1f4}.status.waiting{background:#fff5d9}.status.connected{background:#e5f3ff}.status.completed{background:#e6f7ed}.status.cancelled{background:#fde9e9}.chat-shell{height:calc(100vh - 125px);min-height:600px;background:#fff;border:1px solid #e1e5e8;border-radius:18px;overflow:hidden;display:flex;flex-direction:column}.chat-head{padding:14px 18px;border-bottom:1px solid #e7eaed;display:flex;justify-content:space-between;gap:15px;align-items:center}.chat-head h2,.chat-head p{margin:5px 0}.operator-actions{display:flex;gap:8px}.danger{background:#a92b2b}.messages{flex:1;overflow:auto;padding:20px;background:#eef3f1;display:flex;flex-direction:column;gap:10px}.system-msg{align-self:center;background:#fff7d7;padding:8px 13px;border-radius:10px;font-size:13px}.msg{max-width:min(76%,650px);padding:10px 13px;border-radius:14px;background:#fff;box-shadow:0 1px 2px #0001;display:grid;gap:6px;direction:rtl}.msg.mine{align-self:flex-start;background:#dff5e9}.msg.theirs{align-self:flex-end}.msg small{font-size:11px;font-weight:700}.msg time{font-size:10px;color:#8b949c;text-align:left}.receipt{display:block;background:#ffffff88;border:1px solid #dce3df;padding:10px;border-radius:9px}.composer{display:flex;gap:8px;padding:12px;border-top:1px solid #e3e7e5;align-items:center}.composer>input{flex:1}.clip{display:block;padding:10px;cursor:pointer;font-size:20px}.clip input{display:none}.file-name{padding:0 16px 8px;font-size:12px;color:#68737d}.closed{padding:15px;text-align:center;background:#f7f8f9}footer{text-align:center;color:#88929b;padding:15px}@media(max-width:650px){header{padding:0 14px}.brand{font-size:16px}nav{gap:10px;font-size:13px}.wrap{margin:12px auto;padding:0 8px}.card{border-radius:14px;padding:17px}.hero{margin:30px auto;padding:30px 18px}.hero h1{font-size:26px}.topline{align-items:flex-start}.deal-row{align-items:flex-start}.chat-shell{height:calc(100vh - 94px);min-height:520px;border-radius:12px}.chat-head{align-items:flex-start;flex-direction:column}.operator-actions{width:100%}.operator-actions button{flex:1}.msg{max-width:88%}.composer{padding:8px}.composer button{padding:12px}.clip{padding:6px}}

.notif-badge{display:inline-flex;min-width:22px;height:22px;padding:0 6px;border-radius:20px;background:#dc2626;color:#fff;align-items:center;justify-content:center;font-size:12px}.notification{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid #e5e7eb;border-radius:12px;margin:8px 0;text-decoration:none;color:inherit}.browser-notice{position:fixed;z-index:9999;left:16px;bottom:16px;background:#111827;color:white;padding:12px 16px;border-radius:12px;gap:12px;align-items:center;box-shadow:0 8px 30px #0003}.browser-notice button{width:auto;padding:7px 12px}.secondary{width:auto;background:#64748b}

.notif-wrap{position:relative;display:flex;align-items:center}.notif-bell{position:relative;background:transparent;color:#17212b;padding:8px 10px;font-size:21px;line-height:1}.notif-count{position:absolute;top:0;right:0;min-width:18px;height:18px;padding:0 5px;border-radius:20px;background:#dc2626;color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center}.notif-menu{display:none;position:absolute;top:44px;left:0;width:min(360px,calc(100vw - 24px));background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 14px 40px #0002;overflow:hidden;z-index:50}.notif-menu.open{display:block}.notif-title{padding:12px 14px;font-weight:800;border-bottom:1px solid #eef0f2}.notif-item{display:grid;gap:4px;padding:12px 14px;color:#17212b;border-bottom:1px solid #f0f2f4}.notif-item:hover{background:#f7faf9}.notif-item span,.notif-item small{color:#75808a;font-size:12px}.notif-empty{padding:18px;color:#75808a;text-align:center}@media(max-width:650px){.notif-menu{position:fixed;top:62px;left:8px;right:8px;width:auto}.notif-bell{padding:6px}}

.presence{font-size:.88rem;opacity:.8;margin-top:6px}.presence.online{font-weight:700;opacity:1}
