
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#263049;background:#f8f9fc;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,select{cursor:pointer}button{border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:wait}a{color:#0786ff}button:hover{filter:brightness(.96)}input,select,textarea{border:1px solid #e1e5ee;background:white;border-radius:8px;padding:10px 12px;outline:none;color:#384158}input:focus,textarea:focus,select:focus{border-color:#75b3e9;box-shadow:0 0 0 3px #75b3e914}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;font-weight:650}h2{font-size:20px;font-weight:600}h3{font-weight:600}p{color:#8a91a2;line-height:1.6}small{color:#9198a8;font-size:11px}.shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:white;border-right:1px solid #e9ecf2;padding:30px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;font-size:26px;font-weight:750;letter-spacing:-1px;padding:0 12px}.brandmark{background:#0786ff;color:white;width:33px;height:33px;border-radius:10px;text-align:center;line-height:29px;font-size:33px}.beta{font-size:8px;letter-spacing:1px;border:1px solid #e8eff5;border-radius:4px;padding:3px 5px;color:#94a9bb;margin-left:6px}.workspace{margin:32px 8px;padding:15px 10px;border:1px solid #eceef5;border-radius:9px;font-size:12px;font-weight:600}.workspace small,.profile small{display:block;margin-top:5px;font-weight:400}.navlabel{font-size:9px;letter-spacing:1.3px;color:#a5adba;margin:2px 14px 15px}nav button,.bottom>button{display:flex;align-items:center;gap:13px;padding:13px 14px;width:100%;margin:4px 0;border-radius:8px;font-size:13px;color:#798399}nav button.active{color:#0786ff;background:#edf4fb;font-weight:600}nav b{margin-left:auto;background:#dfecf8;font-size:10px;border-radius:5px;padding:1px 6px}.bottom{margin-top:auto}.profile{border-top:1px solid #eceff5;margin-top:24px;padding:22px 5px 0;display:flex;align-items:center;gap:10px;font-size:12px}.profile>span{background:#eee9e2;padding:9px;border-radius:50%;font-size:11px}.profile>svg{margin-left:auto;color:#98a0b2}main{margin-left:224px;width:calc(100% - 224px);min-width:0}header{height:76px;background:#fff;border-bottom:1px solid #e9edf2;padding:0 34px;display:flex;align-items:center;justify-content:space-between;font-size:11px}header>span{display:flex;align-items:center;gap:15px;color:#9ca4b4}header strong{color:#596377;font-weight:500}.save{font-size:10px;color:#8d96a7;display:flex;align-items:center;gap:7px}.save i{width:5px;height:5px;border-radius:50%;background:#66ab91}.content{padding:34px;max-width:1900px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.eyebrow{font-size:9px;color:#a0a5b8;letter-spacing:1.7px;margin-bottom:8px}.heading p{font-size:12px;margin-top:8px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;padding:12px 17px;background:#0786ff;color:white;font-size:12px;font-weight:550;box-shadow:0 3px 7px #0786ff16}.demobar{background:#eef4f9;border:1px solid #e3ecf3;border-radius:8px;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;color:#8298ab;font-size:10px;margin-bottom:24px}.demobar em{padding:0 9px}.demobar button{display:flex;align-items:center;gap:7px;color:#0786ff}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:30px}.stat{background:#fff;border:1px solid #e9ecf3;border-radius:11px;padding:20px}.stat>span{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#8791a2}.metricicon{padding:7px;border-radius:8px;background:#f0f5fa;color:#0786ff}.m1{background:#fff2e9;color:#d2a06f}.m2{background:#eaf6f3;color:#7aafa5}.stat>strong{display:block;font-size:27px;font-weight:600;letter-spacing:-1px;margin:8px 0}.stat small{font-size:10px}.toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px;gap:15px}.viewlabel{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:550}.viewlabel>span{color:#a4aabd;padding:2px 7px;background:#eceef4;border-radius:5px;font-size:10px}.filters{display:flex;gap:10px}.search{display:flex;align-items:center;gap:7px;background:white;border:1px solid #e1e5ee;padding-left:10px;border-radius:7px;color:#9aa4b6}.search input{border:0;font-size:11px;width:180px;box-shadow:none}.filters select{font-size:11px}.board{display:flex;gap:15px;overflow-x:auto;min-height:480px;padding-bottom:22px}.column{flex:0 0 237px;background:#f0f2f7;border-radius:10px;padding:12px 10px}.colhead{display:flex;gap:8px;align-items:center;font-size:11px;font-weight:600;margin:4px 3px 17px}.colhead i{width:7px;height:7px;border-radius:50%}.colhead b{margin-left:auto;color:#9ea7b6;font-weight:400}.card{display:block;width:100%;text-align:left;background:white;border:1px solid #e6e9f0;border-radius:9px;padding:15px;margin-bottom:11px;box-shadow:0 3px 5px #24344b03;transition:transform .2s}.card:hover{transform:translateY(-3px);box-shadow:0 6px 15px #24344b09}.cardtop{display:flex;justify-content:space-between;font-size:9px;color:#a8afbc;margin-bottom:14px}.urgent,.source{padding:3px 6px;border-radius:4px;display:flex;gap:3px;align-items:center;background:#fff0e7;color:#d79262}.source{background:#f5f6f9;color:#939caf}.card h3{font-size:13px;line-height:1.5;min-height:40px}.location{display:flex;gap:4px;align-items:center;font-size:10px;color:#9ca6b5;margin:9px 0 17px}.customer{display:flex;gap:7px;align-items:center;font-size:11px;color:#7c869a}.customer>span{display:grid;place-items:center;background:#edf3f8;color:#97aec2;border-radius:50%;width:25px;height:25px;font-size:10px}.cardfoot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0f1f5;padding-top:14px;margin-top:15px}.cardfoot strong{font-size:12px;font-weight:600}.cardfoot>span{display:flex;gap:4px;align-items:center;font-size:8px;color:#9ea7b7}.addcard{display:flex;gap:6px;align-items:center;justify-content:center;width:100%;padding:10px;color:#a0a9b9;font-size:10px}.panel{border:1px solid #e6eaf2;border-radius:12px;background:white;padding:26px}.panel h2{display:flex;align-items:center;gap:10px;margin-bottom:16px}.panel p{margin:12px 0;font-size:13px}.mastergrid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.masteravatar{width:46px;height:46px;display:grid;place-items:center;background:#ebf3fa;color:#0786ff;border-radius:14px;margin-bottom:18px}.panel h3{font-size:16px;margin:12px 0}.panel p svg{display:inline;margin-right:5px}.tags{font-size:12px;line-height:1.7;color:#8a91a6;min-height:55px}.masterbottom{display:flex;justify-content:space-between;margin:18px 0}.masterbottom span{color:#d2ad63}.empty{text-align:center;padding:80px 20px}.empty>svg{margin:0 auto 25px;color:#9ab4ca}.empty h2{display:block}.empty p{max-width:440px;margin:15px auto 25px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}th{text-align:left;font-size:10px;color:#9ca5b5;font-weight:500}td,th{padding:16px 10px;border-bottom:1px solid #eef0f5}td button{color:#0786ff}.sectiontitle{margin:28px 0 18px}.neutral{font-size:11px;background:#f2f3f7;border-radius:5px;padding:5px 8px;color:#8e96a5}.overlay{position:fixed;inset:0;background:#202b4540;backdrop-filter:blur(3px);z-index:20;display:flex;justify-content:flex-end}.drawer{width:510px;max-width:100%;background:white;padding:28px 32px;overflow:auto;box-shadow:-10px 0 50px #12253d13}.drawerhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.drawerhead>span{font-size:10px;color:#969eb1;letter-spacing:1px}.drawer h2{font-size:24px}.drawer>p{margin:8px 0 22px;font-size:12px}.stageselect{width:100%;background:#f1f7fc;color:#0786ff;border-color:#e5f0fa}.tabs{display:flex;border-bottom:1px solid #e8ecf3;margin:25px 0;gap:20px}.tabs button{padding:10px 0;font-size:12px;color:#9aa4b4}.tabs .chosen{color:#0786ff;border-bottom:2px solid #0786ff}.tip{background:#f6fafe;border:1px solid #e9f2fa;border-radius:8px;padding:16px;display:flex;gap:12px;color:#0786ff;margin-bottom:22px;font-size:12px}.tip p{font-size:11px;margin-top:5px}.drawer form label,.dialog form label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#8792a6;margin:17px 0}.drawer form input,.dialog form input{font-size:13px}.drawer label.check{flex-direction:row;align-items:center}.notice{font-size:11px;color:#a2aaba;line-height:1.7;margin-top:28px;padding:18px;background:#f8f9fb;border-radius:8px}.candidate{padding:20px;border:1px solid #e7eaf1;border-radius:10px;margin-top:15px}.candidate p{font-size:12px;margin:8px 0 15px}.total{display:flex;justify-content:space-between;padding:20px;background:#f3f8fc;margin:22px 0;border-radius:8px;color:#0786ff}.timeline p{border-left:2px solid #e3eef7;padding:10px 15px;font-size:12px;margin:10px 0}.dialog{align-self:center;margin:auto;background:white;border-radius:16px;width:440px;max-width:95%;padding:28px}.dialog h2{font-size:21px}textarea{min-height:110px;resize:vertical}
@media(min-width:1600px){.column{flex:1;min-width:215px}}@media(max-width:1000px){.sidebar{width:180px;padding:26px 10px}main{margin-left:180px;width:calc(100% - 180px)}.content{padding:25px}.stats{grid-template-columns:repeat(2,1fr)}.mastergrid{grid-template-columns:repeat(2,1fr)}.toolbar{align-items:flex-start;flex-direction:column}}@media(max-width:640px){.sidebar{position:fixed;inset:auto 0 0;width:100%;height:65px;padding:4px;z-index:10;border-top:1px solid #e5e8ef}.brand,.workspace,.navlabel,.bottom{display:none}nav{display:flex;justify-content:space-around}nav button{flex-direction:column;gap:4px;font-size:9px;padding:8px;width:auto;margin:0}nav b{display:none}main{margin:0;width:100%;padding-bottom:65px}header{height:56px;padding:0 20px}header>span{font-size:10px}.save{font-size:8px}.content{padding:23px 18px}.heading{align-items:flex-start;gap:10px}h1{font-size:27px}.heading p{font-size:11px;max-width:210px}.heading>.primary{padding:11px;font-size:10px;margin-top:19px}.demobar{align-items:flex-start;gap:10px;flex-direction:column;font-size:9px}.stats{gap:10px;margin-bottom:24px}.stat{padding:15px}.stat>strong{font-size:25px}.stat small{font-size:9px}.metricicon{padding:4px}.filters{width:100%}.search{flex:1;min-width:0}.search input{width:100%;min-width:0}.filters select{max-width:120px}.column{flex-basis:244px}.mastergrid{grid-template-columns:1fr}.drawer{padding:23px}.panel{padding:21px}}
.headeractions{display:flex;align-items:center;gap:24px}.bell{position:relative;padding:9px;color:#8790a5;border-radius:10px}.bell:hover,.bell.selected{background:#eef5fb;color:#0786ff}.bell b{position:absolute;right:0;top:0;background:#0786ff;color:white;border:2px solid white;border-radius:20px;font-size:9px;min-width:17px;height:17px;display:grid;place-items:center}.notificationbackdrop{position:fixed;inset:76px 0 0;z-index:14;cursor:default;background:#202b4508}.notifications{position:fixed;right:28px;top:66px;z-index:15;width:390px;max-height:calc(100vh - 95px);overflow:auto;background:white;border:1px solid #e7eaf1;box-shadow:0 18px 60px #26304920;border-radius:14px}.notificationhead{display:flex;align-items:center;justify-content:space-between;padding:20px}.notificationhead h3{font-size:15px}.notificationhead small{font-size:10px;margin-left:8px}.readall{color:#0786ff;font-size:11px;padding:0 20px 14px}.notification{display:flex;gap:12px;text-align:left;width:100%;padding:17px 20px;border-top:1px solid #eff0f5}.notification.unread{background:#f8fcff}.notification>span{background:#eaf3fa;color:#0786ff;border-radius:10px;padding:9px;height:36px}.notification strong{font-size:12px}.notification p{font-size:12px;margin:5px 0}.notification small{font-size:10px}.notificationfooter{padding:15px 20px;font-size:10px;color:#a2a9b8;border-top:1px solid #edf0f5}.viewtabs{display:flex;gap:3px;background:#ebedf4;padding:4px;border-radius:9px}.viewtabs button{display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:6px;color:#9299ac;font-size:11px}.viewtabs .chosen{background:white;color:#0786ff;box-shadow:0 2px 4px #30395409}.joblist{padding:6px 14px}.listtitle{text-align:left;color:#38445d;white-space:normal;min-width:170px;font-size:12px;font-weight:550}.listtitle small{display:block;font-weight:400;margin-top:6px}.joblist tr:hover{background:#fbfdfe}.prioritydot{display:inline-block;width:6px;height:6px;background:#d99a6e;margin-right:5px;border-radius:50%}.stagebadge{display:inline-block;padding:5px 8px;border-radius:5px;background:#eef5fb;color:#83a2bd;font-size:10px}.s1{background:#fbf2e7;color:#b89b6b}.s2{background:#eaf3fa;color:#8da6bb}.s3{background:#eaf5f4;color:#7baba4}.s4,.s5{background:#ecf5e9;color:#86a179}.viewempty{padding:30px 12px;text-align:center;color:#a0a8b8;font-size:12px;line-height:1.8}.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px}.calendar{padding:20px;min-width:0}.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:10px}.calendar-toolbar h2{margin:0;font-size:17px;text-transform:capitalize}.calendar-toolbar>div{display:flex;align-items:center;gap:5px}.calendar-toolbar button{border:1px solid #ebedf3;border-radius:6px;padding:7px;font-size:10px;display:flex}.calendar-legend{display:flex;gap:14px;font-size:10px;color:#85a4c0;margin-bottom:18px}.calendar-legend span:nth-child(2){color:#76a8a4}.calendar-legend small{margin-left:auto;font-size:9px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid #edf0f5;border-top:1px solid #edf0f5}.weekday{text-align:center;font-size:10px;color:#9da6b6;padding:10px;background:#fafbfe;border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5}.calday{height:98px;min-width:0;border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5;padding:6px;cursor:pointer;position:relative}.calday>span{display:grid;place-items:center;width:23px;height:23px;font-size:11px;margin-bottom:4px}.calday:hover{background:#f8fcff}.calday.outside{background:#fafbfc;color:#bdc3ce}.calday.selected{background:#f3f8fd;box-shadow:inset 0 0 0 1px #b8d4ed}.calday.today>span{background:#0786ff;border-radius:50%;color:white}.calevent{display:block;width:100%;padding:4px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;background:#e8f2fa;color:#799dbd;border-radius:3px;margin-bottom:3px}.calevent.call{background:#e6f3f1;color:#6b9f98}.calday>small{font-size:8px}.agenda{padding:21px}.agenda>h3{font-size:17px;margin:0 0 5px}.agendaevent{display:flex;flex-direction:column;width:100%;text-align:left;padding:17px 0;border-bottom:1px solid #edf0f5;gap:7px}.agendaevent>span{font-size:10px;color:#0786ff}.agendaevent>.calltext{color:#75a89f}.agendaevent strong{font-size:12px}.agendaevent small{font-size:10px}.unscheduled{border-top:1px solid #e9edf4;padding-top:18px;margin-top:22px}.unscheduled h3{font-size:13px}.unscheduled p{font-size:10px;line-height:1.7}.unscheduled button{display:flex;align-items:center;justify-content:space-between;text-align:left;font-size:11px;width:100%;padding:12px 0;border-top:1px solid #f0f2f6}.mobile-event-dot{display:none}.daybanner{background:linear-gradient(110deg,#ecf4fb,#f4f8fc);border:1px solid #e3edf6;border-radius:14px;padding:28px 30px;display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;color:#8da8c0}.daybanner small{text-transform:capitalize;font-size:11px;color:#9cadbc}.daybanner h2{font-size:24px;letter-spacing:-.5px;color:#5b768e;margin:10px 0}.daybanner p{font-size:12px;color:#94a7b8}.overviewgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.overviewpanel h3{display:flex;align-items:center;gap:10px;font-size:14px;margin:0}.overviewpanel h3 svg{color:#94abbf}.overviewpanel h3>span{margin-left:auto;background:#f0f5f9;border-radius:5px;padding:3px 7px;color:#9db2c5;font-size:10px}.overviewpanel>p{font-size:11px;margin:8px 0 20px}.overviewrow{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;padding:15px 0;border-top:1px solid #eef0f5}.overviewrow strong{font-size:12px;font-weight:500}.overviewrow small{display:block;margin-top:6px;font-size:10px}.overviewrow>svg{color:#acb3c2}.quiet{display:flex;align-items:center;justify-content:center;gap:10px;color:#abb4c2;font-size:12px;min-height:110px}.quiet svg{color:#9eb8aa}.moregrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.morecard{text-align:left;display:flex;gap:16px;align-items:center}.morecard>svg{flex-shrink:0;color:#8cabc6}.morecard h3{font-size:15px;margin:0}.morecard p{font-size:11px;margin:8px 0 0}.morecard>svg:last-child{margin-left:auto}.calltask{display:flex;align-items:center;gap:12px;border:1px solid #e3efed;border-radius:9px;background:#f5faf9;padding:16px;margin-top:20px;color:#78a39b}.calltask strong{font-size:11px}.calltask small{display:block;font-size:10px;margin-top:5px}.calltask button{margin-left:auto;font-size:10px;color:#648d86}.calday:focus-visible,button:focus-visible{outline:2px solid #8bb2d4;outline-offset:3px}
@media(max-width:1200px){.calendar-layout{grid-template-columns:minmax(0,1fr)}.agenda{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.agenda>h3,.agenda>small,.agenda>.unscheduled,.agenda>.viewempty{grid-column:1/-1}.moregrid{grid-template-columns:1fr}.morecard{max-width:650px}.calday{height:90px}}
@media(max-width:640px){.headeractions{gap:8px}.headeractions .save{max-width:130px}.bell{padding:7px}.notificationbackdrop{top:56px}.notifications{top:55px;right:10px;width:calc(100% - 20px);max-height:calc(100dvh - 130px)}.sidebar nav{height:100%;align-items:center}.sidebar nav button{flex:1;font-size:10px;max-width:110px}.sidebar nav .central-nav{margin-top:-17px;background:#0786ff;color:white;box-shadow:0 4px 10px #0786ff25;border-radius:15px;padding:12px 23px}.sidebar nav .central-nav.active{background:#0786ff}.central-nav svg{width:22px;height:22px}.overviewgrid{grid-template-columns:1fr;gap:14px}.daybanner{padding:22px}.daybanner h2{font-size:20px;line-height:1.4}.daybanner>svg{display:none}.daybanner p{font-size:11px;line-height:1.8}.calendar{padding:12px}.calendar-toolbar h2{font-size:14px}.calendar-toolbar button{padding:6px}.calendar-legend{gap:10px;font-size:9px}.calendar-legend small{font-size:8px}.calday{height:53px;padding:3px}.calevent,.calday>small{display:none}.mobile-event-dot{display:block;position:absolute;bottom:6px;left:50%;width:4px;height:4px;border-radius:50%;background:#0786ff}.calday>span{margin:auto;font-size:10px}.calendar-layout{gap:14px}.agenda{display:block}.viewtabs{width:100%;justify-content:space-between}.viewtabs button{flex:1;justify-content:center}.toolbar{gap:12px}.joblist{padding:3px 6px}.daybanner{margin-bottom:17px}.morecard{padding:22px}.notifications .notification{padding:14px}.heading .eyebrow{font-size:8px}}
.cityfield{position:relative;margin:17px 0}.cityfield>label{display:block!important;margin:0 0 7px!important;font-size:11px;color:#8792a6}.cityinput{display:flex;border:1px solid #e1e5ee;border-radius:8px;background:white}.cityinput input{width:100%;min-width:0;border:0}.cityinput button{padding:0 14px;color:#87a3bb}.cityfield>small{display:block;margin-top:6px}.cityoptions{position:absolute;top:65px;left:0;right:0;max-height:240px;overflow:auto;background:white;border:1px solid #e1e8ee;box-shadow:0 9px 24px #26304918;border-radius:9px;z-index:40}.cityoptions button{display:flex;flex-direction:column;text-align:left;width:100%;gap:4px;padding:11px 14px}.cityoptions button:hover,.cityoptions button[aria-selected=true]{background:#eff5fb}.cityoptions strong{font-size:12px;font-weight:500}.cityoptions small{font-size:10px}.cityoptions p{padding:15px;font-size:12px}.dialog{max-height:calc(100dvh - 40px);overflow-y:auto}.outlinebutton{padding:11px 15px;border:1px solid #dfc8c8;color:#af7777;border-radius:8px;font-size:12px}.s6{background:#f8eded;color:#b48989}.tabs{gap:15px}.tabs button{font-size:11px;white-space:nowrap}.drawer .tabs{overflow:auto}.dialog .cityoptions{position:relative;top:0;margin-top:6px}.calltask{flex-wrap:wrap}
.headerprofile{display:flex;align-items:center;gap:10px;text-align:left;border-left:1px solid #edf0f5;padding-left:18px}.headerprofile>span:last-child{display:flex;flex-direction:column;gap:4px;max-width:160px}.headerprofile strong{font-size:11px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.headerprofile small{font-size:9px}.personavatar{width:40px;height:40px;display:grid;place-items:center;background:#e9f1f8;color:#81a2be;border-radius:13px;font-size:12px;flex-shrink:0}.personavatar.large{width:76px;height:76px;font-size:24px;border-radius:23px;margin:0 auto 20px}.personcard{text-align:left}.personcard .personfooter{display:flex;justify-content:space-between;border-top:1px solid #eceff5;margin-top:22px;padding-top:16px;font-size:11px;color:#95a9ba}.teamsearch{max-width:360px;margin-bottom:22px}.teamsearch input{width:100%}.personhero{text-align:center;margin:20px 0 28px}.personhero p{margin:10px 0 5px;font-size:13px}.contactactions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.secondary{display:inline-flex;align-items:center;gap:7px;border:1px solid #dfe6ed;border-radius:8px;padding:10px 12px;font-size:11px;color:#869fb5;text-decoration:none;background:white}.contactactions .primary{text-decoration:none}.contacthint{font-size:11px;color:#9fa7b6;padding:10px 0}.editprofile{display:flex;align-items:center;gap:8px;color:#85a0b8;font-size:12px;padding:10px 0;margin-bottom:20px}.persondetails dt{font-size:10px;color:#a0a7b6;margin:20px 0 8px}.persondetails dd{font-size:13px;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.masteractions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.formerror{color:#ba7373;font-size:12px;margin:12px 0}.messenger{display:grid;grid-template-columns:260px minmax(0,1fr);height:650px;max-height:calc(100dvh - 230px);min-height:400px;background:white;border:1px solid #e5e9f1;border-radius:14px;overflow:hidden}.chatlist{border-right:1px solid #e9edf3;padding:16px 10px;overflow:auto}.chatlist .search{margin:0 5px 18px}.chatlist .search input{width:100%;min-width:0;font-size:10px;padding:10px 4px}.chatcontact{width:100%;display:flex;align-items:center;gap:10px;padding:13px 10px;border-radius:9px;text-align:left;margin-bottom:4px}.chatcontact.active{background:#f0f6fb}.chatcontact>div{min-width:0}.chatcontact strong{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatcontact small{display:block;margin-top:5px;font-size:10px}.conversation{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fbfdfe}.conversationhead{display:flex;align-items:center;gap:10px;background:white;border-bottom:1px solid #e9edf3;padding:18px 24px}.conversationhead strong{font-size:13px;font-weight:550}.conversationhead small{display:block;font-size:10px;margin-top:5px}.conversationhead>a{margin-left:auto;color:#91a7bb}.chatnotice{margin:12px 20px 0;padding:10px 13px;background:#eff4f8;color:#8ba0b2;font-size:10px;line-height:1.6;border-radius:8px}.messages{flex:1;overflow:auto;padding:22px;display:flex;flex-direction:column;gap:15px}.chatempty{margin:auto;text-align:center;color:#a6b9c9;max-width:250px}.chatempty svg{margin:0 auto 20px}.chatempty h3{font-size:15px}.chatempty p{font-size:11px;margin-top:8px}.bubble{margin-left:auto;background:#e8f1f9;border:1px solid #dfe9f2;border-radius:12px 12px 3px 12px;padding:13px 16px;max-width:85%}.bubble>button{font-size:10px;color:#87a1b8}.bubble p{white-space:pre-wrap;overflow-wrap:anywhere;color:#6a7d8e;font-size:12px;margin:6px 0 9px}.bubble small{font-size:8px;color:#9bafc1}.composer{display:flex;align-items:center;gap:12px;border-top:1px solid #e6ebf0;padding:16px 20px;background:white}.composer textarea{min-height:48px;height:48px;max-height:120px;flex:1;font-size:12px;min-width:0}.composer .primary{padding:12px}.chatback{display:none}.moregrid{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom .profile{width:100%;text-align:left}.persondrawer .notice{margin-top:26px}
@media(max-width:1000px){.headeractions .save{display:none}.messenger{grid-template-columns:210px minmax(0,1fr)}.headerprofile>span:last-child{max-width:100px}.moregrid{grid-template-columns:1fr}}
@media(max-width:640px){.headerprofile{padding-left:10px}.headerprofile>span:last-child{display:none}.headerprofile .personavatar{width:32px;height:32px;font-size:10px;border-radius:10px}.headeractions{gap:8px}header>span{gap:7px;font-size:9px}.sidebar nav button{max-width:none;font-size:9px}.sidebar nav .central-nav{padding:12px 10px;max-width:95px}.messenger{display:block;height:calc(100dvh - 270px);min-height:380px;max-height:none}.chatlist{height:100%;border:0}.conversation{display:none;height:100%}.showchat .chatlist{display:none}.showchat .conversation{display:flex}.chatback{display:block}.conversationhead{padding:14px}.chatnotice{font-size:9px;margin:10px 12px 0}.composer{padding:12px;gap:8px}.messages{padding:14px}.bubble{max-width:94%}.teamsearch{max-width:none}.contactactions{gap:7px}.personhero h2{font-size:22px}}
.authwrap{display:grid;place-items:center;min-height:100dvh;background:#f5f8fa;padding:25px}.authcard{max-width:420px;width:100%;padding:38px;background:white;border:1px solid #e4eaef;border-radius:18px;box-shadow:0 20px 80px #26384808}.authcard .brand{padding:0;margin-bottom:30px}.authcard h1{font-size:25px}.authcard p{font-size:12px;margin-top:10px}.authcard label{display:flex;flex-direction:column;font-size:12px;gap:8px;margin:22px 0}.authcard .primary{width:100%;margin:5px 0 25px}.authcard small{line-height:1.8;display:block}.accounttools{position:fixed;bottom:16px;left:15px;width:190px;display:flex;gap:8px;z-index:12;background:white}.accounttools button{font-size:10px;color:#7795b0;padding:8px;border:1px solid #e3e9ef;border-radius:7px}.sidebar .bottom{margin-bottom:38px}.invite-result{background:#f1f6fb;padding:18px;margin-top:20px;border-radius:10px}.invite-result textarea{width:100%;font-size:11px;margin:10px 0}.save{max-width:300px}.messages{scroll-behavior:smooth}@media(max-width:640px){.accounttools{position:static;width:auto;padding:12px 18px;margin-left:0;padding-bottom:80px}.accounttools button{font-size:12px}.authcard{padding:28px}.authwrap{padding:16px}}
/* Mobile navigation: only the active destination is highlighted. */
.mobile-more{display:none}.specialty-row,.contact-add{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.specialty-row{margin:8px 0}.specialty-row input{flex:1;min-width:0}.rate-row{padding:16px;border:1px solid #e2e8ed;border-radius:16px;margin:16px 0;background:#f9fbfd}.contact-add{margin-bottom:16px}
@media(max-width:640px){.sidebar nav .more-nav{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.sidebar nav button{margin:0;transform:none;border-radius:14px;background:transparent;color:#8b90a4}.sidebar nav button.active{background:#0786ff;color:#fff}.mobile-more{display:inline-flex;align-items:center;justify-content:center;padding:8px}.headeractions{gap:8px}.drawer{max-width:100vw}.rate-row{padding:12px}}
.stagebadge.s9{background:#fff0d7;color:#8c5b14}.stagebadge.s10{background:#e6f5ed;color:#26734e}.stagebadge.s11{background:#f4e9eb;color:#975260}

.permission-fields{border:0;padding:0;margin:0;min-width:0;width:100%}.permission-fields:disabled input,.permission-fields:disabled textarea,.permission-fields:disabled select{opacity:1;color:#596174;-webkit-text-fill-color:#596174}.permission-fields:disabled button.primary,.permission-fields:disabled button.outlinebutton{display:none}.profile-logout{margin-top:24px;width:100%}.rolebadge{font-size:13px;color:#0786ff}button[hidden]{display:none!important}

.sidebar .bottom{margin-bottom:0}

/* Comfortable controls below the iPhone status area, including Home Screen mode. */
.mobile-brand,.mobile-action-label{display:none}
@media(max-width:640px){
  .shell{--mobile-header-height:calc(84px + env(safe-area-inset-top, 0px));--mobile-nav-height:calc(72px + env(safe-area-inset-bottom, 0px))}
  .app-header{position:sticky;top:0;z-index:12;isolation:isolate;flex-shrink:0;height:var(--mobile-header-height);min-height:var(--mobile-header-height);padding:calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px));gap:12px;background:#fff;opacity:1;filter:none;-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:1px solid #e6e9f1;box-shadow:0 2px 8px #26304905}
  .app-header .desktop-breadcrumb{display:none}
  .app-header .mobile-brand{display:block;color:#263049;font-size:21px;font-weight:750;letter-spacing:-.7px;line-height:1;flex-shrink:0}
  .app-header .headeractions{gap:8px;margin-left:auto;flex-shrink:0}
  .app-header .headeractions>.mobile-more,.app-header .headeractions>.bell,.app-header .headeractions>.headerprofile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:56px;min-width:56px;height:56px;padding:5px 3px;margin:0;border:0;border-radius:12px;color:#505b71;background:#f5f6fa;touch-action:manipulation;-webkit-tap-highlight-color:transparent;line-height:1;filter:none}
  .app-header .headeractions>button:active{background:#e5f0fa}
  .app-header .headeractions>button.selected{background:#e9f3fc;color:#0786ff}
  .app-header .mobile-action-label{display:block;font-size:10px;font-weight:600;line-height:12px;color:inherit;white-space:nowrap}
  .app-header .headerprofile .profile-summary{display:none}
  .app-header .headerprofile .personavatar{width:28px;height:28px;border-radius:9px;font-size:10px;font-weight:650;color:#0786ff;background:#e1edf7}
  .app-header .headeractions>button svg{width:25px;height:25px;flex-shrink:0}
  .app-header .bell b{right:2px;top:0;min-width:18px;height:18px;font-size:10px}
  .notificationbackdrop{top:var(--mobile-header-height)}
  .notifications{top:calc(var(--mobile-header-height) + 8px);right:max(12px, env(safe-area-inset-right, 0px));width:calc(100% - 24px);max-height:calc(100dvh - var(--mobile-header-height) - var(--mobile-nav-height) - 20px)}
  .sidebar{height:var(--mobile-nav-height);padding:6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));background:#fff}
  main{padding-bottom:var(--mobile-nav-height)}
  .drawer{padding-top:calc(20px + env(safe-area-inset-top, 0px));padding-right:max(20px, env(safe-area-inset-right, 0px));padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px));padding-left:max(20px, env(safe-area-inset-left, 0px))}
  .drawerhead>button,.notificationhead>button{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .drawer .tabs{overflow-x:auto;gap:20px;scrollbar-width:none}
  .drawer .tabs button{min-height:44px;flex-shrink:0}
}
/* Profile actions stay separate and compact on touch screens. */
.profile-actions{display:flex;flex-direction:column;align-items:stretch;gap:20px;margin-top:24px}
.profile-actions>.profile-access{align-self:flex-start}
.profile-actions>.panel{margin:0}
.profile-actions>.profile-logout{align-self:flex-start;width:auto;min-height:40px;max-width:100%;margin:4px 0 0;padding:9px 14px;font-size:12px;line-height:20px;color:#a45f6a;box-shadow:none}
/* Messages scroll independently; changing reactions never rewrites a message. */
.conversationhead,.composer,.chatnotice,.chat-error{flex-shrink:0}
.messages{min-height:0;overscroll-behavior:contain;scroll-behavior:auto}
.bubble{flex-shrink:0}
.bubble.incoming{margin-right:auto;margin-left:0;background:#fff;border-color:#e7e9f0;border-radius:12px 12px 12px 3px}
.bubble p{color:#45525e}
.message-reactions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px}
.message-reactions .reaction-chip{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:3px 9px;border:1px solid #d9e4ed;border-radius:20px;background:#fff;font-size:17px;line-height:1;touch-action:manipulation}
.message-reactions .reaction-chip small{font-size:11px;color:#65717c}
.message-reactions .reaction-chip.mine{border-color:#80b3df;background:#e2f0fc}
.message-reactions .reaction-add{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:4px;border-radius:50%;color:#7592ac;background:#ffffff90}
.reaction-picker{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px;padding-top:8px;border-top:1px solid #dce5ec}
.reaction-picker button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:4px;font-size:23px;border-radius:10px;touch-action:manipulation}
.reaction-picker button[aria-pressed=true]{background:#d5e7f7}
.bubble:has(.reaction-picker){min-width:min(240px,94%)}
.chat-error{padding:8px 16px;color:#a45f6a;background:#fff3f4;font-size:12px;line-height:1.5}
.composer{align-items:flex-end}
.composer textarea{font-size:16px;line-height:22px;min-height:44px;height:44px;max-height:120px;padding:10px 12px;resize:none;overflow-y:auto}
.composer>.primary{flex-shrink:0;width:44px;height:44px;min-width:44px;padding:10px;touch-action:manipulation}
@media(max-width:640px){
 .shell{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .shell input,.shell textarea,.shell select{font-size:16px!important}
 .messenger.showchat{position:fixed;z-index:16;top:var(--chat-viewport-top,0px);left:0;right:0;bottom:auto;width:100%;height:var(--chat-viewport-height,100dvh);min-height:0;max-height:none;padding-top:env(safe-area-inset-top,0px);padding-right:env(safe-area-inset-right,0px);padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);border:0;border-radius:0;background:#fff;overscroll-behavior:none}
 .messenger.showchat.chat-keyboard-open{padding-bottom:0}
 .showchat .conversation{height:100%;min-height:0;overflow:hidden}
 .showchat .conversationhead{padding:8px 12px;min-height:60px;gap:8px}
 .conversationhead>div{flex:1;min-width:0}
 .conversationhead strong{display:block;font-size:15px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
 .conversationhead button:disabled{opacity:1;cursor:default}
 .conversationhead>div>button{display:block;max-width:100%;padding:4px;text-align:left}
 .conversationhead .chatback,.conversationhead>a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px}
 .showchat .chatnotice{display:none}
 .showchat .messages{flex:1;min-height:0;padding:16px 12px;gap:12px;overflow-y:auto;-webkit-overflow-scrolling:touch}
 .showchat .bubble{max-width:92%;padding:11px 13px}
 .showchat .bubble p{font-size:15px;line-height:1.5}
 .showchat .bubble small{font-size:10px}
 .showchat .bubble .message-author{font-size:11px}
 .showchat .composer{padding:10px 12px;gap:8px}
 .showchat .composer textarea{font-size:16px!important;line-height:22px;min-height:44px}
 .showchat .chatempty{padding:20px 10px;max-width:280px;flex-shrink:1}
 .showchat .chatempty h3{font-size:17px}
 .showchat .chatempty p{font-size:13px}
 .message-reactions .reaction-chip,.message-reactions .reaction-add{min-height:40px;min-width:40px}
 .reaction-picker button{width:44px;height:44px}
 .persondrawer .profile-actions{gap:20px;margin-top:24px}
 .persondrawer .profile-logout{min-height:40px;padding:8px 12px}
}

/* Employee access cards and live team status. */
.account-card{min-width:0}
.account-card .account-info strong{display:block;overflow-wrap:anywhere}
.account-card .account-info p{margin:7px 0 0;overflow-wrap:anywhere}
.account-statuses,.person-statuses{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:12px 0}
.invitation-badge{display:inline-flex;align-items:center;max-width:100%;padding:5px 9px;border-radius:7px;background:#f0f5fa;color:#7b91a5;font-size:11px;line-height:1.4;overflow-wrap:anywhere;text-align:left}
.invitation-badge.accepted{background:#edf7f0;color:#46845c}
.invitation-badge.expired,.invitation-badge.inactive{background:#fff6e9;color:#a17a3d}
.invitation-badge.blocked{background:#fff0f0;color:#b26c6c}
.account-card .account-role{display:flex;flex-direction:column;gap:8px;margin:17px 0 13px;font-size:12px;color:#8792a6}
.account-role select{width:100%;min-width:0;max-width:100%;min-height:44px;font-size:14px}
.account-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
.account-buttons .secondary{width:100%;min-width:0;min-height:44px;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere;line-height:1.4;padding:10px 8px;font-size:12px}
.account-buttons>button:last-child:nth-child(odd){grid-column:1/-1}
.presence-status,.chatcontact small.presence-status,.conversationhead small.presence-status{display:flex;align-items:center;gap:5px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.presence-status.online{color:#438a60}
.presence-status i{display:inline-block;flex-shrink:0;width:6px;height:6px;border-radius:50%;background:#51a674}
.personhero .person-statuses,.personhero>.presence-status{justify-content:center}
.personhero .invitation-badge{font-size:11px}
@media(max-width:640px){.account-role select{font-size:16px}.account-buttons .secondary{font-size:12px}.account-card{padding:18px}.account-info strong{font-size:14px}.account-statuses{gap:6px}}

/* Profile photographs and mobile data refresh feedback. */
.personavatar{overflow:hidden;padding:0;position:relative}
.personavatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.profile>.personavatar{width:36px;height:36px;padding:0;border-radius:50%}
.avatar-editor{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:18px}
.avatar-editor .personavatar.large{width:88px;height:88px;border-radius:28px;margin:0}
.avatar-buttons{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}
.avatar-buttons .secondary{min-height:44px;justify-content:center}
.avatar-file{position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%)}
.personhero .avatar-message{font-size:11px;line-height:1.5;margin:0;max-width:280px}
.avatar-message.formerror{color:#b26565}
.account-info{display:flex;align-items:center;gap:12px;min-width:0}
.account-info>div{min-width:0}
.conversation-avatar{width:34px;height:34px;border-radius:11px}
.bubble>.message-author{display:flex;align-items:center;gap:6px;text-align:left}
.message-author .message-avatar{width:22px;height:22px;border-radius:7px;font-size:8px;flex-shrink:0}
.sync-status{display:none}
.sync-spin{animation:crm-sync-spin .9s linear infinite}
@keyframes crm-sync-spin{to{transform:rotate(360deg)}}
@media(max-width:640px){
 .sync-status{display:flex;align-items:center;justify-content:center;gap:12px;min-height:34px;padding:4px max(14px, env(safe-area-inset-right, 0px)) 4px max(14px, env(safe-area-inset-left, 0px));border-bottom:1px solid #e9eff4;background:#fbfdff;color:#8298ac;font-size:11px;line-height:1.4;flex-shrink:0}
 .sync-caption{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0}
 .sync-caption>svg{flex-shrink:0}
 .sync-caption>span{overflow-wrap:anywhere}
 .sync-caption time{font-size:10px;color:#9aa4ac;white-space:nowrap}
 .sync-status>button{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-width:32px;min-height:28px;border-radius:7px;padding:4px 8px;color:inherit;background:#ecf3f9;font-size:10px}
 .sync-status.sync-ready{color:#789983}
 .sync-status.sync-error{color:#ae7566;background:#fff8f3}
 .sync-status.sync-error>button{background:#f7e9df}
 .sync-status.in-chat{background:#fbfdfe;padding-top:3px;padding-bottom:3px;min-height:30px}
 .shell:has(.showchat) main>.sync-status{display:none}
 .avatar-editor .personavatar.large{width:88px;height:88px}
 .avatar-buttons .secondary{font-size:12px}
 .showchat .conversation-avatar{width:32px;height:32px;border-radius:10px}
}
@media(prefers-reduced-motion:reduce){.sync-spin{animation:none}}

.chat-row{display:flex;align-items:center;position:relative}.chat-row>.chatcontact{flex:1;min-width:0}.chat-menu{position:relative;flex-shrink:0}.chat-menu summary{list-style:none;cursor:pointer;padding:12px;font-size:20px}.chat-menu>div{position:absolute;right:0;top:35px;background:white;box-shadow:0 6px 24px #26304930;border:1px solid #eee;border-radius:10px;z-index:20;width:220px;padding:6px}.chat-menu button{display:block;width:100%;text-align:left;padding:12px;font-size:12px}.unread-badge,.nav-unread{display:inline-flex!important;align-items:center;justify-content:center;background:#e85c68!important;color:white!important;border-radius:20px;min-width:21px;height:21px;padding:0 5px;font-size:11px;flex-shrink:0}.sidebar nav button{position:relative}.sidebar nav .nav-unread{position:absolute;right:8px;top:5px}.message-actions{display:flex;gap:12px;margin:8px 0}.message-actions button{font-size:11px;color:#7895ae}

@media(max-width:640px){.chat-menu[open]>div{position:fixed;top:40%;right:20px;max-width:calc(100vw - 40px);z-index:200}}

@media(max-width:640px){html,body{overscroll-behavior-y:contain}.sync-pull{gap:7px;min-height:40px}}

/* Fixed mobile scale; retain scrolling on both axes and swipe navigation. */
html.mobile-scale-locked,html.mobile-scale-locked body{touch-action:pan-x pan-y}
html.mobile-scale-locked input,html.mobile-scale-locked textarea,html.mobile-scale-locked select{font-size:16px!important}

.security-overlay{z-index:150}.security-drawer .drawerhead h2{font-size:22px}.security-section-title{display:flex;align-items:center;gap:10px}.security-section-title h3{margin:0}.security-sms{padding:20px 0 28px;border-bottom:1px solid #e5e7ef}.security-caption{color:#8b90a1;font-size:14px;line-height:1.5}.security-current{color:#428461}.security-app>h3{font-size:15px;font-weight:400;color:#8b90a1;margin:26px 0 12px}.security-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:20px 0;font-size:18px;text-align:left}.security-link{background:transparent;border:0;color:inherit}.security-switch{width:52px;height:30px;border:0;border-radius:20px;background:#dfe0e5;padding:3px;flex-shrink:0;opacity:1!important;cursor:default}.security-switch>span{display:block;width:24px;height:24px;border-radius:50%;background:#fff}.security-logout{display:block;width:100%;background:transparent;border:0;color:#ee6666;padding:28px 0 16px;font-size:17px}.security-login{display:grid;gap:8px;padding:20px 0;border-bottom:1px solid #e5e7ef}.security-login small{color:#8b90a1}.security-drawer form>.secondary{margin-top:12px}.security-drawer form>.primary{width:100%}

/* Messenger list, notes and touch actions. */
.chat-list-tools{display:flex;justify-content:flex-end;min-height:40px;margin:0 4px 4px}.chat-list-tools button{display:grid;place-items:center;width:40px;height:40px;color:#9198aa}.message-search{display:flex;align-items:center}.message-search input{flex:1}.chat-list-loading{padding:24px 12px;color:#9198aa;font-size:13px}.chat-row-front{display:flex;align-items:center;position:relative;width:100%;min-width:0;background:white}.chat-row-front>.chatcontact{flex:1;min-width:0}.chatcontact>div{flex:1}.chatcontact>svg{flex-shrink:0;color:#a5a5ad}.chat-pin{transform:rotate(35deg)}.notes-avatar{background:#2189ff!important;color:white!important;border-radius:50%!important}.chat-swipe-actions{display:none}.chatcontact.chat-search-match{background:#f4faff}.search-snippet{white-space:normal;overflow-wrap:anywhere}.messenger mark{background:#ffe798;color:#493d26;border-radius:3px;padding:0 1px}.chat-row-front .chatcontact{margin-bottom:0}
@media(max-width:640px){
.swipe-chat-row{display:block;overflow:hidden;isolation:isolate;border-radius:8px;margin-bottom:4px}
.chat-row-front{touch-action:pan-y;transition:transform .18s ease-out;z-index:1}.chat-row-front.dragging{transition:none}
.chat-row-front .chat-menu{display:none}.chat-row-front .chatcontact{min-height:76px;border-radius:0}
.chat-swipe-actions{display:flex;position:absolute;top:0;bottom:0;z-index:0}.swipe-left{left:0;width:168px}.swipe-right{right:0;width:88px}
.chat-swipe-actions button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:white;padding:8px 3px;font-size:10px;background:#2189ff;line-height:1.2}
.swipe-left button:first-child{background:#1ac581}.swipe-right button{background:#96989e}.chat-swipe-actions[aria-hidden="true"]{visibility:hidden}
}
@media(prefers-reduced-motion:reduce){.chat-row-front{transition:none}}
@media(min-width:641px){.chat-row-front{transform:none!important}}

.chat-list-tools h2{display:none}.chat-title-line{display:flex;align-items:center;gap:8px;min-width:0}.chat-title-line strong{flex:1;min-width:0}.chat-title-line time{flex-shrink:0;color:#9b9ba3;font-size:11px}.last-message-preview{overflow:hidden;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.composer-wrap{background:white;border-top:1px solid #e6ebf0}.composer-wrap .composer{border-top:0}.attachment-input{display:none!important}.composer-icon{display:grid;place-items:center;flex-shrink:0;width:38px;height:44px;color:#9496a2}.recording-indicator{flex:1;color:#df5962;font-size:15px}.attachment-preview{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #eee}.attachment-preview img{width:54px;height:54px;object-fit:cover;border-radius:8px}.attachment-preview>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:12px}.attachment-preview audio{width:220px;max-width:65%;height:40px}.message-attachment{min-width:0;margin:6px 0}.message-attachment img{display:block;max-width:100%;max-height:360px;object-fit:contain;border-radius:10px}.message-attachment audio{display:block;width:280px;max-width:100%;height:44px}.file-download{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;max-width:280px;overflow-wrap:anywhere}.file-download>span{flex:1;min-width:0}.file-download small{display:block;margin-top:6px}.transcribe{font-size:12px;text-align:left;padding:10px 0;color:#0786ff}.voice-transcript{border-top:1px solid #d3e1ee;padding-top:8px}.bubble{width:fit-content}.bubble.incoming{margin-left:0;margin-right:auto}
@media(max-width:640px){
.messenger-content{padding:0!important}.messenger-heading{display:none!important}.messenger-content .messenger:not(.showchat){border:0;border-radius:0;min-height:400px;height:calc(100dvh - 170px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-height:none}.chatlist{padding:8px 0 0;border:0}.chat-list-tools{justify-content:space-between;align-items:center;padding:6px 16px;margin:0}.chat-list-tools h2{display:block;font-size:23px;letter-spacing:-.5px}.chatlist .message-search{margin:4px 14px 12px}.chat-row-front .chatcontact{padding:14px 16px;gap:12px;min-height:88px}.chatcontact .personavatar{width:52px;height:52px;border-radius:50%;font-size:17px}.chatcontact strong{font-size:16px;line-height:1.35;font-weight:600}.chatcontact small{font-size:15px;line-height:1.35;margin-top:5px}.chat-title-line time{font-size:12px}.swipe-chat-row{border-radius:0;margin:0;border-bottom:1px solid #f0f2f4}.showchat .conversation{animation:conversation-open .22s ease-out}.showchat .conversationhead{padding:8px 10px}.showchat .conversationhead strong{font-size:16px}.showchat .messages{padding:12px 8px;gap:10px;background:#f1f6fa}.showchat .bubble{max-width:94%;padding:10px 12px}.showchat .bubble p{font-size:16px;line-height:1.4}.showchat .bubble .message-author{font-size:12px}.showchat .message-actions button{font-size:10px}.showchat .composer{padding:6px 8px;gap:4px}.showchat .composer textarea{padding:10px 6px}.showchat .composer .primary{padding:10px}.showchat .bubble audio{max-width:70vw}.showchat .bubble .file-download{max-width:70vw}.message-attachment img{max-height:400px}.conversationhead>a{flex-shrink:0}.showchat .bubble small{font-size:10px}
@keyframes conversation-open{from{opacity:.5;transform:translateX(32px)}to{opacity:1;transform:translateX(0)}}
}
@media(prefers-reduced-motion:reduce){.showchat .conversation{animation:none!important}}
.attachment-menu{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#f9fbfd;border-bottom:1px solid #eee}.attachment-menu button{padding:10px 12px;border-radius:8px;background:#e9f1f8;color:#5d83a4;font-size:13px}.attachment-menu button:last-child{margin-left:auto;padding:10px}

/* Fixed messenger toolbar; only the conversations scroll. */
.chatlist{display:flex;flex-direction:column;overflow:hidden;min-height:0;padding:0}.chatlist-fixed{flex-shrink:0;background:white;z-index:3}.chatlist-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 8px}.chat-list-tools{margin-top:8px}.all-chats-button{display:flex;align-items:center;gap:7px;margin:0 14px 10px;padding:8px 12px;border-radius:10px;background:#ebf3fa;color:#0786ff;font-size:12px}.message-reactions:empty{display:none}.bubble{outline-offset:3px}.reaction-picker{border-radius:24px;background:white;box-shadow:0 5px 20px #3b4f6126;padding:7px;margin:8px 0;display:flex;flex-wrap:wrap;gap:3px}.reaction-picker button{border-radius:50%;min-width:34px;height:34px;font-size:22px}.reaction-picker button:hover{background:#eaf3fa}.attachment-menu{padding:18px 12px 22px;gap:12px;align-items:flex-start;background:#f8f9fb;position:relative}.attachment-menu button{display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;min-width:80px;padding:8px 12px;background:transparent;color:#92949a;font-size:14px}.attachment-menu button:first-child{color:#2189ff}.attachment-menu button:last-child{min-width:36px;padding:8px;margin-left:auto}.attachment-menu button svg{stroke-width:2.3}
.admin-chats-overlay{z-index:170}.admin-chats-drawer{width:680px;max-width:100vw}.admin-chats-drawer .drawerhead h2{font-size:18px;overflow-wrap:anywhere}.admin-chat-notice{font-size:12px;margin-bottom:18px}.admin-conversations{display:grid;gap:8px;margin-top:14px}.admin-conversations>button{display:grid;gap:8px;padding:16px;text-align:left;border:1px solid #e3eaf0;border-radius:12px}.admin-conversations small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.admin-conversations span{font-size:11px;color:#94a0aa}.admin-delete-chat{display:flex;gap:8px;align-items:center;color:#d64b61;padding:12px 0;margin-bottom:12px}.admin-chat-messages{display:flex;flex-direction:column;gap:12px}.admin-chat-messages .bubble{max-width:100%}
@media(max-width:640px){
.chatlist-scroll{padding:0}.messenger-content .messenger:not(.showchat){height:calc(100dvh - 170px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:0}.showchat .conversation{position:relative;z-index:2;background:#fff;animation:chat-slide-in .38s cubic-bezier(.22,.7,.2,1) both;will-change:transform}.showchat.chat-closing .conversation{animation:chat-slide-out .36s cubic-bezier(.4,0,.6,1) both;pointer-events:none}.showchat .chatlist{display:flex;position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.75}.reaction-picker button{min-width:34px;min-height:34px;width:34px;height:34px}.admin-chats-drawer{width:100%}
@keyframes chat-slide-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes chat-slide-out{from{transform:translateX(0)}to{transform:translateX(100%)}}
}
@media(prefers-reduced-motion:reduce){.showchat .conversation,.showchat.chat-closing .conversation{animation:none!important;will-change:auto}}
/* The mobile messenger owns the viewport; only the dialog list scrolls. */
@media(max-width:640px){
 body:has(.messenger-page){overflow:hidden;overscroll-behavior:none}
 .messenger-page{height:100dvh;overflow:hidden}
 .messenger-page main{height:100%;overflow:hidden;padding-bottom:0}
 .messenger-page .app-header{position:fixed;inset:0 0 auto 0}
 .messenger-page .messenger-content{position:fixed;top:var(--mobile-header-height);bottom:var(--mobile-nav-height);left:0;right:0;overflow:hidden;padding:0!important;margin:0}
 .messenger-page .messenger-content .messenger:not(.showchat){height:100%;min-height:0;max-height:none}
 .messenger-page .messenger-content>.notice,.messenger-page .demobar{display:none}
 .chatlist-fixed{position:relative;flex:0 0 auto}
 .bubble{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
 .chat-swipe-actions.swipe-right button{flex:1;min-width:0}
 .chat-swipe-actions .delete-chat-swipe{background:#ef5a64;color:white}
 .app-header .mobile-brand{font-size:clamp(14px,4vw,19px);letter-spacing:-.6px;flex-shrink:1}
}

@media(max-width:640px){.messenger-page .messenger-host{height:100%;min-height:0}.authcard .brand{display:block}}
.message-context-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;background:#2c3d4b50;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);overflow-y:auto;overscroll-behavior:contain;animation:context-appear .16s ease-out}
.message-context{width:min(440px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;outline:none;display:flex;flex-direction:column;gap:10px;padding:4px}
.context-reactions{display:flex;align-items:center;justify-content:space-around;gap:1px;background:#f1f8ffdc;border:1px solid #ffffff80;border-radius:32px;padding:7px;box-shadow:0 8px 30px #23384b20;flex-shrink:0}
.context-reactions.expanded{flex-wrap:wrap;justify-content:flex-start}.context-reactions button{font-size:28px;padding:3px;min-width:36px;height:40px;display:grid;place-items:center;border-radius:50%}.context-reactions button:hover{background:#ffffff80}
.context-message{background:#fff;border-radius:15px 15px 15px 3px;padding:12px 15px;box-shadow:0 5px 18px #2334431a;flex-shrink:0}.context-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4;font-size:16px;margin:0;max-height:28dvh;overflow:auto;color:#282d3b}.context-message time{display:block;text-align:right;color:#9396a0;font-size:11px;margin-top:4px}.context-message img{display:block;max-width:100%;max-height:22dvh;border-radius:8px;margin-bottom:8px;object-fit:contain}
.context-actions{background:#ebf6ffec;border:1px solid #ffffff80;border-radius:24px;padding:8px 12px;width:min(275px,100%);box-shadow:0 8px 28px #23384b25;flex-shrink:0}.context-actions button{width:100%;display:flex;align-items:center;gap:16px;padding:13px 10px;font-size:16px;text-align:left;color:#232d36}.context-actions button.danger{color:#ed565e}.context-actions .context-select{border-top:1px solid #9cadbb55;margin-top:4px;padding-top:17px}.context-close{align-self:flex-start;display:flex;gap:6px;align-items:center;color:white;padding:5px 10px}
.forward-picker{width:min(420px,100%);padding:20px;border-radius:24px;background:white;max-height:80dvh;display:flex;flex-direction:column;gap:12px}.forward-picker>div:not(.drawerhead){overflow-y:auto;min-height:0}.forward-picker>div>button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:14px 8px;border-bottom:1px solid #eee}.forward-picker input{padding:12px;border:1px solid #ddd;border-radius:10px;width:100%}
.pinned-messages{flex-shrink:0;max-height:90px;overflow-y:auto;background:#fff;border-bottom:1px solid #e3eaf1}.pinned-messages button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 14px;color:#0786ff;text-align:left}.pinned-messages span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reply-draft{display:flex;gap:10px;padding:10px 14px;background:white;border-top:1px solid #e3eaf1;color:#0786ff}.reply-draft>div{min-width:0;flex:1;border-left:3px solid #0786ff;padding-left:10px}.reply-draft strong{font-size:12px}.reply-draft p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0 0;font-size:13px}
.bubble .reply-quote{display:block;width:100%;border-left:3px solid #0786ff;background:#8ca9c318;border-radius:4px;padding:7px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;max-width:100%}.forwarded-label{font-size:11px;color:#0786ff;margin-bottom:5px}.selection-toolbar{display:flex;align-items:center;gap:10px;flex-shrink:0;background:#e7f2fb;padding:10px;flex-wrap:wrap;font-size:12px}.selection-toolbar button{color:#0786ff}.message-selected{outline:2px solid #0786ff;background:#d6e7f5!important}.message-select-check{float:right;color:#0786ff;font-size:19px;margin-left:8px}
@keyframes context-appear{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.message-context-backdrop{animation:none}}
@media(max-width:640px){.message-context-backdrop{padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));align-items:center}.message-context{max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.context-reactions button{font-size:27px;min-width:32px}.context-actions button{font-size:17px}.startup-brand{letter-spacing:.5px!important}}

.context-error{background:white;border-radius:10px;padding:10px;color:#b64550;font-size:13px}
/* Keep the list in its own viewport while the conversation slides above it. */
@media(max-width:640px){
 .messenger-page .messenger-content .messenger.showchat{position:static;width:100%;height:100%;min-height:0;padding:0;overflow:visible;background:white}
 .messenger-page .showchat .chatlist{display:flex;position:static;inset:auto;opacity:1;height:100%;pointer-events:none}
 .messenger-page .showchat .conversation{position:fixed;z-index:30;left:0;right:0;top:var(--chat-viewport-top,0px);height:var(--chat-viewport-height,100dvh);padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);box-sizing:border-box;background:white}
 .messenger-page .showchat.chat-keyboard-open .conversation{padding-bottom:0}
 .messenger-page main>.sync-status{display:none}
 .chatlist-fixed>.sync-status{margin:0;border-radius:0}
 .chat-row-front,.chat-row-front *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
 .chatlist-scroll{touch-action:pan-y;overflow-anchor:none}
}
.dialog-context{width:min(480px,100%);display:flex;flex-direction:column;gap:12px;max-height:85dvh;overflow:auto}.dialog-preview{background:#fff;border-radius:18px;padding:18px}.dialog-preview strong{font-size:19px}.dialog-preview p{font-size:16px;line-height:1.4;color:#90939b;margin:8px 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.dialog-actions{background:white;align-self:flex-end;width:min(310px,100%);border-radius:20px;overflow:hidden}.dialog-actions button{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 20px;width:100%;font-size:17px;text-align:left;border-bottom:1px solid #eee}.dialog-actions button:last-child{border:0}.dialog-actions .danger{color:#e45863}.hidden-chats-toggle{font-size:12px;color:#7297b8;padding:6px 14px}
.message-scroll-area{flex:1;min-height:0;position:relative;display:flex;flex-direction:column;overflow:hidden}.message-scroll-area>.messages{height:100%;min-height:0}.jump-to-latest{position:absolute;right:14px;bottom:14px;z-index:4;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:white;color:#41484e;box-shadow:0 2px 12px #27364425;border:1px solid #e2e7eb}.selection-actions{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;background:#f3f6f8;border-top:1px solid #e0e6eb;padding:10px 16px;min-height:62px}.selection-actions button{display:flex;align-items:center;justify-content:center;flex-direction:column;width:52px;min-height:44px;color:#64616b}.selection-actions button:disabled{opacity:.35}.selection-actions span{font-size:9px}.selection-toolbar strong{flex:1}
.forward-backdrop{position:fixed;inset:0;z-index:1100;background:#0006;display:flex;align-items:center;justify-content:center;padding:24px}.forward-sheet{background:#fff;border-radius:24px;display:flex;flex-direction:column;width:min(560px,100%);height:min(780px,90dvh);overflow:hidden;box-shadow:0 14px 60px #0003}.forward-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;height:74px;min-height:74px;padding:12px 18px;border:0}.forward-header h2{font-size:21px;margin:0;color:#232a31}.forward-header button,.forward-header>span{width:42px;min-height:42px;display:grid;place-items:center}.forward-header>span{font-size:13px;color:#96909e}.forward-search{display:flex;align-items:center;gap:10px;flex-shrink:0;border-radius:14px;margin:0 14px 14px;padding:10px 13px;background:#f2f3f4;color:#a5a3a9}.forward-search input{flex:1;min-width:0;border:0;background:transparent;padding:3px 0;outline:none;font-size:16px}.forward-all{padding:6px 20px 16px;font-size:16px;color:#0786ff;flex-shrink:0;border-bottom:1px solid #edf1f4}.forward-contacts{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 10px}.forward-contact{display:flex;width:100%;align-items:center;gap:13px;padding:12px 8px;text-align:left}.forward-contact>.personavatar{height:48px;width:48px;border-radius:50%;font-size:17px}.forward-contact>span:last-child{min-width:0}.forward-contact strong{font-size:16px;line-height:1.35;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.forward-contact small{display:block;font-size:14px;color:#97939d;margin-top:5px}.forward-contact:active{background:#eef4f9;border-radius:12px}.forward-empty,.forward-status{padding:12px 20px;font-size:14px}.forward-status{margin:0;flex-shrink:0}
@media(max-width:640px){.forward-backdrop{align-items:flex-end;padding:0}.forward-sheet{height:calc(100dvh - max(24px,env(safe-area-inset-top,0px)));width:100%;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}.forward-header{height:68px;min-height:68px}.forward-header h2{font-size:21px}.selection-actions{padding:8px 16px}.forward-sheet input{font-size:16px!important}}

.composer-slot{flex-shrink:0}.composer-slot[hidden]{display:none!important}

/* Composer is a permanent, non-shrinking row; only history consumes free space. */
.conversation>.message-scroll-area{flex:1 1 0px;height:0;min-height:0;min-width:0;overflow:hidden}
.message-scroll-area>.messages{flex:1 1 0px;height:auto;min-height:0;overflow-y:auto}
.conversation>.composer-slot{display:block!important;flex:0 0 auto;min-height:57px;width:100%;position:relative;z-index:5;background:white}
.composer-slot .composer-wrap{width:100%;max-height:45dvh;overflow-y:auto}
.conversation>.selection-toolbar,.conversation>.selection-actions,.conversation>.sync-status{flex:0 0 auto}
@media(max-width:640px){
 .messenger-page:has(.showchat),.messenger-page:has(.showchat) main,.messenger-page .messenger-content:has(.showchat){overflow:visible}
 .messenger-page .showchat .conversation{display:flex;flex-direction:column;overflow:hidden;bottom:auto;min-height:0;max-height:var(--chat-viewport-height,100dvh)}
 .showchat .composer-slot textarea{display:block;visibility:visible;pointer-events:auto;font-size:16px!important}
}
/* A mobile conversation lives directly in body, outside CRM navigation layers. */
.mobile-conversation-root{position:fixed;z-index:200;left:0;right:0;top:var(--chat-viewport-top,0px);height:var(--chat-viewport-height,100dvh);min-height:0;overflow:hidden;background:#fff;isolation:isolate;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);box-sizing:border-box}
.mobile-conversation-root[hidden]{display:none!important}
.mobile-conversation-root.chat-keyboard-open{padding-bottom:0}
.mobile-conversation-root>.conversation{position:relative!important;inset:auto!important;display:flex!important;flex-direction:column;height:100%!important;max-height:100%;width:100%;min-height:0;padding:0!important;overflow:hidden;box-sizing:border-box}
.mobile-conversation-root .message-scroll-area{flex:1 1 0px;min-height:0;height:0}
.mobile-conversation-root .composer-slot{flex:0 0 auto;display:block!important;background:white;z-index:5}
.mobile-conversation-root .conversationhead{flex:0 0 auto;min-height:60px}
@media(max-width:640px){.messenger-page .messenger-content .messenger.showchat{overflow:hidden}.messenger-page .showchat .chatlist{pointer-events:none}}
body:has(.mobile-conversation-root:not([hidden])) .overlay{z-index:300}
/* Rounded composer and compact voice messages. */
.messenger-composer{background:#eaf0f5;border:0}.composer-slot:has(.messenger-composer){background:#eaf0f5}
.composer.composer-modern{background:#eaf0f5;padding:8px 10px;gap:7px;align-items:flex-end;border:0}
.composer-modern .composer-text-pill{flex:1;min-width:0;display:flex;align-items:flex-end;background:white;border-radius:20px;padding:0 4px 0 12px}
.composer-modern .composer-text-pill textarea{border:0!important;box-shadow:none!important;background:transparent;padding:10px 0!important;border-radius:0;font-size:16px;line-height:24px;flex:1;min-width:0;outline:none}
.composer-emoji-toggle{width:38px;height:44px;display:grid;place-items:center;flex-shrink:0;color:#63666c}
.composer-modern .composer-icon{width:34px;min-width:34px;height:44px;color:#61666d;padding:0}.composer-modern .primary{background:#1599bf;color:white;border-radius:50%;width:42px;height:42px;min-width:42px;margin-bottom:1px;box-shadow:none}
.composer-emojis{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;padding:12px;background:#edf2f7}.composer-emojis button{font-size:25px;min-height:38px;border-radius:8px}.composer-emojis button:hover{background:white}
.bubble:has(.voice-player){background:#e6faff;border-color:#d5f2fa;color:#178caf;min-width:230px}.bubble:has(.voice-player) small{color:#3293ae}.voice-player{display:flex;align-items:center;gap:10px;width:260px;max-width:100%;min-width:0;padding:3px 0}.voice-player audio{display:none!important}.voice-player .voice-play{flex:0 0 46px;width:46px;height:46px;border-radius:50%;background:#149bc1;color:white;display:grid;place-items:center;padding:0;border:0}.voice-track{flex:1;min-width:0;position:relative;padding-bottom:19px}.voice-wave{height:32px;display:flex;align-items:center;gap:3px;overflow:hidden;color:#159ac0}.voice-wave i{width:3px;min-width:2px;flex:1;border-radius:3px;background:currentColor}.voice-track input[type=range]{position:absolute;top:0;left:0;width:100%;height:32px;opacity:0;margin:0;padding:0;cursor:pointer}.voice-track:focus-within{outline:2px solid #168eaf;outline-offset:3px;border-radius:5px}.voice-time{position:absolute;bottom:0;left:0;font-size:12px;font-variant-numeric:tabular-nums;color:#1687aa}.voice-text-button{flex:0 0 36px;align-self:flex-start;height:32px;border-radius:10px;border:1px solid #c3e8f1;display:flex;gap:2px;align-items:center;justify-content:center;color:#168db2;background:#d7f3fa;padding:0;font-size:17px}.voice-text-button.unavailable{opacity:.6}.voice-message .voice-error{font-size:11px;line-height:1.4;color:#71838a;margin:6px 0 0}.voice-message .voice-transcript{font-size:14px;border-color:#bfe4ef}
@media(max-width:640px){.showchat .composer.composer-modern{padding:7px 8px;gap:5px}.showchat .composer-modern .composer-text-pill textarea{font-size:16px!important;padding:10px 0!important}.showchat .composer-modern .primary{padding:9px}.showchat .bubble:has(.voice-player){max-width:92%;min-width:220px}.showchat .voice-player{width:250px}.composer-modern .composer-icon{width:31px;min-width:31px}.composer-modern .composer-emoji-toggle{width:34px}}
.round-video-wrap{width:220px;max-width:100%}.round-video{position:relative;width:100%;aspect-ratio:1;border-radius:50%;overflow:hidden;background:#222}.round-video video{display:block;width:100%;height:100%;object-fit:cover}.round-video>button{position:absolute;inset:0;display:grid;place-items:center;color:white;background:#0002}.round-video>button svg{width:36px;height:36px;filter:drop-shadow(0 1px 4px #0008)}.round-video>button.video-playing{background:transparent;opacity:0}.round-video>button.video-playing:focus-visible,.round-video>button.video-playing:hover{opacity:1}.round-video-progress{display:flex;gap:10px;align-items:center;margin-top:6px;font-size:12px}.round-video-progress input{min-width:0;width:100%;padding:0;accent-color:#159bc1}.attachment-preview:has(.round-video-wrap){flex-wrap:wrap;justify-content:center}.attachment-preview .round-video-wrap{width:150px}.video-record-overlay{position:fixed;inset:0;z-index:1200;background:#1c2030f5;color:white;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:24px;gap:18px}.video-record-overlay h2{font-size:20px}.video-record-overlay p{font-size:13px;text-align:center;margin:0;max-width:290px}.video-live-circle{width:min(70vw,320px);aspect-ratio:1;object-fit:cover;border-radius:50%;background:#111;transform:scaleX(-1)}.video-record-close{position:absolute;top:max(18px,env(safe-area-inset-top));right:18px;padding:12px}.video-record-stop{width:64px;height:64px;background:#ef5c67;border:4px solid white;border-radius:50%;display:grid;place-items:center;color:white}

/* Circular video messages and calendar separators. */
.message-day{align-self:center;width:100%;display:flex;justify-content:center;padding:9px 0 7px;flex-shrink:0;clear:both}.message-day time{background:#6d819280;color:#fff;border-radius:20px;padding:5px 13px;font-size:14px;font-weight:500;line-height:1.3;backdrop-filter:blur(12px)}
.messages .bubble.video-note-bubble{background:transparent;border:0;box-shadow:none;padding:0;width:min(76vw,320px);max-width:94%;position:relative}.video-note-bubble .round-video-wrap{width:100%}.video-note-bubble .round-video{border:2px solid #ffffffa0}.video-note-bubble>.message-author{margin:0 0 6px 8px}.video-note-bubble>.message-timestamp{display:block;width:max-content;margin:0 0 0 auto;padding:3px 9px;border-radius:16px;background:#6d819280;color:white;font-size:12px}.video-note-bubble .round-video-progress{margin-top:5px;gap:8px;padding-right:74px}.video-note-bubble .round-video-progress span{background:#6d819280;color:white;border-radius:16px;padding:3px 9px;white-space:nowrap}.video-note-bubble>.message-timestamp{margin-top:-24px;position:relative}.video-note-bubble .message-actions{margin-top:6px}.video-note-bubble.message-selected{outline:2px solid #80b3df;outline-offset:5px;border-radius:20px}.video-note-bubble>.message-reactions:empty{display:none}
.video-record-overlay{background:linear-gradient(150deg,#bfe0c980,#b8c6ed88);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);color:#24324b;padding:calc(24px + env(safe-area-inset-top,0px)) 20px calc(24px + env(safe-area-inset-bottom,0px));gap:24px;overflow:auto}.video-record-overlay h2{position:absolute;top:calc(24px + env(safe-area-inset-top,0px));left:20px;font-size:17px;font-weight:500}.video-record-close{background:#ffffff66;border-radius:50%;color:#24324b}.video-live-frame{width:min(86vw,440px,55dvh);aspect-ratio:1;border-radius:50%;padding:3px;margin-bottom:95px;box-shadow:0 8px 45px #21334d20;flex-shrink:0}.video-live-circle{display:block;width:100%;height:100%;aspect-ratio:1;border-radius:50%}.video-record-controls{position:absolute;bottom:calc(22px + env(safe-area-inset-bottom,0px));left:6%;right:6%;max-width:520px;margin:auto;display:grid;grid-template-columns:1fr 78px;align-items:center;gap:10px}.video-record-strip{display:flex;align-items:center;gap:10px;background:#ffffff80;border:1px solid #ffffff90;border-radius:40px;padding:18px 15px;touch-action:pan-y;white-space:nowrap}.video-record-strip time{font-variant-numeric:tabular-nums;font-weight:600}.recording-dot{width:10px;height:10px;border-radius:50%;background:#ff3c65;flex-shrink:0}.video-cancel-hint{font-size:13px}.video-record-stop{width:78px;height:78px;background:#069cf0;border:4px solid #ffffff90;box-shadow:0 0 0 7px #219eff30;color:#fff}.video-record-stop:disabled{opacity:.45}.video-record-controls p{grid-column:1/-1;justify-self:center;color:#35445c;font-size:12px}.video-record-stop svg{width:26px;height:26px}
@media(max-width:360px){.video-cancel-hint{font-size:11px}.video-record-strip{padding:16px 10px;gap:6px}.video-record-controls{left:4%;right:4%}}

/* Scrub round videos on the circumference; the centre stays play/pause. */
.round-video-seek{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;touch-action:none;user-select:none;-webkit-user-select:none;outline:none}.round-video-seek circle{fill:none}.video-ring-track{stroke:#ffffff55;stroke-width:1.2}.video-ring-progress{stroke:#fff;stroke-width:1.2;stroke-linecap:round}.round-video-seek .video-ring-hit{stroke:transparent;stroke-width:10;pointer-events:stroke;cursor:grab}.round-video-seek[aria-disabled="true"] .video-ring-hit{pointer-events:none}.round-video-seek .video-ring-thumb{fill:white;stroke:none;pointer-events:all;cursor:grab}.round-video-seek:focus-visible .video-ring-track{stroke:#1bafff;stroke-width:2}.round-video-seek:active .video-ring-hit{cursor:grabbing}.round-video-duration{font-size:12px;background:#6d819280;color:#fff;width:max-content;padding:3px 9px;border-radius:16px;margin-top:5px;font-variant-numeric:tabular-nums}.video-note-bubble>.message-timestamp{margin-top:-23px}.round-video>button svg{width:42px;height:42px}.video-live-frame{width:min(86vw,460px,58dvh)}

.video-send-status{padding:9px 16px;font-size:13px;color:#0786ff;text-align:center}

.auth-login-layout{display:flex;align-items:center;gap:24px;max-width:860px;width:100%;justify-content:center}.auth-login-layout>.authcard{flex:1;min-width:0}.desktop-qr{width:280px;flex-shrink:0;background:#e5eff7;padding:26px;border-radius:24px;color:#313f4c}.desktop-qr h2{font-size:23px;margin:0 0 16px}.desktop-qr p,.desktop-qr small{line-height:1.5}.desktop-qr img{display:block;width:100%;border-radius:16px;margin:20px 0}.desktop-qr small{display:block;font-size:12px}.qr-placeholder{height:230px;display:grid;place-items:center}.computer-login-overlay{position:fixed;inset:0;background:#15182c66;z-index:1500;display:flex;align-items:flex-end;justify-content:center}.computer-login-sheet{position:relative;background:white;border-radius:24px 24px 0 0;width:100%;max-width:560px;max-height:94dvh;overflow:auto;padding:16px 24px calc(24px + env(safe-area-inset-bottom,0px));color:#282c40}.computer-login-sheet h2{text-align:center;font-size:24px;margin:24px 20px}.sheet-handle{width:38px;height:5px;background:#d8dcdf;border-radius:8px;margin:auto}.qr-close{position:absolute;right:12px;top:18px}.qr-info{background:#edf2ff;color:#4474c9;border-radius:18px;padding:18px;line-height:1.5}.qr-illustration{height:160px;position:relative;display:flex;align-items:center;justify-content:center;color:#8ab1ef}.qr-illustration>svg:first-child{width:190px;height:140px}.qr-illustration>svg:nth-child(2){position:absolute;width:60px;height:60px;background:white;left:45%;top:40px}.qr-illustration>svg:last-child{height:100px;width:55px;align-self:flex-end}.computer-login-sheet ol{padding-left:28px;line-height:1.6;margin:24px 0}.computer-login-sheet li{padding:8px 0 8px 8px}.computer-login-sheet .primary{width:100%;display:flex;justify-content:center;align-items:center;gap:10px;margin-top:22px}.qr-scanner{width:100%;max-height:45dvh;border-radius:18px;object-fit:cover;background:#222}.qr-device{display:flex;flex-direction:column;gap:12px;background:#f4f7fa;padding:20px;border-radius:16px;overflow-wrap:anywhere}.qr-device strong{font-size:14px}.qr-success{text-align:center;padding:24px 0}.mobile-computer-login{display:none!important}@media(max-width:760px){.mobile-computer-login{display:flex!important}.auth-login-layout{display:block}.auth-login-layout>.authcard{margin:auto}.desktop-qr{display:none}}

/* Desktop readability: larger type and controls, without changing mobile layout. */
@media(min-width:641px){
 .shell{font-size:16px}.sidebar{width:248px;padding:28px 16px}.shell>main{margin-left:248px;width:calc(100% - 248px)}
 .sidebar .brand{white-space:nowrap;flex-wrap:nowrap;font-size:27px;letter-spacing:-1px;padding:0 10px;line-height:1.3;margin-bottom:34px}.sidebar .navlabel{font-size:11px;color:#707c90;margin-bottom:14px}.sidebar nav button,.sidebar .bottom>button{font-size:16px;min-height:52px;gap:12px;padding:13px 12px;color:#647086}.sidebar nav button.active{color:#0786ff}.sidebar nav button>svg,.sidebar .bottom>button>svg{width:22px;height:22px;flex-shrink:0}.sidebar nav b{font-size:12px}
 .app-header{min-height:80px}.desktop-breadcrumb{font-size:14px;color:#778196}.headerprofile strong{font-size:14px}.headerprofile small{font-size:12px;color:#737e91}.headerprofile>span:last-child{max-width:220px}.headerprofile .personavatar{width:44px;height:44px}.bell>svg{width:25px;height:25px}
 .content{padding:30px 32px}.heading h1{font-size:34px}.heading p{font-size:15px;color:#747f92}.primary,.secondary{font-size:15px;min-height:44px}.primary>svg,.secondary>svg,.viewtabs button>svg{width:20px;height:20px;flex-shrink:0}
 .stat>span{font-size:14px;color:#6d788d}.stat>strong{font-size:32px}.stat small{font-size:13px;color:#748095}.metricicon>svg{width:22px;height:22px}.stat{padding:22px}
 .viewtabs button{font-size:14px;min-height:40px}.filters select,.search input{font-size:14px;min-height:44px}.search input{width:230px}.search>svg{width:21px;height:21px}.filters{flex-wrap:wrap}.toolbar{flex-wrap:wrap}
 .column{flex:0 0 270px;min-width:270px;padding:14px 12px}.colhead{font-size:14px;line-height:1.4;align-items:center}.colhead i{flex-shrink:0}.colhead b{font-size:13px}.addcard{font-size:13px;color:#758198;min-height:44px}.addcard>svg{width:19px;height:19px}
 .card h3{font-size:16px}.cardtop{font-size:12px;color:#738097}.card .location,.card .customer{font-size:13px;color:#6c778c}.cardfoot strong{font-size:15px}.cardfoot>span{font-size:12px}.panel p,.tags{font-size:15px}.panel h3,.morecard h3{font-size:18px}.morecard p{font-size:14px;color:#748095}.personcard .personfooter{font-size:14px}.joblist th,.joblist td{font-size:14px}
 .messenger{grid-template-columns:300px minmax(0,1fr)}.chatcontact strong{font-size:15px}.chatcontact small{font-size:13px}.conversationhead strong{font-size:16px}.conversationhead small{font-size:13px}.chatnotice{font-size:12px}.bubble p{font-size:16px;line-height:1.5}.bubble .message-author{font-size:13px}.bubble>.message-timestamp{font-size:11px}.composer textarea{font-size:16px}.chat-list-tools h2{font-size:22px}.chatlist .search input{font-size:14px}
}
@media(min-width:641px) and (max-width:1100px){.sidebar{width:220px;padding:26px 12px}.shell>main{margin-left:220px;width:calc(100% - 220px)}.sidebar .brand{font-size:25px;padding:0 6px}.content{padding:24px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.messenger{grid-template-columns:230px minmax(0,1fr)}.headeractions{gap:12px}}

/* Personal wallpaper is applied only to message history, including the mobile portal. */
.messages,.showchat .messages{background-color:#c2d8ee;background-image:var(--chat-wallpaper,url('/static/chat-backgrounds/sky.svg'));background-size:640px 960px;background-position:center top}.messages .bubble.incoming{background:#fffffff2}.messages .bubble.own{background:#ebf6fff2}.messages .bubble.video-note-bubble{background:transparent}.messages .bubble p{color:#364052}.chat-theme-settings{margin-bottom:24px}.theme-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:16px}.theme-choices button{padding:5px;border:2px solid transparent;border-radius:16px;text-align:left}.theme-choices button[aria-pressed=true]{border-color:#0786ff;background:#edf7ff}.theme-choices button>span{height:145px;border-radius:10px;display:flex;flex-direction:column;justify-content:center;padding:10px;gap:14px;background-size:280px auto}.theme-choices i{font-style:normal;font-size:11px;background:#fffffff0;padding:7px;border-radius:10px;width:max-content;max-width:100%}.theme-choices i:last-child{align-self:flex-end;background:#ebf6ff}.theme-choices strong{display:block;font-size:14px;padding:10px 5px}
.task-summary{display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin-bottom:24px}.task-summary strong{font-size:28px;margin-right:6px}.task-summary>.primary{margin-left:auto}.task-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:24px}.task-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.task-card{display:block;background:white;border:1px solid #e3e6ee;border-radius:16px;padding:20px;text-align:left;min-width:0;width:100%}.task-card h3{font-size:17px;margin:12px 0;overflow-wrap:anywhere;line-height:1.45}.task-card p{font-size:14px}.task-card-top,.task-card-foot{display:flex;justify-content:space-between;gap:10px;color:#6b8ba7;font-size:12px}.task-card-top svg{color:#e19543}.task-card-foot{margin-top:20px;flex-wrap:wrap;color:#68748a}.task-card-foot span{display:flex;align-items:center;gap:5px}.task-overdue{border-color:#e7b0b5}.task-overdue>small{display:block;color:#b74c5f;margin-top:10px}.task-board{display:flex;gap:16px;overflow:auto;padding-bottom:18px}.task-board>div{flex:1 0 270px;min-width:0;background:#edf0f6;border-radius:16px;padding:12px}.task-board>div>h3{font-size:15px;padding:8px;margin-bottom:12px}.task-board .task-card{margin-bottom:12px}.task-drawer{width:680px;max-width:100vw}.task-fields{border:0;padding:0;margin:0;min-width:0}.task-fields label{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-size:14px}.task-fields input,.task-fields select,.task-fields textarea{width:100%;min-width:0;font-size:16px}.task-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.task-checklist>div{display:flex;gap:10px;align-items:center;padding:10px 0;overflow-wrap:anywhere}.task-checklist input{width:20px;height:20px;flex-shrink:0;accent-color:#0786ff}.task-checklist span{flex:1}.task-checklist .checked{text-decoration:line-through;color:#8b93a3}.task-add-item{display:flex;gap:8px;margin:12px 0}.task-add-item input{min-width:0}.task-save{width:100%;margin:18px 0}.task-creator{font-size:13px;margin-bottom:20px}.task-comments{border-top:1px solid #e5e6ec;padding-top:22px;margin-top:18px}.task-comments h3{display:flex;gap:8px;align-items:center}.task-comments article{padding:16px 0;border-bottom:1px solid #eee}.task-comments article small{display:block;margin:5px 0}.task-comments article p{white-space:pre-wrap;overflow-wrap:anywhere;color:#414a5f}.task-comments textarea{width:100%;margin:15px 0;font-size:16px}.task-delete{display:flex;align-items:center;gap:8px;color:#bd5363;margin:26px 0 0}.task-overlay{z-index:400}
@media(max-width:640px){.sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr))}.sidebar nav button{font-size:10px;padding-left:2px;padding-right:2px}.sidebar nav button svg{width:22px;height:22px}.theme-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.task-tools>*{max-width:100%}.task-tools .search{flex-basis:100%}.task-tools select{flex:1;min-width:0;font-size:14px}.task-summary{gap:12px;font-size:13px}.task-summary>.primary{width:100%;margin:0}.task-list{grid-template-columns:1fr}.task-form-grid{grid-template-columns:1fr}.task-drawer{padding:20px}.task-add-item{flex-wrap:wrap}.task-add-item input{flex:1 1 180px}}

.desktop-message-reactions{display:none}
@media(min-width:641px){
 .messages,.showchat .messages{background-image:var(--chat-pattern,url('/static/chat-backgrounds/sky-pattern.svg')),var(--chat-gradient,linear-gradient(135deg,#b4e4df,#92b5ef));background-size:640px 960px,100% 100%;background-repeat:repeat,no-repeat;background-position:center top,center}
 .task-overlay{align-items:center;justify-content:center;padding:24px}.task-overlay>.task-drawer{position:relative;inset:auto;margin:auto;width:760px;max-width:calc(100vw - 48px);height:auto;max-height:calc(100dvh - 48px);border-radius:22px;overflow-y:auto;box-shadow:0 24px 80px #202b3530}
 .task-member-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.task-member-fields h3{font-size:15px;margin-bottom:12px}.task-member-fields p{font-size:13px;margin:10px 0}.task-member-fields details{border:1px solid #dddfea;border-radius:10px;padding:10px}.task-member-fields summary{cursor:pointer;font-size:14px}.task-member-options{max-height:220px;overflow:auto;margin-top:8px}.task-fields .task-member-options label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:8px 0}.task-fields .task-member-options input{width:18px;height:18px;flex-shrink:0;accent-color:#0786ff}
}
@media(min-width:641px) and (hover:hover) and (pointer:fine){
 .messages .bubble{position:relative}.messages .bubble:hover,.messages .bubble:focus-within{z-index:2}.bubble:hover>.desktop-message-reactions,.bubble:focus-within>.desktop-message-reactions{display:flex}.desktop-message-reactions{position:absolute;right:8px;top:0;transform:translateY(-65%);align-items:center;gap:2px;background:#ffffffed;backdrop-filter:blur(12px);border:1px solid #e3eaf0;border-radius:24px;box-shadow:0 4px 18px #30415022;padding:5px;z-index:4}.desktop-message-reactions:after{content:'';position:absolute;left:0;right:0;top:100%;height:14px}.desktop-message-reactions button{position:relative;z-index:1;font-size:23px;width:34px;height:34px;border-radius:50%;padding:2px}.desktop-message-reactions button:hover{background:#e8f4ff;transform:scale(1.13)}
}
@media(max-width:640px){.task-member-fields{display:none}}

@media(min-width:641px) and (hover:hover) and (pointer:fine){.incoming>.desktop-message-reactions{left:8px;right:auto;width:max-content}}

/* Expanded desktop navigation; mobile destinations remain unchanged. */
.sidebar nav .desktop-extra-nav{display:none}
@media(min-width:641px){.sidebar nav .more-nav{display:none}.sidebar nav .desktop-extra-nav{display:flex}.sidebar nav{min-height:0;overflow-y:auto;flex:1}.sidebar .bottom{flex-shrink:0;padding-top:12px}.sidebar .bottom>button{margin-bottom:0}.sidebar .brand{flex-shrink:0}.sidebar .navlabel{flex-shrink:0}}

.desktop-message-actions{display:none}.section-tabs{width:max-content;max-width:100%;margin-bottom:24px}.support-links{display:flex;gap:16px;margin-top:24px}.support-links button{flex:1;text-align:left;font-size:18px}.support-dialog form{display:flex;flex-direction:column;gap:18px;margin:24px 0}.support-dialog input,.support-dialog select,.support-dialog textarea{font-size:16px;padding:16px;background:#f4f5f6}.efficiency-panel{max-width:760px;text-align:center}.efficiency-score{width:190px;height:190px;border-radius:50%;margin:30px auto;padding:14px}.efficiency-score strong{display:grid;place-items:center;background:white;width:100%;height:100%;border-radius:50%;font-size:40px}.efficiency-details{display:grid;grid-template-columns:1fr 1fr;gap:20px;text-align:left;margin-top:30px}.efficiency-details>div{padding:18px;background:#f5f8fa;border-radius:14px}.desktop-header-section{display:flex;align-items:center;gap:6px;color:#0786ff;font-size:13px}
@media(min-width:641px){.desktop-message-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.desktop-message-actions button{font-size:12px;color:#5682a8;padding:5px 7px;border-radius:6px;background:#ffffffb8}.desktop-message-actions button:hover{background:#ddebf7}}
@media(max-width:640px){.desktop-header-section{display:none}.support-links{flex-direction:column}.efficiency-details{grid-template-columns:1fr}}
@media(min-width:641px) and (max-width:1150px){.desktop-header-section span{display:none}.desktop-header-section{padding:8px}}
/* Desktop message menu and performance dashboard */
@media(min-width:641px){
 .desktop-message-actions{display:block;position:absolute;top:8px;right:8px;margin:0;z-index:12;opacity:0;pointer-events:none}
 .bubble:hover .desktop-message-actions,.bubble:focus-within .desktop-message-actions,.desktop-message-actions[open]{opacity:1;pointer-events:auto}
 .desktop-message-actions summary{list-style:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#ffffff70;backdrop-filter:blur(8px);cursor:pointer;color:#576979;letter-spacing:2px}
 .desktop-message-actions summary::-webkit-details-marker{display:none}
 .message-action-dropdown{position:absolute;right:0;top:36px;min-width:190px;background:#fffffff5;border:1px solid #e4eaef;border-radius:14px;box-shadow:0 8px 30px #212e3a25;padding:6px}
 .message-action-dropdown button{display:block;width:100%;text-align:left;font-size:14px;padding:11px;background:transparent}
 .bubble:has(.desktop-message-actions[open]){z-index:20}
 .desktop-header-section:has(.efficiency-header-percent){position:relative;padding-top:15px}
 .efficiency-header-percent{position:absolute;top:0;left:9px;font-size:11px;font-weight:700}
}
@media(max-width:640px){
 .mobile-conversation-root{background:transparent;pointer-events:none}
 .mobile-conversation-root>.conversation{pointer-events:auto;box-shadow:-8px 0 32px #18213a15}
 .mobile-conversation-root.interactive-back>.conversation{animation:none!important;transform:translateX(var(--swipe-x,0px));will-change:transform}
 .mobile-conversation-root.chat-closing>.conversation{animation:chat-return-list .36s cubic-bezier(.22,.7,.2,1) both}
 @keyframes chat-return-list{from{transform:translateX(var(--swipe-x,0px))}to{transform:translateX(100%)}}
}
.efficiency-dashboard{display:grid;gap:20px}.efficiency-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:20px}.efficiency-main h2,.efficiency-chart h2{font-size:21px;font-weight:500;padding-bottom:18px;border-bottom:1px solid #eee;margin-top:0}.efficiency-liquid{width:240px;height:240px;border:9px solid #e2f6ff;border-radius:50%;margin:30px auto;position:relative;overflow:hidden;background:#fff}.efficiency-water{position:absolute;bottom:0;width:100%;height:var(--level);background:linear-gradient(135deg,#def49a,#9edc4f);border-radius:45% 45% 0 0}.efficiency-liquid strong{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:64px;font-weight:300;color:#30333a}.efficiency-liquid strong small{font-size:36px;color:#92989d}.efficiency-main details{color:#8b929c;font-size:13px}.efficiency-main summary{text-align:right;cursor:pointer}.efficiency-counters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.efficiency-stat{border-radius:16px;color:white;display:flex;flex-direction:column;overflow:hidden}.efficiency-stat.blue{grid-column:1/-1;background:#45bee9}.efficiency-stat.green{background:#9cce00}.efficiency-stat.red{background:#ff5659}.efficiency-stat h3{font-size:17px;font-weight:500;background:#00000005;padding:18px;margin:0}.efficiency-stat strong{font-size:52px;font-weight:300;text-align:right;margin:auto 22px 22px}.efficiency-chart svg{width:100%;height:auto;min-height:180px}.efficiency-chart svg text{font-size:12px;fill:#8c95a1}.efficiency-chart>small{color:#969eaa}.efficiency-chart .empty{min-height:220px}
@media(max-width:800px){.efficiency-grid{grid-template-columns:1fr}.efficiency-stat{min-height:150px}.efficiency-liquid{width:200px;height:200px}}
@media(min-width:641px){.desktop-message-actions summary{padding:0;box-sizing:border-box}.desktop-message-actions:not([open])>.message-action-dropdown{display:none}.bubble{position:relative}}
.read-receipt{display:inline-flex;vertical-align:middle;margin-left:5px;color:#a2a7ae}.read-receipt.is-read{color:#20bff2}.read-receipt svg{stroke-width:2.3}.message-timestamp{white-space:nowrap}
@media(min-width:641px){
 .conversation .messages{padding:24px 30px 24px 90px;gap:7px}
 .conversation .messages .bubble{align-self:flex-start;margin-left:0;margin-right:auto;max-width:min(80%,760px);padding:10px 16px 7px;border:0;border-radius:15px;box-shadow:0 1px 2px #1638480c}
 .conversation .messages .bubble.own{background:#ecffd0}
 .conversation .messages .bubble.incoming{background:#fff}
 .conversation .messages .bubble p{font-size:17px;line-height:1.4;margin:0;white-space:pre-wrap}
 .conversation .messages .bubble>.message-timestamp{display:block;text-align:right;font-size:11px;color:#a5adb4;margin-top:2px;line-height:16px}
 .conversation .messages .bubble>.message-author{position:absolute;left:-70px;bottom:0;padding:0;margin:0;width:54px;height:54px;overflow:hidden;font-size:0}
 .conversation .messages .bubble>.message-author .message-avatar{width:54px;height:54px;border-radius:50%;font-size:16px}
 .conversation .messages .message-day{align-self:flex-end;background:#597e8180;color:white;padding:5px 16px;border-radius:20px;margin:12px 0;font-size:13px}
 .conversation .messages .bubble.video-note-bubble{background:transparent;padding:0;box-shadow:none}
 .conversation .messages .bubble.video-note-bubble>.message-timestamp{color:white;background:#597e8180}
 .conversation .desktop-message-actions{top:-8px;right:-12px}
}
@media(max-width:640px){
 .chatcontact,.chat-row-front,.chatcontact *{-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
 .chat-row-front .chatcontact:hover,.chat-row-front .chatcontact:active,.chat-row-front .chatcontact:focus{background:transparent;outline:none}
 .mobile-conversation-root .private-conversation .message-author{display:none}
 .mobile-conversation-root>.conversation{backface-visibility:hidden}
}
.section-title-mobile{display:none}
@media(min-width:641px){
 .messenger-heading{display:none!important}
 .messenger-content{padding-top:14px}
 .messenger-content .messenger{height:calc(100dvh - 125px);max-height:none;min-height:380px}
 .chat-list-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 12px}
 .chat-list-tools h2{display:block;margin:0;font-size:20px;letter-spacing:-.4px}
 .chat-list-tools>button{display:grid;place-items:center;flex-shrink:0;padding:6px}
}
@media(max-width:640px){
 .section-title-desktop{display:none}.section-title-mobile{display:inline}
 .sync-status{display:none!important}
 .title-connecting,.title-retry{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;font:inherit;letter-spacing:inherit}
 .title-retry{padding:0;color:#7d90a1}
 .title-connecting svg,.title-retry svg{flex-shrink:0}
}
@media(max-width:640px){.chat-list-tools .title-retry{display:inline-flex;width:auto;height:auto;color:inherit}}
.internet-call-buttons{display:inline-flex;align-items:center;gap:4px;flex-shrink:0}.internet-call-buttons button{padding:8px;color:#0786ff}.rtc-layer{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:#111827c9;backdrop-filter:blur(14px);padding:20px;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}.rtc-screen{background:linear-gradient(145deg,#272c49,#161c30);color:white;border-radius:28px;padding:24px;width:min(960px,100%);height:min(780px,95dvh);display:flex;flex-direction:column;align-items:center;overflow:hidden}.rtc-screen h2{margin:0;font-size:24px}.rtc-screen>p{margin:10px;color:#d6d9e5}.rtc-media{position:relative;flex:1;min-height:0;width:100%;border-radius:20px;overflow:hidden;background:#141b2a}.rtc-media>video{width:100%;height:100%;object-fit:contain}.rtc-media>.rtc-self{position:absolute;right:12px;bottom:12px;width:25%;height:30%;object-fit:cover;border-radius:12px;background:#202942;z-index:2}.rtc-media.audio-only>video{position:absolute;width:1px;height:1px;opacity:0}.rtc-avatar{position:absolute;inset:0;display:grid;place-items:center;font-size:100px;background:radial-gradient(circle,#0786ff,#232b45)}.rtc-controls{display:flex;justify-content:center;gap:14px;padding-top:22px}.rtc-controls button{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:50px;background:#ffffff20;min-width:52px;height:52px;padding:12px;color:white}.rtc-controls .rtc-end{background:#ed5267}.rtc-controls .rtc-accept{background:#32b579}.rtc-history{background:white;width:540px;max-width:100%;max-height:85dvh;overflow:auto;position:relative}.rtc-history article{padding:14px 0;border-bottom:1px solid #eee}.rtc-history article p{margin:7px 0}.rtc-close{position:absolute;top:16px;right:16px}.conversationhead>.internet-call-buttons{margin-left:auto}.rtc-media.audio-only{background:radial-gradient(circle,#0786ff,#232b45)}
@media(max-width:640px){.rtc-layer{padding:8px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}.rtc-screen{height:100%;border-radius:20px;padding:16px}.rtc-screen h2{font-size:20px}.internet-call-buttons{gap:0}.internet-call-buttons button{padding:5px}.conversationhead>div{min-width:0}.conversationhead strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;max-width:100%}}
.profile-phone{display:flex;align-items:center;gap:10px}.profile-phone>a{display:inline-flex;padding:5px;color:#0786ff}.call-event{background:#ffffffed;border-radius:22px;padding:14px 18px 8px;max-width:min(94%,460px);align-self:flex-start;box-shadow:0 1px 3px #26304910}.call-event.own{align-self:flex-end;background:#ebf6fff2}.call-event>button{display:flex;align-items:center;gap:14px;text-align:left;padding:0;width:100%}.call-event-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#ffffffb0;color:#e93459;flex-shrink:0}.call-event.completed .call-event-icon{color:#35ae8c}.call-event strong{display:block;font-size:16px;line-height:1.35}.call-event small{display:block;font-size:13px;margin-top:4px;color:#8b8f99}.call-event time{display:block;text-align:right;font-size:11px;color:#999eaa;margin-top:7px}.call-event:target{outline:2px solid #0786ff}
@media(min-width:641px){.call-event.own{align-self:flex-start;background:#ecffd0}}
.rtc-phase{display:flex;align-items:center;justify-content:center;gap:9px;min-height:24px}.rtc-enable-sound{display:flex;align-items:center;gap:8px;color:white;background:#ffffff20;padding:9px 14px;border-radius:20px;margin-bottom:10px}

.rtc-screen{position:relative}.rtc-controls{flex-wrap:wrap;gap:10px}.rtc-audio-panel{position:absolute;z-index:5;bottom:86px;right:16px;left:16px;margin:auto;max-width:440px;max-height:65%;overflow:auto;padding:18px;border-radius:20px;background:#f8f9ff;color:#252e47;box-shadow:0 12px 50px #0006}.rtc-audio-panel header{display:flex;align-items:center;justify-content:space-between}.rtc-audio-panel label{display:grid;gap:8px;margin:14px 0;font-size:15px}.rtc-audio-panel select{width:100%;min-height:44px;background:white;color:#252e47;border:1px solid #ccd1e0;border-radius:10px;padding:8px}.rtc-audio-panel p{font-size:14px;line-height:1.5}.rtc-controls .rtc-audio-panel button{height:auto;min-height:40px;border-radius:10px;background:#e4eff8;color:#30495f;font-size:14px}.rtc-audio-panel button:disabled{opacity:.5}

.rtc-notice{box-sizing:border-box;width:min(380px,100%);min-width:0;max-height:70dvh;height:auto;overflow:auto;border-radius:22px;padding:24px;background:#fff;color:#273049;box-shadow:0 18px 60px #0003}.rtc-notice p{margin:0 0 18px;line-height:1.5;overflow-wrap:anywhere}.rtc-notice .primary{width:auto;min-width:110px;min-height:44px;padding:10px 22px}.rtc-enable-sound{display:flex;align-items:center;gap:8px;color:white;background:#ffffff20;border-radius:14px;padding:10px 16px;margin-bottom:10px}
/* Stable photo frames, calm connection status and readable messenger typography. */
.connection-spinner{display:inline-block;width:19px;height:19px;border:2px solid #dbe2e9;border-top-color:#85a3be;border-radius:50%;flex-shrink:0;animation:connection-turn 1.4s linear infinite}
@keyframes connection-turn{to{transform:rotate(360deg)}}
.bubble{flex-shrink:0;touch-action:pan-y;transition:transform .16s ease-out}
.bubble.reply-swiping{transition:none}
.bubble.reply-swiping::after{content:'↩';position:absolute;right:-35px;top:40%;font-size:25px;color:#6a8caa}
.message-attachment .chat-photo-preview{display:block;padding:0;width:300px;max-width:100%;height:240px;overflow:hidden;border-radius:12px;background:#e8eaf0;touch-action:pan-y}
.message-attachment .chat-photo-preview img{display:block;width:100%;height:240px;max-height:none;object-fit:contain;border-radius:0}
.conversation,.photo-viewer{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
.conversation .bubble p{color:#14181c;font-size:16px;font-weight:400;line-height:1.35;letter-spacing:0}
.conversation .bubble .reply-quote{color:#53666d;font-size:14px}
.conversation .bubble .message-timestamp{color:#6d7780;font-size:11px}
.conversation .bubble .message-author{color:#4c626c}
@media(max-width:640px){.conversation .bubble p,.showchat .bubble p{font-size:17px;line-height:1.32}.message-attachment .chat-photo-preview{width:280px;height:224px}.message-attachment .chat-photo-preview img{height:224px}}
.photo-viewer{position:fixed;inset:0;z-index:20000;background:#000;color:white;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);overscroll-behavior:contain}
.photo-viewer header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding:8px 12px;min-height:64px}
.photo-viewer header button,.photo-viewer header a{display:grid;place-items:center;width:48px;height:48px;color:white;text-decoration:none}
.photo-viewer header span{font-size:18px;font-weight:500}.photo-viewer-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;touch-action:none}
.photo-viewer-stage img{display:block;width:100%;height:100%;object-fit:contain}.photo-viewer footer{text-align:center;padding:16px;font-size:14px;color:#ddd;overflow-wrap:anywhere;flex-shrink:0}
@media(prefers-reduced-motion:reduce){.connection-spinner{animation-duration:3s}.bubble{transition:none}}
/* Photo viewer toolbar is isolated from the global application header. */
.photo-viewer{isolation:isolate;background:#000;color:#fff}
.photo-viewer-toolbar{display:grid;grid-template-columns:48px minmax(0,1fr) 48px 48px;align-items:center;gap:8px;flex:0 0 64px;padding:8px 12px;background:#000;color:#fff;border:0;position:relative;z-index:2}
.photo-viewer-toolbar>span{color:#fff;text-align:center;font-size:17px;line-height:1.2}
.photo-viewer-toolbar>button,.photo-viewer-toolbar>a{display:grid;place-items:center;width:48px;height:48px;padding:0;margin:0;background:transparent;color:#fff;border:0;text-decoration:none;opacity:1;visibility:visible}
.photo-viewer-toolbar svg{display:block;width:28px;height:28px;stroke:currentColor;flex-shrink:0}
.photo-viewer-caption{flex-shrink:0;text-align:center;padding:14px 18px;color:#ddd;font-size:14px;overflow-wrap:anywhere;background:#000}
/* Each attachment reserves its actual aspect ratio, without letterboxing. */
.message-attachment .chat-photo-preview{height:auto;max-width:100%;background:transparent;border-radius:13px;overflow:hidden}
.message-attachment .chat-photo-preview img{width:100%;height:auto;max-height:none;object-fit:initial;border-radius:0;aspect-ratio:inherit}
.messages .bubble.photo-bubble{padding:3px;border:0;position:relative}
.messages .bubble.photo-bubble .message-attachment{margin:0}
.messages .bubble.photo-bubble .message-copy{margin:5px 7px}
.messages .bubble.photo-only .message-copy{margin:0;position:static;min-height:0}
.messages .bubble.photo-only .message-timestamp{position:absolute;right:9px;bottom:8px;background:#0006;color:#fff;padding:2px 6px;border-radius:9px;font-size:11px;line-height:16px}
.messages .bubble.photo-only .read-receipt{color:#fff}
.message-copy{position:relative;min-height:17px}
.message-copy>p::after{content:'';display:inline-block;width:45px;height:1px}
.message-copy.is-own>p::after{width:66px}
.message-copy.is-edited>p::after{width:118px}
.conversation .bubble .message-copy>p{margin:0}
.conversation .bubble .message-copy>.message-timestamp{position:absolute;bottom:0;right:0;display:inline-flex;align-items:center;line-height:16px;margin:0;font-size:11px;white-space:nowrap;color:#85898c}
.conversation .bubble.own .message-copy>.message-timestamp{color:#368ca9}
.conversation .bubble.photo-only .message-copy>.message-timestamp{bottom:8px;right:9px;color:#fff}
.message-reactions:empty{display:none}
.message-reply-indicator{display:none}
.bubble.reply-swiping::after{content:none}
@media(max-width:640px){
 .conversation .messages{overflow-x:hidden;overscroll-behavior-x:none;gap:8px;padding:10px 6px}
 .conversation .messages .bubble{position:relative;max-width:94%;padding:8px 10px 7px;border:0;border-radius:15px;box-shadow:none;flex-shrink:0;touch-action:pan-y}
 .conversation .messages .bubble.incoming{background:#fff;border-bottom-left-radius:5px}
 .conversation .messages .bubble.own{background:#e7fbff;border-bottom-right-radius:5px}
 .conversation .messages .bubble .message-copy>p{font-size:17px;line-height:1.3;color:#10191d;margin:0}
 .conversation .messages .bubble.photo-bubble{padding:3px}
 .conversation .messages .bubble.video-note-bubble{padding:0;background:transparent}
 .conversation .messages .bubble.video-note-bubble .message-copy>.message-timestamp{position:relative;width:max-content;display:flex;margin:-22px 0 0 auto;padding:2px 7px;border-radius:10px;background:#0005;color:#fff}
 .conversation .messages .bubble>.message-actions{display:none}
 .conversation .messages .bubble.reply-swiping{transition:none;will-change:transform}
 .bubble.reply-swiping>.message-reply-indicator{position:absolute;right:-50px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#3b9fc9cc;color:#fff;pointer-events:none}
 .message-reply-indicator svg{width:20px;height:20px;fill:currentColor;stroke:none}
 .message-day time{background:#459bb6a6;color:#fff;border-radius:12px;padding:3px 8px;font-size:12px}
}
/* Compact messenger call cards. */
.conversation .messages .call-event{position:relative;flex-shrink:0;align-self:flex-start;width:max-content;max-width:94%;min-width:235px;padding:10px 12px 10px 10px;border:0;border-radius:18px 18px 18px 5px;background:#fff;box-shadow:none}
.conversation .messages .call-event.own{align-self:flex-end;border-radius:18px 18px 5px 18px;background:#e7fbff}
.conversation .messages .call-event>button{display:flex;gap:12px;align-items:center;padding:0;text-align:left;width:100%}
.conversation .messages .call-event-icon{position:relative;width:54px;height:54px;flex:0 0 54px;border-radius:16px;background:#d6f3fa;color:#168eb8}
.conversation .messages .call-event-icon>svg{width:28px;height:28px;stroke-width:2.6}
.conversation .messages .call-event-cross{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:15px;height:15px;border-radius:5px;background:#d6f3fa;color:inherit}
.conversation .messages .call-event-cross svg{stroke-width:3.5}
.conversation .messages .call-event.incoming.missed .call-event-icon{color:#e65b61;background:#fff0f1}
.conversation .messages .call-event.incoming.missed .call-event-cross{background:#fff0f1}
.call-event-body{display:block;min-width:0}
.conversation .messages .call-event strong{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;font-weight:550;color:#10242c;line-height:1.3}
.call-event-subtitle{display:block;font-size:16px;line-height:1.4;color:#748d94;margin-top:3px;padding-right:76px}
.call-event-meta{position:absolute;bottom:9px;right:12px;display:flex;align-items:center;gap:5px;color:#328cac;font-size:11px;line-height:16px}
.conversation .messages .call-event-meta time{display:inline;margin:0;font-size:11px;line-height:16px;color:inherit}
/* Reactions remain inside the bubble; the time sits at the bottom right. */
.conversation .bubble .message-reactions{gap:5px;margin-top:6px}
.conversation .bubble .message-reactions .reaction-chip{min-height:28px;min-width:0;height:28px;padding:3px 10px;gap:5px;border:0;border-radius:18px;background:#dcf1f6;font-size:18px;color:#258eb5;box-shadow:none}
.conversation .bubble .message-reactions .reaction-chip.mine{background:#c9edf5}
.conversation .bubble .message-reactions .reaction-chip small{font-size:13px;font-weight:600;color:#258eb5;line-height:18px}
.conversation .bubble:not(.video-note-bubble):has(>.message-reactions:not(:empty)) .message-copy{position:static}
.conversation .bubble:not(.video-note-bubble):has(>.message-reactions:not(:empty)) .message-copy>p::after{display:none}
.conversation .bubble:not(.video-note-bubble):has(>.message-reactions:not(:empty)) .message-copy>.message-timestamp{bottom:8px;right:10px}
.conversation .bubble:not(.video-note-bubble):has(>.message-reactions:not(:empty))>.message-reactions{padding-right:70px}
.conversation .bubble:has(.message-copy.is-edited)>.message-reactions{padding-right:122px}
/* Glass action menu, with the existing floating emoji bar retained. */
.message-context-backdrop{background:#10242b42;backdrop-filter:none;-webkit-backdrop-filter:none}
.message-context .context-reactions{order:0}
.message-context .context-actions{order:1;align-self:flex-end;width:min(280px,100%);border-radius:28px;padding:10px 16px;background:linear-gradient(145deg,#e9fbffed,#c1e9f4e8);border:1px solid #ffffffb0;box-shadow:0 10px 34px #224f6526;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.message-context .context-actions button{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:17px;line-height:1.25;min-height:44px;padding:10px 6px;gap:14px;color:#111b20}
.message-context .context-actions button svg{flex:0 0 22px;width:22px;height:22px;stroke-width:2}
.message-context .context-actions button.danger{color:#f04747}
.message-context .context-actions .context-select{border-top:1px solid #6297a833;margin-top:6px;padding-top:16px}
.message-context .context-message{order:2;align-self:flex-start;max-width:100%;background:#fff;border-radius:17px 17px 17px 5px;padding:10px 12px;box-shadow:0 3px 12px #16455615;max-height:24dvh;overflow:auto;flex-shrink:0}
.message-context .context-message.own{align-self:flex-end;background:#e7fbff;border-radius:17px 17px 5px 17px}
.message-context .context-message p{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:17px;line-height:1.35;color:#10242c}
.message-context .context-message time{font-size:11px;color:#328cac}
.message-context .context-close{order:4;align-self:flex-end;color:#fff}
.message-context .context-error{order:3}
.photo-viewer-toolbar>button:disabled{opacity:.45;cursor:wait}
.photo-retry{display:block;margin:8px auto 0;color:#fff;text-decoration:underline;padding:8px}
@media(prefers-reduced-transparency:reduce){.message-context .context-actions{background:#def2f8;backdrop-filter:none}}
/* Hold-to-send voice recording with slide-to-lock and pause/resume. */
.composer-modern{position:relative;overflow:visible}
.voice-recorder{position:static;flex-shrink:0;width:38px;align-self:center}
.voice-record-button{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;position:relative;z-index:13}
.voice-record-panel{position:absolute;inset:0;z-index:11;background:#e8f0f7;padding:8px 16px;display:flex;flex-direction:column;justify-content:center;border-radius:0}
.voice-record-line{display:flex;align-items:center;gap:10px;min-height:44px;padding-right:45px;white-space:nowrap;color:#18202a}
.voice-record-line>i{width:7px;height:7px;border-radius:50%;background:#ef8e9c;flex-shrink:0;animation:voice-dot 1.6s ease-in-out infinite}
.voice-record-line>i.paused{animation:none;opacity:.5}
.voice-record-line time{font-size:17px;font-weight:550;font-variant-numeric:tabular-nums}
.voice-cancel-hint{display:flex;align-items:center;gap:3px;margin-left:auto;font-size:15px;color:#858b91}
.voice-recorder.is-recording:not(.is-locked) .voice-record-button{background:#0786ff;color:white;width:76px;height:76px;border-radius:50%;margin-left:-32px;box-shadow:0 0 0 10px #0786ff20;display:grid;place-items:center}
.voice-lock-hint{position:absolute;right:10px;bottom:calc(100% + 20px);display:flex;flex-direction:column;align-items:center;gap:5px;padding:13px 12px;border-radius:24px;background:white;box-shadow:0 2px 12px #526d7520;color:#0786ff;z-index:12}
.voice-recorder.is-locked .voice-record-button{visibility:hidden;pointer-events:none}
.composer-modern:has(.voice-recorder.is-locked){min-height:108px}
.voice-recorder.is-locked .voice-record-panel{padding:6px 10px}
.voice-recorder.is-locked .voice-record-line{padding:5px 12px;background:#cfe5f7;border-radius:14px;min-height:36px}
.voice-record-wave{display:flex;flex:1;justify-content:space-between;align-items:center;gap:2px;height:22px;overflow:hidden;color:#2188df}
.voice-record-wave i{display:block;width:2px;flex-shrink:0;background:currentColor;border-radius:2px;animation:voice-wave 1s ease-in-out infinite alternate}
.voice-record-wave.paused i{animation-play-state:paused;opacity:.5}
.voice-locked-controls{display:flex;justify-content:space-between;align-items:center;padding:4px 4px 0}
.voice-locked-controls button{display:grid;place-items:center;width:44px;height:44px;padding:8px;color:#0786ff}
.voice-locked-controls button:first-child{color:#f14e60}
.voice-locked-controls .voice-send{border-radius:50%;background:#0786ff;color:white;width:36px;height:36px}
@keyframes voice-dot{50%{opacity:.35}}@keyframes voice-wave{to{transform:scaleY(.4)}}
.conversation-person-avatar{display:block;flex-shrink:0;padding:0;background:transparent;border:0}
.conversationhead .conversation-person-avatar,.conversationhead .conversation-person-name{-webkit-tap-highlight-color:transparent;filter:none!important;background:transparent!important;transition:none;opacity:1}
.conversationhead .conversation-person-avatar:focus-visible,.conversationhead .conversation-person-name:focus-visible{outline:2px solid #5aa6ed;outline-offset:3px;border-radius:8px}
/* Dialog list: round avatars, readable previews, subtle pinned background. */
.chat-search-reveal{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .22s ease,opacity .22s ease;overflow:hidden}
.chat-search-reveal>.message-search{min-height:0;overflow:hidden;margin-top:0;margin-bottom:0}
.chat-search-reveal.open{grid-template-rows:1fr;opacity:1;padding-bottom:8px}
.chat-search-reveal .message-search input{font-size:16px}
.chat-filter-tabs{display:flex;gap:22px;padding:0 16px;min-height:42px;border-bottom:1px solid #f0f1f4}
.chat-filter-tabs button{position:relative;padding:8px 1px 12px;font-size:16px;color:#777;display:flex;align-items:center;gap:6px}
.chat-filter-tabs button[aria-pressed=true]{color:#101114}
.chat-filter-tabs button[aria-pressed=true]::after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:3px 3px 0 0;background:#0985ff}
.chat-filter-tabs span{font-size:13px;padding:2px 6px;background:#e8e8ea;border-radius:12px}
.chat-last-read{display:flex;align-items:center;color:#1489f6;flex-shrink:0}
.chatcontact.is-pinned{background:#f6f8fa}
.chatlist .chat-list-tools h2{color:#101114;font-size:26px;letter-spacing:-.5px;font-weight:700}
.chatlist .chat-list-tools>button{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#f0f2f4;color:#222;transition:background .2s ease,transform .2s ease;-webkit-tap-highlight-color:transparent}
.chatlist .chat-list-tools>button[aria-expanded=true]{background:#e2f1ff;color:#0786ff}
@media(max-width:640px){
 .chatlist .chat-list-tools{padding:12px 16px 10px}
 .chatlist .chat-list-tools h2{display:block;font-size:26px}
 .chatlist .swipe-chat-row{border:0;margin:0}
 .chatlist .chat-row-front .chatcontact{position:relative;padding:13px 12px;gap:12px;min-height:88px;border-radius:0;-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
 .chatlist .chatcontact>.personavatar{width:56px;height:56px;border-radius:50%;font-size:21px;background:linear-gradient(145deg,#8dcaff,#3081df);color:#fff}
 .chatlist .chatcontact .personavatar img{border-radius:50%}
 .chatlist .chatcontact .notes-avatar{background:#0786ff;color:white}
 .chatlist .chatcontact>div{flex:1;min-width:0}
 .chatlist .chatcontact strong{font-size:17px;line-height:1.3;font-weight:600;color:#101114}
 .chatlist .chat-title-line{gap:5px;padding-right:15px}
 .chatlist .chat-title-line time{font-size:12px;color:#85858a}
 .chatlist .chatcontact .last-message-preview{font-size:16px;line-height:1.35;color:#828287;margin-top:5px;padding-right:20px}
 .chatlist .chatcontact .unread-badge{position:absolute;right:12px;bottom:17px;background:#0786ff!important;font-size:12px;min-width:22px;height:22px}
 .chatlist .chatcontact .chat-pin{position:absolute;right:10px;top:17px;width:13px;height:13px;color:#aaa;fill:#aaa}
 .chatlist .chatcontact>svg:not(.chat-pin){position:absolute;right:12px;bottom:42px;width:13px;height:13px;color:#aaa}
 .chatlist .all-chats-button{font-size:12px;padding:6px 16px;color:#8b929b}
}
.ready-avatars{margin:16px 0;padding:14px;background:#f4f7fb;border:1px solid #e3eaf3;border-radius:20px}
.ready-avatars-title{display:flex;align-items:center;justify-content:space-between;color:#25364a;font-size:16px}
.ready-avatars-title button{display:grid;place-items:center;width:32px;height:32px}
.ready-avatar-tabs{display:flex;gap:6px;margin:12px 0}
.ready-avatar-tabs button{padding:7px 12px;font-size:13px;border-radius:15px;color:#687b8c}
.ready-avatar-tabs button[aria-pressed=true]{background:#d9ebff;color:#087cf0}
.ready-avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:370px;overflow:auto;padding:3px}
.ready-avatar-grid button{padding:3px;border:2px solid transparent;border-radius:50%;aspect-ratio:1;overflow:hidden}
.ready-avatar-grid button[aria-pressed=true]{border-color:#0786ff;background:#cee8ff}
.ready-avatar-grid img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.ready-avatar-use{margin-top:14px;width:100%}
@media(prefers-reduced-motion:reduce){.chat-search-reveal,.chatlist .chat-list-tools>button{transition:none}.voice-record-line>i,.voice-record-wave i{animation:none}}
/* Group creation, private channels and attachment sheets. */
.chatlist .chat-list-tools h2{flex:1}.chatlist .chat-list-tools>button.chat-create-button{background:#0786ff;color:#fff;border-radius:15px;width:44px;height:44px;flex:0 0 44px;margin-left:9px}
.group-backdrop,.attach-backdrop{position:fixed;inset:0;z-index:1500;background:#14233255;display:flex;align-items:flex-end;justify-content:center;overscroll-behavior:contain}
.group-sheet,.attach-sheet{width:min(100%,520px);max-height:90dvh;background:#fff;border-radius:28px 28px 0 0;padding:20px 20px max(20px,env(safe-area-inset-bottom));box-shadow:0 -8px 40px #17304d20;overflow:auto;color:#14202b}
.group-sheet-head,.attach-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.group-sheet-head h2,.attach-head h2{font-size:22px;margin:0}.group-sheet-head button,.attach-head button{display:grid;place-items:center;width:42px;height:42px;border:0;background:transparent;color:inherit}
.create-chat-options{display:grid;gap:8px;margin:16px 0}.create-chat-options button{display:flex;align-items:center;gap:20px;padding:18px 8px;text-align:left;color:#0786ff;font-size:20px;background:none;border:0}.create-chat-options svg{width:28px;height:28px;flex-shrink:0}
.group-name{display:grid;gap:8px;margin:20px 0}.group-name input,.contact-search{padding:12px;border:1px solid #e4e9ef;border-radius:12px;width:100%;font-size:17px}.group-members{max-height:43dvh;overflow:auto;margin:15px 0}.group-members label{display:flex;align-items:center;gap:12px;padding:10px 0}.group-members label span:nth-child(2){flex:1}.group-members input,.group-video input{width:20px;height:20px;accent-color:#0786ff}.group-members .personavatar{flex:0 0 42px;width:42px;height:42px;border-radius:50%}.group-create{width:100%;justify-content:center}.group-hint{color:#71818a;font-size:14px}.group-profile{text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px;padding:24px}.group-profile>.personavatar{width:104px;height:104px;font-size:36px;border-radius:50%}.group-profile h2{margin:0}.channel-readonly{padding:20px;text-align:center;color:#78858e;margin:0}
.group-call-screen{position:fixed;inset:0;z-index:1800;background:#132531;color:white;padding:max(24px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px;overflow:auto}.group-call-head{text-align:center}.group-call-head h2{margin:0;font-size:23px;color:inherit}.group-call-head p{margin:8px}.group-call-grid{flex:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;align-content:center}.group-call-grid>div{position:relative;background:#264453;border-radius:20px;overflow:hidden;min-height:120px}.group-call-grid video{width:100%;height:100%;max-height:40dvh;object-fit:cover}.group-call-grid span{position:absolute;bottom:10px;left:10px;background:#152532a0;padding:5px 10px;border-radius:12px}.group-call-controls{display:flex;justify-content:center;gap:20px}.group-call-controls button{width:56px;height:56px;border-radius:50%;background:#ffffff25;color:white;border:0;display:grid;place-items:center}.group-call-controls .hangup{background:#f44858}.group-call-invite{position:fixed;top:max(14px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(94%,460px);z-index:1700;background:#fff;color:#172a34;border-radius:22px;padding:16px;box-shadow:0 6px 30px #14233244;display:flex;align-items:center;gap:12px}.group-call-invite>div{flex:1}.group-call-invite small{display:block;margin-top:5px}.group-call-invite button{color:#0786ff;background:none;border:0}
.attach-sheet{padding:8px 0 max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden;min-height:50dvh}.sheet-handle{display:block;background:#bfc0c3;width:38px;height:5px;border-radius:5px;margin:0 auto 6px;flex-shrink:0}.attach-head{padding:4px 18px 12px;flex-shrink:0}.attach-head h2{font-size:21px}.attach-body{overflow:auto;min-height:180px;flex:1}.attach-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.attach-grid button{aspect-ratio:1;position:relative;border:0;border-radius:0;overflow:hidden;background:#edf3f6;color:#177fad;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:13px}.attach-grid .attach-camera{background:#456573;color:white}.attach-tile img,.attach-tile video{width:100%;height:100%;object-fit:cover}.attach-tile>span{word-break:break-word;padding:10px}.attach-tile>i{position:absolute;right:7px;top:7px;width:25px;height:25px;border-radius:50%;border:2px solid white;background:#32434a66;box-shadow:0 0 0 1px #53636d66;display:grid;place-items:center;color:white}.attach-tile>i.selected{background:#0786ff}.attach-hint{padding:20px;text-align:center;color:#7b858e;font-size:14px}.attach-tabs{display:flex;flex-shrink:0;border-top:1px solid #e9eef2;padding:12px 5px 4px;background:#fbfcfd}.attach-tabs button{display:flex;flex:1;flex-direction:column;align-items:center;gap:6px;background:none;border:0;color:#90969b;font-size:13px}.attach-tabs button.active{color:#0786ff}.attach-send{margin:12px 18px;flex-shrink:0;justify-content:center}.attach-location{text-align:center;padding:30px 20px}.attach-contacts button{display:flex;align-items:center;gap:14px;padding:16px 20px;width:100%;background:none;border:0;text-align:left}.attach-contacts small{display:block;color:#7b858e}.contact-search{width:calc(100% - 32px);margin:10px 16px}.attach-sheet .formerror{margin:12px 20px}
/* Emoji-only messages reserve a separate pill for delivery time. */
.conversation .bubble.emoji-only{background:transparent!important;box-shadow:none!important;border:0!important;padding:10px 4px 6px!important;min-width:110px}.conversation .bubble.emoji-only:before,.conversation .bubble.emoji-only:after{display:none}.bubble.emoji-only .message-copy p{font-size:76px!important;line-height:1.2!important;padding:0!important;margin:0!important;text-align:center}.bubble.emoji-only.emoji-count-2 .message-copy p{font-size:64px!important}.bubble.emoji-only.emoji-count-3 .message-copy p{font-size:54px!important}.bubble.emoji-only .message-copy p:after{display:none!important}.bubble.emoji-only .message-copy{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.bubble.emoji-only .message-timestamp{position:static!important;align-self:flex-end;background:#288daf66;color:white!important;padding:3px 8px;border-radius:15px;font-size:11px}.bubble.emoji-only .message-actions{display:none}
.voice-recorder.is-recording:not(.is-locked) .voice-record-panel{padding-left:12px;padding-right:94px;overflow:visible}.voice-recorder.is-recording:not(.is-locked) .voice-record-line{padding-right:0;gap:7px;justify-content:flex-start}.voice-recorder.is-recording:not(.is-locked) .voice-record-line time{font-size:16px;flex-shrink:0;letter-spacing:-.4px}.voice-cancel-hint{min-width:0;flex-shrink:0;font-size:14px;white-space:nowrap;margin-left:auto;overflow:visible;color:#87949e}.voice-cancel-hint svg{flex-shrink:0;width:16px}
@media(max-width:360px){.voice-recorder.is-recording:not(.is-locked) .voice-record-panel{padding-right:83px;padding-left:8px}.voice-recorder.is-recording:not(.is-locked) .voice-record-line{gap:4px}.voice-recorder.is-recording:not(.is-locked) .voice-record-line time{font-size:14px}.voice-cancel-hint{font-size:12px}}
@media(min-width:641px){.group-backdrop,.attach-backdrop{align-items:center}.group-sheet,.attach-sheet{border-radius:24px;max-height:85dvh}}

.group-enable-sound{position:absolute;inset:30% 10%;background:#fff;color:#1676bd;border:0;border-radius:20px;z-index:2;padding:12px}
/* Shared chat chrome: round avatar, compact presence and soft composer. */
.conversation .conversationhead{display:flex;align-items:center;gap:9px;min-height:68px;padding:10px 14px;background:#f5fcff;color:#101213;border:0;box-shadow:0 1px 0 #d9e7ef40;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.conversation .conversationhead .chatback{display:grid;place-items:center;flex:0 0 29px;width:29px;height:44px;padding:0;color:inherit;background:transparent;border:0;margin:0}
.conversation .conversationhead .conversation-person-avatar{flex:0 0 42px;width:42px;height:42px;padding:0;border-radius:50%;overflow:hidden}
.conversation .conversationhead .personavatar,.conversation .conversationhead .conversation-avatar{width:42px;height:42px;min-width:42px;border-radius:50%;object-fit:cover;font-size:15px}
.conversation .conversationhead>.conversation-identity{flex:1 1 0;min-width:0;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:3px}
.conversation .conversationhead .conversation-person-name{width:100%;display:block;text-align:left;min-width:0;padding:0;margin:0;border:0;color:#101213;line-height:1.2;font:inherit;opacity:1}
.conversation .conversationhead .conversation-person-name strong{font-size:17px;line-height:22px;font-weight:600;letter-spacing:-.3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.conversation .conversationhead .conversation-last-seen{display:block;font-size:13px;line-height:17px;font-weight:400;color:#60686d;margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:0}
.conversation .conversationhead>.conversation-tools{display:flex;align-items:center;gap:2px;flex:0 0 auto;min-width:0;margin-left:2px}
.conversation-tools .internet-call-buttons{gap:2px;display:flex}.conversation .conversationhead .conversation-tools button{display:grid;place-items:center;flex-shrink:0;width:36px;height:44px;border:0;padding:5px;background:transparent;color:#101213;-webkit-tap-highlight-color:transparent}
.conversation-tools button:focus-visible{outline:2px solid #1595e7;outline-offset:-2px;border-radius:10px}
.conversation .composer-slot,.conversation .messenger-composer{background:#e7eff5}
.conversation .composer.composer-modern{display:flex;align-items:flex-end;padding:9px 10px;gap:8px;background:#e7eff5;border:0;min-height:62px}
.conversation .composer-modern .composer-text-pill{display:flex;align-items:flex-end;flex:1 1 0;min-width:0;border-radius:21px;background:#fff;padding:0 4px 0 13px;box-shadow:none}
.conversation .composer-modern .composer-text-pill textarea{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:18px!important;line-height:24px;padding:10px 0!important;font-weight:400;letter-spacing:0;color:#17222a;resize:none}
.conversation .composer-modern .composer-text-pill textarea::placeholder{color:#858585;opacity:1}
.conversation .composer-modern .composer-icon,.conversation .composer-modern .composer-emoji-toggle{display:grid;place-items:center;flex-shrink:0;width:34px;min-width:34px;height:44px;padding:0;border:0;color:#5e6468;background:transparent;-webkit-tap-highlight-color:transparent}
.conversation .composer-modern .composer-emoji-toggle{width:36px;min-width:36px;margin-left:2px}
.conversation .composer-modern .voice-recorder{width:34px}
.conversation .composer-modern .primary{display:grid;place-items:center;background:#0786ff;color:white;border-radius:50%;padding:8px;box-shadow:none;width:40px;min-width:40px;height:40px;margin-bottom:2px}
.conversation .composer-modern .voice-recorder.is-recording:not(.is-locked) .voice-record-button{width:76px;height:76px;min-width:76px;margin-left:-42px;background:#0786ff;color:white;border-radius:50%;box-shadow:0 0 0 10px #0786ff20}
.conversation .voice-record-panel{background:#e7eff5}.conversation .voice-lock-hint{right:10px}
.round-video>[data-reply-swipe]{touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
@media(max-width:640px){
 .mobile-conversation-root{background:linear-gradient(#f5fcff 0 50%,#e7eff5 50% 100%)}
 .mobile-conversation-root .conversationhead{min-height:64px;padding:8px 8px 8px 5px;gap:7px}
 .mobile-conversation-root .conversationhead .chatback{width:28px;flex-basis:28px}
 .mobile-conversation-root .conversationhead .conversation-person-avatar,.mobile-conversation-root .conversationhead .personavatar,.mobile-conversation-root .conversationhead .conversation-avatar{width:40px;height:40px;min-width:40px;flex-basis:40px}
 .mobile-conversation-root .conversationhead>.conversation-tools{gap:0;margin-left:0}
 .mobile-conversation-root .conversation-tools .internet-call-buttons{gap:0}
 .mobile-conversation-root .conversationhead .conversation-tools button{width:35px;padding:4px}
 .mobile-conversation-root .composer.composer-modern{padding:8px 8px;gap:6px;min-height:60px}
 .mobile-conversation-root .composer-modern .composer-text-pill textarea{font-size:18px!important}
 .mobile-conversation-root .composer-slot:has(.voice-recorder.is-recording) .composer-wrap{overflow:visible}
}
@media(max-width:360px){
 .mobile-conversation-root .conversationhead{gap:5px}
 .mobile-conversation-root .conversationhead .conversation-tools button{width:30px;padding:3px}
 .mobile-conversation-root .conversationhead .conversation-tools svg{width:24px;height:24px}
 .mobile-conversation-root .conversationhead .conversation-person-name strong{font-size:16px}
 .mobile-conversation-root .composer.composer-modern{gap:4px;padding-left:6px;padding-right:6px}
 .mobile-conversation-root .composer-modern .composer-icon{width:30px;min-width:30px}
}
/* Blue workspace theme, shared with the messenger. */
:root{--accent:#0786ff;--accent-soft:#e7f3ff;--ink:#17232c;--muted:#75818a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;accent-color:var(--accent)}
body,button,input,textarea,select{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{color:var(--ink)}
.primary,button.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:none}.primary:hover{background:#0877df}.secondary,.editprofile,.morecard>svg,.tabs button.chosen,.viewtabs button.chosen{color:#0786ff}.secondary{border-color:#d8eafa}.sidebar nav button.active{color:#0786ff;background:#eaf4ff}.personavatar,.personavatar.large,.headerprofile .personavatar,.personavatar img{border-radius:50%!important}.personavatar{background:#e3f2ff;color:#3688cd}.personavatar img{object-fit:cover}
.content label,.drawer label{font-size:14px}.content input,.content textarea,.content select,.drawer input,.drawer textarea,.drawer select{font-size:16px}.content .primary,.content .secondary,.drawer .primary,.drawer .secondary{font-size:14px}.content .panel p,.content .morecard p{font-size:14px;line-height:1.5}.content table{font-size:14px}.content .card h3{font-size:16px}.content .stat>span{font-size:14px}.content .stat>small{font-size:13px}.content .morecard h3{font-size:17px}
.persondrawer{background:radial-gradient(ellipse at 0 0,#e5fbff 0,transparent 48%),radial-gradient(ellipse at 100% 25%,#dfedff 0,transparent 60%),linear-gradient(165deg,#f7fcff,#fff 70%);color:#16242f}.persondrawer .personhero{padding:15px 0 22px;margin:10px 0 16px}.persondrawer .personhero .personavatar.large{width:100px;height:100px;font-size:34px;box-shadow:0 0 0 5px #ffffffbb,0 8px 28px #3779ab20;margin-bottom:18px}.persondrawer .personhero h2{font-size:24px;line-height:1.25;letter-spacing:-.4px}.persondrawer .personhero p{font-size:16px;color:#607786}.persondrawer .presence-status{font-size:13px}.persondrawer .contactactions{justify-content:center}.persondrawer .contactactions .secondary{background:#ffffffcf;border:1px solid #d8eafa;border-radius:13px;color:#0786ff}.persondrawer .persondetails{padding:4px 18px 18px;border:1px solid #fff;background:#ffffffb0;border-radius:22px}.persondrawer .persondetails dt{font-size:12px;color:#7c8c97}.persondrawer .persondetails dd{font-size:16px;line-height:1.45}.persondrawer .editprofile{font-size:15px}.persondrawer form input,.persondrawer form textarea{background:#ffffffc9;border-color:#dce9f3;border-radius:12px}
@media(max-width:640px){
 .sidebar{background:#fbfcfdeb!important;border-top:1px solid #dce2e8;box-shadow:none!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
 .sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;align-items:center;padding:4px 4px}
 .sidebar nav button,.sidebar nav button.active,.sidebar nav .central-nav,.sidebar nav .central-nav.active{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:54px;margin:0!important;padding:4px 0!important;background:transparent!important;box-shadow:none!important;border:0;border-radius:0;color:#92969b;font-size:11px;font-weight:400;line-height:1.2;transform:none!important}
 .sidebar nav button.active{color:#0786ff}.sidebar nav button .nav-label{color:#686e73}.sidebar nav button.active .nav-label{color:#0786ff}
 .sidebar nav button>.navigation-icon{width:28px;height:28px;flex:0 0 28px}.sidebar nav .more-nav,.sidebar nav .desktop-extra-nav{display:none!important}.sidebar nav button>b{display:none}
 .sidebar nav .nav-unread{position:absolute;left:calc(50% + 7px);top:0;right:auto;background:#ff4157!important;color:white;border:2px solid #fbfcfd;border-radius:14px;min-width:20px;height:20px;display:grid;place-items:center;padding:0 4px;font-size:11px;line-height:16px}
}
.conversation-menu-backdrop{position:fixed;inset:0;z-index:1500;background:#102b3c1a;display:flex;align-items:flex-start;justify-content:flex-end;padding:calc(env(safe-area-inset-top,0px) + 74px) 12px 20px}
.conversation-menu-panel{width:270px;max-width:calc(100vw - 24px);border:1px solid #ffffffbd;border-radius:24px;background:linear-gradient(145deg,#edffffed,#c6eaf6eb 75%,#b9e9f7eb);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 8px 32px #15394c2b;padding:12px 14px;color:#10191e}
.conversation-menu-panel button{display:flex;align-items:center;gap:16px;min-height:56px;width:100%;padding:11px 7px;text-align:left;color:inherit;background:none;border:0;font-size:18px;line-height:1.25}.conversation-menu-panel button>svg{width:27px;height:27px;flex:0 0 27px;stroke-width:1.8}.conversation-menu-panel small{display:block;font-size:11px;color:#5f7b8b;margin-top:3px}.conversation-menu-panel button:focus-visible{outline:2px solid #0786ff;border-radius:12px}
.folder-picker-backdrop{align-items:center;justify-content:center;padding:20px}.folder-picker{width:400px;max-width:100%;max-height:80dvh;overflow:auto;border-radius:24px;background:#f5fbff;padding:22px;color:#16242f;box-shadow:0 10px 50px #143e5d33}.folder-picker h2{font-size:21px;margin:0}.folder-picker>p{font-size:13px;color:#748796}.folder-options>div{display:flex;align-items:center;border-bottom:1px solid #e1edf4}.folder-options button{display:flex;align-items:center;gap:10px;text-align:left;background:none;border:0;padding:14px 0;font-size:16px;color:#267bb9}.folder-options button:first-child{flex:1}.folder-options button span{flex:1}.folder-options .folder-remove{padding:12px;color:#8b9ca7}.folder-picker form{display:flex;gap:8px;margin-top:16px}.folder-picker input{min-width:0;flex:1;border:1px solid #dce8f1;border-radius:12px;padding:10px;font-size:16px}.folder-picker .primary{border-radius:12px;padding:10px}.chat-filter-tabs{overflow-x:auto;white-space:nowrap;scrollbar-width:none}.chat-filter-tabs>button{flex-shrink:0}
.conversation-search{display:flex;align-items:center;gap:6px;padding:8px 10px;background:#f3faff;flex-shrink:0;color:#5c7f96}.conversation-search input{min-width:0;flex:1;border:0;border-radius:12px;background:white;padding:8px;font-size:16px}.conversation-search>span{font-size:11px;white-space:nowrap}.conversation-search button{display:grid;place-items:center;width:28px;height:34px;padding:0;background:transparent;border:0;color:#0786ff}.conversation-search button:disabled{opacity:.35}
/* Compact call cards: icon, title, type, time in the lower corner. */
.conversation .messages .call-event{position:relative;width:236px;max-width:88%;min-width:0;min-height:68px;padding:10px;border:0;border-radius:17px;background:#e7faff;color:#118fba;box-shadow:none}
.conversation .messages .call-event.incoming{background:#fff}.conversation .messages .call-event>button{gap:9px;min-height:45px;align-items:center}.conversation .messages .call-event-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:#d5f3fa;color:#108fb8}
.conversation .messages .call-event-icon>svg{width:25px;height:25px;stroke-width:2.4}.conversation .messages .call-event-cross{right:6px;top:7px;width:13px;height:13px;background:#d5f3fa;border-radius:3px}.conversation .messages .call-event strong{font-size:14px;line-height:18px;font-weight:550;white-space:normal;color:#102b35}.conversation .messages .call-event-subtitle{font-size:13px;line-height:18px;color:#78929b;margin-top:2px;padding-right:0;padding-bottom:8px}.conversation .messages .call-event-meta{font-size:10px;line-height:12px;right:10px;bottom:7px;gap:4px}.conversation .messages .call-event-meta time{font-size:10px;line-height:12px}.conversation .messages .call-event-meta svg{width:13px;height:13px}
/* Voice messages match the same pale blue cards and turquoise controls. */
.conversation .messages .bubble.voice-note-bubble{width:232px;min-width:0;max-width:88%;background:#e7faff;border:0;padding:9px 10px 6px;border-radius:17px;color:#128fba}.conversation .messages .bubble.voice-note-bubble.incoming{background:#fff}.voice-note-bubble .message-attachment{margin:0}.conversation .voice-note-bubble .voice-player{width:100%;min-width:0;gap:9px;align-items:center;padding:0}.conversation .voice-note-bubble .voice-play{width:44px;height:44px;flex:0 0 44px;background:#0b95bf;color:#fff;border:0}.conversation .voice-note-bubble .voice-play svg{width:24px;height:24px}.conversation .voice-note-bubble .voice-track{min-width:0;padding-bottom:17px}.conversation .voice-note-bubble .voice-wave{height:25px;gap:2px;color:#1196bf}.conversation .voice-note-bubble .voice-wave i{width:2px;min-width:2px;max-height:23px}.conversation .voice-note-bubble .voice-time{font-size:12px;color:#2286ac;bottom:0}.conversation .voice-note-bubble .voice-text-button{width:32px;height:30px;flex:0 0 32px;border-radius:9px;align-self:flex-start;margin-top:2px;font-size:16px;background:#d6f3fa;border-color:#c4eaf5;color:#168fba}.conversation .voice-note-bubble .voice-text-button.unavailable{opacity:1}.conversation .voice-note-bubble .message-copy{min-height:13px;margin-top:0}.conversation .voice-note-bubble .message-timestamp{font-size:10px!important;line-height:13px;color:#2989ac}.conversation .voice-note-bubble .message-actions{display:none}.conversation .voice-note-bubble .voice-transcript{font-size:15px;color:#17232c;line-height:1.4}

/* Desktop uses the same conversation design, with mouse and keyboard affordances. */
@media(min-width:641px){
 .sidebar{background:#fbfdff;border-right:1px solid #e0eaf2}
 .sidebar nav button{font-size:14px;gap:12px;border-radius:12px;color:#71818d;min-height:44px}
 .sidebar nav button.active{color:#0786ff;background:#e8f3ff;box-shadow:none}
 .sidebar nav button>.navigation-icon{width:24px;height:24px;flex:0 0 24px}
 .sidebar nav .nav-unread{background:#ff4157;color:white}
 .headerprofile strong{font-size:14px}.headerprofile small{font-size:12px}
 .messenger-content .messenger{grid-template-columns:minmax(240px,31%) minmax(0,1fr);border:1px solid #dfebf2;border-radius:20px;overflow:hidden}
 .chatlist-scroll{padding:0}.chat-row-front .chatcontact{padding:14px 16px;gap:12px;min-height:82px;border-radius:0}
 .chatcontact .personavatar{width:48px;height:48px;flex:0 0 48px;font-size:16px}
 .chatcontact strong{font-size:16px;line-height:1.3;font-weight:600}.chatcontact small{font-size:14px;line-height:1.4;margin-top:4px}
 .chat-title-line time{font-size:12px}.chatlist .chat-list-tools{gap:8px;padding:14px}
 .chatlist .chat-list-tools h2{font-size:24px}.chat-filter-tabs{gap:18px}.chat-filter-tabs button{font-size:14px}
 .conversation .messages{padding:20px 24px;gap:8px;overflow-x:hidden}
 .conversation .messages .bubble{max-width:min(82%,680px);border-radius:16px;padding:8px 12px 7px;box-shadow:none}
 .conversation .messages .bubble.own{align-self:flex-end;margin-left:auto;margin-right:0;background:#e7fbff;border-bottom-right-radius:5px}
 .conversation .messages .bubble.incoming{align-self:flex-start;background:#fff;border-bottom-left-radius:5px}
 .conversation .messages .bubble>.message-author{position:static;width:auto;height:auto;font-size:12px;overflow:visible;margin:0 0 5px;color:#2386ad}
 .conversation .messages .bubble>.message-author .message-avatar{width:22px;height:22px;font-size:10px}
 .private-conversation .bubble>.message-author{display:none}
 .conversation .messages .bubble .message-copy>p{font-size:17px;line-height:1.35;color:#10191d}
 .conversation .messages .message-day{align-self:center;background:transparent;padding:0;margin:12px 0}
 .message-day time{background:#459bb6a6;color:#fff;border-radius:12px;padding:3px 8px;font-size:12px}
 .conversation .messages .bubble.photo-bubble{padding:3px}
 .conversation .messages .bubble.video-note-bubble{padding:0;background:transparent}
 .conversation .messages .bubble.video-note-bubble .message-copy>.message-timestamp{position:relative;width:max-content;display:flex;margin:-22px 0 0 auto;padding:2px 7px;border-radius:10px;background:#0005;color:#fff}
 .conversation .messages .bubble.voice-note-bubble{width:232px;padding:9px 10px 6px}
 .conversation .messages .bubble>.message-actions{display:none}
 .conversation .composer.composer-modern{padding:10px 14px;gap:10px}
 .conversation .conversationhead{padding:12px 18px;gap:12px}
 .conversation .conversationhead .conversation-tools button{width:40px;border-radius:12px}
 .message-action-dropdown{background:linear-gradient(145deg,#edfffff5,#c6eaf6f5);border-radius:18px;backdrop-filter:blur(20px)}
 .conversation-menu-panel button:hover,.message-action-dropdown button:hover{background:#ffffff70;border-radius:12px}
 .conversation .conversationhead .conversation-tools button:hover,.composer-icon:hover,.composer-emoji-toggle:hover{background:#dceffa}
 button:focus-visible,a:focus-visible{outline:2px solid #0786ff;outline-offset:3px}
}
@media(min-width:641px) and (max-width:1050px){
 .messenger-content{padding:12px}.messenger-content .messenger{grid-template-columns:230px minmax(0,1fr)}
 .conversation .messages{padding:12px}.conversation .conversationhead{padding:8px;gap:6px}
 .conversation .conversationhead .conversation-tools button{width:30px;padding:3px}
 .conversation .conversationhead .conversation-person-name strong{font-size:15px}
 .chat-row-front .chatcontact{padding:12px 10px;gap:8px}
}

@media(min-width:641px) and (max-width:900px){
 .sidebar{width:76px;padding:20px 8px}.sidebar .brand{font-size:0;justify-content:center}.sidebar .brand svg{width:30px;height:30px}
 .sidebar .workspace,.sidebar .navlabel,.sidebar .bottom{display:none}.sidebar nav button{flex-direction:column;justify-content:center;gap:5px;padding:10px 2px;font-size:9px;overflow-wrap:anywhere}
 .sidebar nav button>b{display:none}.sidebar nav .nav-unread{right:0;top:0}
 main{margin-left:76px;width:calc(100% - 76px)}
 .messenger-content .messenger{grid-template-columns:200px minmax(0,1fr)}
 .chatcontact .personavatar{width:38px;height:38px;flex-basis:38px}.chatcontact strong{font-size:14px}.chatcontact small{font-size:13px}
 .chat-filter-tabs{gap:12px;padding:0 10px}.chat-filter-tabs button{font-size:13px}
 .chatlist .chat-list-tools h2{font-size:21px}.chatlist .chat-list-tools{padding:10px;gap:5px}
 .chatlist .chat-list-tools>button,.chatlist .chat-list-tools>button.chat-create-button{width:32px;height:34px;flex-basis:32px;margin-left:0}
 .conversation .conversationhead .conversation-person-avatar,.conversation .conversationhead .personavatar{width:34px;height:34px;min-width:34px;flex-basis:34px}
 .conversation .conversationhead .conversation-last-seen{font-size:11px}
}
/* Uniform columns: name | delivery | date; badges never change their alignment. */
.chatlist .chat-row-front .chatcontact{position:relative}
.chatlist .chatcontact>div{flex:1;min-width:0}
.chatlist .chat-title-line{display:grid;grid-template-columns:minmax(0,1fr) 18px 64px;gap:5px;padding-right:0;align-items:center}
.chatlist .chat-title-line .chat-last-read{width:18px;height:18px;display:grid;place-items:center;margin:0}
.chatlist .chat-title-line time{display:block;width:64px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;margin:0}
.chatlist .chat-row-markers{position:absolute;right:14px;bottom:12px;display:flex;align-items:center;justify-content:flex-end;gap:7px;height:20px;max-width:70px}
.chatlist .chat-row-markers .chat-pin,.chatlist .chat-row-markers>svg,.chatlist .chat-row-markers .unread-badge{position:static;inset:auto;flex-shrink:0;margin:0}
.chatlist .chat-row-markers .chat-pin{width:14px;height:14px;color:#9ca9b3}
.chatlist .chat-row-markers>svg{color:#9ca9b3}
.chatlist .chatcontact:has(.chat-row-markers:not(:empty)) .last-message-preview{padding-right:65px}
.task-heading-create{display:none}.desktop-chat-rail,.chat-dock-toolbar{display:none}
@media(min-width:641px){
 .heading:has(.task-heading-create)>div{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
 .task-heading-create{display:inline-flex;padding:11px 16px;font-size:14px;gap:8px;margin:0}
 .task-summary-create{display:none!important}
}
@media(min-width:901px){
 .shell>main{padding-right:64px;box-sizing:border-box}
 .desktop-chat-rail{display:flex;position:fixed;inset:0 0 0 auto;width:64px;padding:14px 6px;z-index:45;flex-direction:column;align-items:center;gap:14px;background:linear-gradient(160deg,#d7efff85,#afd8fa55);border-left:1px solid #ffffffa6;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:-4px 0 18px #287cb00b}
 .desktop-chat-rail button{position:relative;width:48px;height:48px;flex-shrink:0;padding:4px;border-radius:50%;display:grid;place-items:center;background:transparent;border:2px solid transparent;color:#1686d7}
 .desktop-chat-rail button:hover{background:#ffffffa8}.desktop-chat-rail button.active{border-color:#0786ff;background:#eff9ffb0}
 .desktop-chat-rail .personavatar{width:36px;height:36px;font-size:13px;background:#e9f5ff}
 .desktop-chat-rail .notes-avatar{background:#0786ff;color:white}
 .desktop-chat-rail .rail-all{border-radius:15px;background:#ffffff8a}
 .rail-contacts{display:flex;flex-direction:column;gap:8px;overflow-y:auto;overflow-x:hidden;min-height:0;scrollbar-width:none;padding:2px}
 .desktop-chat-rail b{position:absolute;right:-2px;top:-2px;min-width:17px;height:17px;border-radius:12px;background:#ff4157;color:white;font-size:10px;padding:1px 4px;border:1px solid white}
 .chat-dock-backdrop{position:fixed;inset:0 64px 0 0;background:#18395016;z-index:44}
 .messenger-host.chat-dock{position:fixed;right:76px;top:84px;bottom:16px;width:min(540px,calc(100vw - 110px));z-index:46;border:1px solid #ffffffcf;border-radius:22px;background:#eaf7ffb8;box-shadow:0 15px 55px #183c6033;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);overflow:hidden;display:flex;flex-direction:column}
 .messenger-host.chat-dock[hidden]{display:none!important}
 .chat-dock-toolbar{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:48px;border-bottom:1px solid #ffffff80;flex-shrink:0}
 .chat-dock-toolbar button{display:flex;align-items:center;gap:6px;color:#207db5;font-size:13px;padding:6px;border-radius:8px}.chat-dock-toolbar button:first-child{margin-right:auto}.chat-dock-toolbar button:hover{background:#ffffff80}
 .chat-dock .messenger{flex:1;min-height:0;height:auto;max-height:none;border:0;border-radius:0;display:flex;background:transparent}
 .chat-dock .conversation{width:100%;min-height:0;background:transparent}
 .chat-dock.dock-conversation .chatlist{display:none}.chat-dock.dock-list .conversation{display:none}.chat-dock.dock-list .chatlist{width:100%;border:0;background:transparent}
 .chat-dock .chatlist-fixed{background:#f6fcffd9}.chat-dock .chatlist-scroll{background:#ffffff90}
 .chat-dock .conversation .conversationhead{background:#f5fcffcf}
 .chat-dock .conversation .messages{background-color:#d9eef599;background-blend-mode:soft-light}
 .chat-dock .conversation .composer-slot,.chat-dock .conversation .messenger-composer,.chat-dock .conversation .composer.composer-modern{background:#e7eff5df}
}

/* Mobile directory: consistent compact rows, distinct section icons. */
@media(max-width:640px){
 .moregrid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .moregrid .morecard{display:flex;align-items:center;gap:14px;width:100%;max-width:none;min-height:80px;padding:15px;border:1px solid #e1edf5;border-radius:18px;background:#ffffffed;text-align:left}
 .moregrid .morecard>svg:first-child{flex:0 0 44px;width:44px;height:44px;padding:10px;border-radius:14px;background:#e9f4ff;color:#0786ff;stroke-width:1.8}
 .moregrid .morecard>div{flex:1;min-width:0}.moregrid .morecard h3{font-size:16px;line-height:1.3;margin:0 0 4px;color:#17232c}.moregrid .morecard p{font-size:13px;line-height:1.35;margin:0;color:#788995}
 .moregrid .morecard>svg:last-child{flex:0 0 18px;color:#8da9bf}
 .efficiency-dashboard,.efficiency-grid{gap:14px;min-width:0}.efficiency-dashboard .panel{padding:18px;min-width:0}
 .efficiency-liquid{width:min(200px,100%);aspect-ratio:1;height:auto;margin:20px auto}
 .efficiency-stat h3{font-size:14px;padding:14px}.efficiency-stat strong{font-size:38px;margin:10px 16px 16px}.efficiency-stat{min-height:120px}
 .efficiency-chart svg{min-height:0}.efficiency-chart>small{display:block;font-size:12px;line-height:1.4}
}
/* scaleCRM: one exponent mark across desktop and mobile branding. */
.sidebar .brand{display:flex;align-items:center;gap:10px;letter-spacing:-.7px;font-size:23px;font-weight:650}
.sidebar .brand img{width:38px;height:38px;border-radius:12px;flex-shrink:0}.sidebar .brand span{white-space:nowrap}
.mobile-brand{align-items:center;gap:7px;letter-spacing:-.6px}.mobile-brand img{width:29px;height:29px;border-radius:9px;flex-shrink:0}
.auth-brand-logo{display:block;width:68px;height:68px;border-radius:20px;margin:0 0 22px;box-shadow:0 8px 24px #0786ff24;animation:brand-reveal .55s ease both}
@keyframes brand-reveal{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
@media(min-width:641px) and (max-width:900px){.sidebar .brand span{display:none}.sidebar .brand{justify-content:center}}
@media(max-width:640px){.sidebar .brand{display:none}.mobile-brand{display:flex;font-size:18px}.auth-brand-logo{width:60px;height:60px;margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.auth-brand-logo{animation:none}}

/* Approved stacked scale + x^n / CRM lockup, shared across all screen sizes. */
.sidebar .brand{justify-content:center;padding:0 4px;margin-bottom:28px}
.sidebar .brand img.brand-lockup{width:154px;height:76px;max-width:100%;border-radius:0;object-fit:contain}
.app-header .mobile-brand img.brand-lockup{width:116px;height:56px;border-radius:0;object-fit:contain}
.authcard .auth-brand-logo{width:190px;height:94px;max-width:100%;border-radius:0;box-shadow:none;object-fit:contain;margin:0 auto 26px}
@media(min-width:641px) and (max-width:900px){.sidebar .brand{padding:0;margin-bottom:20px}.sidebar .brand img.brand-lockup{width:60px;height:40px}}
@media(max-width:640px){.app-header .mobile-brand{display:flex;flex-shrink:0}.authcard .auth-brand-logo{width:174px;height:86px;margin-bottom:22px}}
@media(max-width:360px){.app-header .mobile-brand img.brand-lockup{width:98px;height:48px}}

/* Task conversations share the messenger palette while remaining separate. */
.task-overlay,.task-overlay *{min-width:0;box-sizing:border-box}
.task-drawer{max-width:100vw;overflow-x:hidden;overscroll-behavior-x:none;touch-action:pan-y}
.task-fields,.task-form-grid,.task-comments,.task-member-fields{max-width:100%;min-width:0}
.task-fields input,.task-fields textarea,.task-fields select,.task-comments textarea{max-width:100%;min-width:0}
.task-chat-link{display:inline-flex;align-items:center;gap:8px;margin:18px 0;border-radius:16px}
.task-person-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#bce9fa,#5eabea);color:#13578c;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden;font-weight:700}
.task-person-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.task-comments article{display:grid;grid-template-columns:34px 1fr auto;gap:4px 10px;align-items:center;border-radius:16px;background:#f2f8fe;padding:12px;margin:10px 0}
.task-comments article p{grid-column:2 / -1;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.task-comments article small{color:#718396;font-size:11px}
.task-conversation{min-height:0;display:flex;flex-direction:column;height:100%;background:#e9f5fd}
.task-conversation-title{display:flex;flex-direction:column;text-align:left;min-width:0;flex:1}.task-conversation-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-conversation-title small{color:#63839d}
.task-messages{display:flex;flex-direction:column;align-items:flex-start;gap:10px;overflow:auto;flex:1;min-height:0;padding:20px 14px;overscroll-behavior:contain}
.task-messages .bubble{border-radius:18px;padding:10px 14px;max-width:min(85%,500px);width:auto;display:block;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 2px 8px #1b5b8420}
.task-messages .bubble.own{align-self:flex-end}.task-messages .bubble small{display:block;text-align:right;color:#4385aa;font-size:11px;margin-top:4px}
.task-chat-author{display:flex;align-items:center;gap:8px;font-size:12px;color:#39769f}.task-chat-author .task-person-avatar{width:24px;height:24px;font-size:12px}
.task-messages .task-system-message{align-self:center;background:#e0eef8e8;box-shadow:none;color:#437087;font-size:13px;text-align:center}
.task-chat-composer{display:flex;align-items:center;gap:8px;padding:12px;background:#e6f1f9}.task-chat-composer input{border:0;border-radius:18px;background:white;padding:13px 16px;flex:1;min-width:0}.task-chat-composer button{background:#0786ff;color:white;border-radius:50%;width:42px;height:42px;display:grid;place-items:center}
.task-chat-row{width:100%;border:0;text-align:left;display:flex;gap:12px;align-items:center;padding:13px}.task-chat-row>div{min-width:0;flex:1;display:flex;flex-direction:column}.task-chat-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-chat-row small{color:#8296a6}
.chat-filter-tabs .task-chat-unread{background:#f23e48;color:white;border-radius:50%;min-width:18px;height:18px;font-size:11px;display:inline-grid;place-items:center;margin-left:4px}
@media(max-width:640px){.task-overlay{overflow:hidden}.task-drawer{width:100vw!important;left:0!important;right:0!important;transform:none!important;overflow-y:auto;overflow-x:hidden;touch-action:pan-y}.task-conversation{height:100dvh}.task-fields label{width:100%;overflow:hidden}.task-messages .bubble{max-width:90%}}
.task-detail-hero{padding:18px 18px 20px;margin:8px 0 22px;border-radius:22px;background:linear-gradient(145deg,#fff,#f1f8ff);border:1px solid #e3f0fb;color:#263847}.task-detail-hero h2{font-size:24px;margin:0 0 14px;line-height:1.25;overflow-wrap:anywhere}.task-detail-hero>p{color:#586674;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.task-detail-person{display:flex;align-items:center;gap:10px;margin:14px 0}.task-detail-person span:last-child{display:flex;flex-direction:column;gap:2px}.task-detail-person small{color:#92a0ad}.task-detail-person strong{color:#263847;font-weight:600}.task-detail-due{display:flex;align-items:center;gap:8px;color:#0786ff;margin-top:20px}.task-detail-due.is-overdue{color:#ee555b}.task-detail-due b{margin-left:auto;background:#ffe9eb;border-radius:20px;padding:4px 9px;font-weight:500}
.chat-filter-tabs button{position:relative}.chat-filter-tabs .task-chat-unread{position:absolute;top:-6px;right:-8px}
.task-rows{background:#fff;border:1px solid #e7edf3;border-radius:20px;overflow:hidden}.task-row{display:grid;grid-template-columns:minmax(230px,2fr) minmax(145px,1fr) minmax(145px,1fr) minmax(105px,.7fr) auto;align-items:center;gap:14px;width:100%;padding:18px 20px;text-align:left;background:#fff;border:0;border-bottom:1px solid #edf0f3;color:#293644}.task-row:last-child{border-bottom:0}.task-row:hover{background:#f7fbff}.task-row-main{display:flex;flex-direction:column;gap:6px;min-width:0}.task-row-main strong{font-size:17px;line-height:1.3;overflow-wrap:anywhere;font-weight:600}.task-row-main small,.task-row-person small{color:#8c9aaa;font-size:12px}.task-row-person{display:flex;align-items:center;gap:8px;font-size:13px;min-width:0}.task-row-person .task-person-avatar{width:30px;height:30px}.task-row-person span:last-child{display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-row-due,.task-row-check{display:flex;align-items:center;gap:5px;color:#71899d;font-size:13px}.task-row-due.late{color:#ef535a}.task-row-check{color:#0786ff}.task-board .task-row{display:flex;flex-direction:column;align-items:flex-start;padding:14px;gap:10px;border:1px solid #e7edf3;border-radius:16px;margin:10px 0}.task-board .task-row-person{font-size:12px}.task-board .task-row-due{font-size:12px}.task-calendar{background:#fff;border-radius:18px;overflow:hidden;border:1px solid #e7edf3}.task-calendar-head{display:flex;justify-content:center;align-items:center;gap:20px;padding:16px;color:#263847}.task-calendar-head button{border-radius:12px;padding:6px 12px;background:#edf7ff;color:#0786ff}.task-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.task-calendar-grid>b{text-align:center;padding:9px;color:#7a91a6;font-size:13px}.task-calendar-day{min-height:100px;padding:8px;border-top:1px solid #e7edf3;border-right:1px solid #e7edf3;min-width:0}.task-calendar-day>strong{display:block;font-size:13px;color:#68798a}.task-calendar-day button{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:12px;margin:5px 0;padding:5px 7px;border-radius:7px;background:#e9f6ff;color:#12669f}.task-calendar-day button.late{background:#ffe9eb;color:#d34e55}.task-detail-hero{margin-bottom:18px}.task-view-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 4px 16px}.task-status-pill{border-radius:16px;background:#e6f5ff;color:#1683c9;padding:7px 12px;font-size:13px}.task-save-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center}.task-chat-link{position:fixed;bottom:calc(24px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:1005;box-shadow:0 8px 28px #1675bc4d;white-space:nowrap;margin:0}.task-drawer{padding-bottom:100px!important}.task-overlay .task-drawer{overscroll-behavior-x:none}.chat-filter-tabs{overflow-x:auto;overflow-y:visible;padding-top:7px}.chat-filter-tabs .task-chat-unread{top:-4px;right:-4px;background:#f43e4c}.chatlist .task-chat-row .unread-badge{background:#f43e4c;color:#fff}
@media(max-width:640px){.task-row{grid-template-columns:1fr auto;gap:8px 12px;padding:16px}.task-row-main{grid-column:1/-1}.task-row-person{grid-column:1}.task-row-person:nth-of-type(3){grid-column:1}.task-row-due{grid-column:2;grid-row:2}.task-row-check{grid-column:2;grid-row:3}.task-calendar-day{min-height:72px;padding:4px}.task-calendar-day button{font-size:10px;padding:3px}.task-chat-link{bottom:calc(78px + env(safe-area-inset-bottom))}.task-drawer{padding-bottom:160px!important}}
.task-read-checklist,.task-read-members{padding:15px 18px;margin-bottom:12px;background:#f7fbff;border-radius:16px;color:#384d5e}.task-read-checklist>strong,.task-read-members>strong{display:block;margin-bottom:10px}.task-read-checklist>div{display:flex;gap:9px;padding:5px 0;color:#237bad}.task-read-checklist>div span{color:#35495a}.task-read-members p{margin:0;color:#607a90}.task-view-actions{justify-content:flex-start;flex-wrap:wrap}.task-view-actions .secondary:first-of-type{margin-left:auto}.chat-filter-tabs button{padding-top:14px}.chat-filter-tabs .task-chat-unread{top:0;right:0;transform:translateY(0)}
.task-conversation-avatar{display:grid;place-items:center;border-radius:50%;background:#dff3ff;color:#1183d5;flex:0 0 40px}.messages .bubble.task-system-message{align-self:center;max-width:min(85%,490px);background:#e2f1fbeb;color:#477389;text-align:center;border-radius:18px;box-shadow:none}.messages .bubble.task-system-message .message-author,.messages .bubble.task-system-message .message-actions,.messages .bubble.task-system-message .desktop-message-reactions{display:none}.messages .bubble.task-system-message p{color:#477389;font-size:13px}

/* Task details and editor */
.task-dialog-head{position:sticky;top:0;z-index:3;margin:-4px -4px 16px;padding:8px 4px 14px;background:linear-gradient(180deg,#fff 84%,#ffffffee);border-bottom:1px solid #e7f0f8}
.task-head-actions{display:flex;align-items:center;gap:5px}.task-head-actions button{width:38px;height:38px;display:grid;place-items:center;border-radius:13px}.task-head-actions button:hover{background:#eff8ff}
.task-head-actions .task-head-save{background:#0786ff;color:#fff;box-shadow:0 4px 14px #0786ff35}.task-head-actions .task-head-save:hover{background:#0079ed}
.task-priority-button{color:#90a8bb}.task-priority-button.active,.task-priority-mark{color:#ff922d;fill:#ffbe69}.task-priority-mark{vertical-align:-3px;margin-left:7px;flex:none}
.task-detail-hero{background:linear-gradient(145deg,#fff 5%,#eef8ff 100%);border-color:#dceefa;box-shadow:0 12px 30px #296f9f0c;padding:22px}.task-detail-hero h2{font-size:clamp(22px,3vw,29px)}.task-detail-hero>p{margin:0 0 20px;color:#536c7f}.task-detail-hero .task-description-empty{color:#9daebb}
.task-detail-people,.task-form-people,.task-read-participants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.task-person-field,.task-member-card{min-width:0;background:#fff;border:1px solid #e1edf6;border-radius:17px;padding:12px 14px}.task-person-label{display:block;color:#8b9fb0;font-size:12px;margin-bottom:8px}.task-person-choice{display:flex;align-items:center;gap:11px;min-width:0;color:#294158}.task-person-choice strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.task-person-choice select{flex:1;min-width:0;border:0;background:transparent;padding:5px;color:#294158;font-weight:600;box-shadow:none}
.task-person-avatar.personavatar{width:38px;height:38px;min-width:38px;border-radius:50%;padding:0;overflow:hidden;font-size:14px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#d7f2ff,#76b9ee);color:#115a88}.task-person-avatar.personavatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.task-row-person .task-person-avatar.personavatar{width:34px;height:34px;min-width:34px}
.task-detail-dates{display:flex;flex-direction:column;gap:8px;margin-top:16px}.task-detail-due{margin-top:0;min-height:38px;flex-wrap:wrap}.task-created-at{display:flex;align-items:center;gap:8px;color:#849bad;font-size:13px}.task-due-trigger{display:inline-flex;align-items:center;gap:8px;color:inherit;background:#e7f5ff;padding:9px 12px;border-radius:12px;text-align:left;max-width:100%}.task-due-trigger:hover{background:#d7edff}.task-inline-due{display:flex;align-items:center;gap:6px;max-width:100%;flex-wrap:wrap}.task-inline-due input{width:min(230px,100%);font-size:14px}.task-inline-due button{width:32px;height:32px;border-radius:9px;background:#e7f5ff;color:#0786ff}
.task-form-intro{padding:17px 18px;border-radius:17px;background:linear-gradient(125deg,#eaf7ff,#f7fcff);border:1px solid #dcecf9;display:flex;flex-direction:column;gap:4px;margin-bottom:16px}.task-form-intro strong{font-size:18px;color:#213d52}.task-form-intro small{font-size:12px;color:#7a9bb3}
.task-fields label.task-text-field{color:#526c80;font-weight:600}.task-text-field input,.task-text-field textarea,.task-form-grid input,.task-form-grid select{border:1px solid #dce8f2;border-radius:14px;background:#fbfdff;padding:13px 14px;color:#233c50}.task-text-field textarea{min-height:120px;resize:vertical;line-height:1.5}.task-form-people{margin:22px 0}.task-form-grid label{color:#526c80;font-weight:600}
.task-member-fields{grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0}.task-member-card>strong{display:flex;align-items:center;gap:7px;color:#355a71;font-size:14px}.task-member-card>strong svg{color:#0786ff}.task-member-card details{margin:12px 0;padding:0;border:0}.task-member-card summary{padding:9px 11px;border:1px solid #dbe9f3;border-radius:10px;color:#0786ff}.task-member-card small{display:block;margin-top:10px;color:#9aa9b7}.task-member-options{max-height:235px;overflow:auto;border:1px solid #e2eef7;border-radius:12px;padding:5px 8px}.task-fields .task-member-options label{margin:3px 0;padding:6px;border-radius:9px;cursor:pointer;font-size:13px}.task-fields .task-member-options label:hover{background:#f2f9ff}.task-member-options .task-person-avatar.personavatar{width:28px;height:28px;min-width:28px;font-size:11px}.task-member-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:11px}.task-member-chips>span{display:inline-flex;align-items:center;gap:6px;border-radius:20px;background:#ecf8ff;padding:4px 9px 4px 4px;font-size:12px;color:#376782;max-width:100%}.task-member-chips .task-person-avatar.personavatar{width:24px;height:24px;min-width:24px;font-size:10px}
.task-checklist-heading{display:flex;align-items:center;gap:8px;color:#0786ff;margin:22px 0 6px}.task-checklist-heading h3{color:#344b5e}.task-edit-cancel{color:#67879b;margin:14px 0;text-decoration:underline;text-underline-offset:3px}.task-read-participants{margin-bottom:14px}
@media(max-width:640px){.task-dialog-head{margin:-4px -4px 12px}.task-detail-people,.task-form-people,.task-read-participants,.task-member-fields{display:grid;grid-template-columns:1fr;gap:10px}.task-form-grid{grid-template-columns:1fr}.task-detail-hero{padding:17px}.task-person-field,.task-member-card{padding:11px 12px}.task-fields label{overflow:visible}.task-head-actions button{width:35px;height:35px}}
