:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172443;background:#f6f6f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}[hidden]{display:none!important}button:focus-visible,input:focus-visible{outline:3px solid #679bd9;outline-offset:2px}h1,h2,p{margin-top:0}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#8490a6;margin-bottom:10px}.login-screen{min-height:100dvh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 80% 12%,#dee7f5 0,transparent 35%),linear-gradient(145deg,#f8f6f2,#eef2f7)}.login-card{width:min(100%,440px);padding:36px 40px 32px;background:white;box-shadow:0 28px 85px #14284c20;border-radius:26px;border:1px solid #e5e9f0;text-align:center}.logo-circle{height:104px;width:104px;margin:0 auto 15px;border-radius:25px;overflow:hidden;box-shadow:0 5px 20px #0f254214}.logo-circle img{width:100%;height:100%;object-fit:cover}.login-card h1{font-size:29px;margin-bottom:7px;letter-spacing:-.8px}.subheading{color:#70809b;margin-bottom:29px}.login-card form{text-align:left;display:grid;gap:9px}.login-card label{font-size:13px;font-weight:800;color:#3d4a61;margin-top:7px}.login-card input{border:1px solid #d8e0ea;border-radius:11px;padding:15px 14px;color:#172443;width:100%;background:#fafbfd}.login-card input:focus{border-color:#2a598f}.primary-button{border:0;border-radius:12px;background:#12274b;color:white;padding:15px;font-weight:800;margin-top:14px}.primary-button:hover{background:#243f6c}.primary-button:disabled{opacity:.6;cursor:wait}.form-error{color:#a82f3d;font-size:13px;background:#fff0f1;padding:10px;border-radius:8px;margin:4px 0}.footnote{font-size:12px;color:#8290a1;line-height:1.6;margin:20px 0 0}.dashboard{height:100dvh;display:grid;grid-template-columns:256px minmax(0,1fr)}.sidebar{background:#10203f;color:#fff;display:flex;flex-direction:column;padding:23px 15px;min-width:0}.brand-header{display:flex;align-items:center;gap:12px;margin:4px 5px 35px}.brand-header img{height:49px;width:49px;object-fit:cover;border-radius:13px}.brand-header b{font-size:16px;display:block;white-space:nowrap}.brand-header small{font-size:11px;color:#a4b2cd;display:block;margin-top:3px}.nav-title{font-size:10px;font-weight:800;letter-spacing:1.7px;color:#8597b4;margin:0 12px 10px}.second-title{margin-top:27px}.nav-link,.channel-link{border:0;color:#ccd7eb;background:transparent;border-radius:12px;width:100%;padding:12px 11px;display:flex;gap:11px;align-items:center;text-align:left;font-weight:650}.nav-link.active,.channel-link.active{background:#2a4168;color:#fff}.nav-emoji{font-size:20px;min-width:31px;text-align:center}.nav-count{margin-left:auto;background:#496389;padding:2px 7px;border-radius:12px;font-size:12px}.channel-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:10px;color:white;font-size:20px;font-weight:850;flex-shrink:0}.telegram{background:#289bd8}.max{background:#6954c7}.vk{background:#1975dd}.mail{background:#f3a94b;color:#302516}.avito{background:#67c65c;color:#173b18}.channel-link{padding:8px 11px}.channel-link .small{display:block;font-size:10px;font-weight:500;color:#a4b2cd;margin-top:3px}.sidebar-bottom{margin-top:auto;border-top:1px solid #334665;padding:18px 8px 0;display:flex;align-items:center;gap:8px}.user-chip{display:flex;gap:9px;align-items:center;min-width:0;flex:1}.user-chip b,.user-chip small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-chip b{font-size:14px}.user-chip small{font-size:11px;color:#9fafc9;margin-top:3px}.user-avatar{background:#d8c09f;color:#25344d;height:36px;width:36px;border-radius:11px;display:grid;place-items:center;font-weight:900}.logout{background:none;border:1px solid #506487;color:#dae3f2;padding:8px;border-radius:9px;font-size:12px}.main-area{display:flex;flex-direction:column;min-width:0;overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:26px 30px 16px}.topbar h1{font-size:29px;letter-spacing:-.7px;margin:0}.top-actions{display:flex;align-items:center;gap:15px}.secure-pill{font-size:12px;color:#3c876e;background:#e5f3ec;border-radius:15px;padding:8px 11px}.secondary-button{border:1px solid #cdd7e7;border-radius:10px;background:white;padding:10px 14px;color:#23395d;font-weight:750}.notice{margin:0 30px 19px;background:#fff4d8;border:1px solid #f5e2b7;border-radius:12px;padding:12px 15px;color:#8a672c;font-size:13px;line-height:1.5}.workspace{display:grid;grid-template-columns:minmax(260px,350px) minmax(0,1fr);margin:0 30px 17px;border:1px solid #e0e5ec;background:white;flex:1;min-height:0;overflow:hidden;border-radius:17px;box-shadow:0 8px 30px #1b355111}.chat-column{border-right:1px solid #e6ebf1;display:flex;flex-direction:column;min-height:0}.chat-column-top{padding:19px;border-bottom:1px solid #edf0f4}.chat-column-top h2{font-size:18px;display:flex;align-items:center;gap:9px}.chat-column-top h2 span{font-size:12px;padding:3px 8px;border-radius:15px;background:#e9eef5;color:#587092}.chat-column-top input{background:#f7f8fb;border:1px solid #e0e5ee;width:100%;padding:11px 12px;border-radius:10px;font-size:13px}.chat-list{overflow:auto;flex:1}.chat-row{border:0;background:#fff;padding:16px 17px;width:100%;display:flex;gap:12px;text-align:left;border-bottom:1px solid #f0f2f5;color:#182c4b}.chat-row.active{background:#edf5fe}.chat-row:hover{background:#f7f9fd}.avatar-wrap{position:relative;width:50px;height:50px;flex-shrink:0;display:inline-block}.chat-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#dde8f2;color:#fff;font-size:16px;font-weight:850;overflow:hidden}.chat-avatar img{display:block;width:100%;height:100%;object-fit:cover}.avatar-badge{position:absolute;right:-2px;bottom:-1px;width:21px;height:21px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;font-size:10px;font-weight:900;color:#fff;box-shadow:0 2px 4px #0002}.avatar-badge.telegram{background:#289bd8}.avatar-badge.mail{background:#f3a94b;color:#302516}.avatar-badge.max{background:#6954c7}.avatar-badge.vk{background:#1975dd}.avatar-badge.avito{background:#67c65c;color:#173b18}.chat-row-body{min-width:0;flex:1}.chat-row-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:800}.chat-row-time{font-size:11px;color:#7d8ea5;font-weight:500}.chat-row-preview{font-size:12px;color:#7c889b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:5px 0}.chat-row-channel{font-size:11px;color:#466a9a;font-weight:700}.empty-list{padding:34px 22px;text-align:center;color:#7b899d;font-size:14px;line-height:1.7}.empty-list strong{display:block;font-size:17px;color:#344763;margin-bottom:9px}.thread-column{min-height:0;display:flex;flex-direction:column}.empty-thread{margin:auto;max-width:410px;text-align:center;color:#8090a6;padding:30px}.empty-thread .illustration{font-size:42px;background:#eaf0f7;display:inline-grid;place-items:center;width:84px;height:84px;border-radius:24px;color:#3c5c86;margin-bottom:23px}.empty-thread h2{font-size:20px;color:#263c5c}.empty-thread p{font-size:14px;line-height:1.7}.thread-head{padding:17px 21px;border-bottom:1px solid #e8edf3;display:flex;align-items:center;gap:13px}.thread-head h2{font-size:17px;margin:0}.thread-head small{color:#7385a0;margin-top:3px;display:block}.thread-messages{overflow:auto;flex:1;padding:25px 22px;background:#fbfcfe}.bubble{max-width:80%;padding:12px 15px;border-radius:15px;margin-bottom:13px;background:#ecf1f8;color:#253650;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.mine{margin-left:auto;background:#dcebf9}.bubble-time{font-size:10px;color:#71839d;margin-top:5px}.thread-footer{padding:18px;border-top:1px solid #e4eaf1;background:white}.thread-footer p{margin:0;font-size:12px;color:#8190a6}.footer-bar{font-size:11px;color:#91a0b3;padding:0 30px 16px}.error-line{padding:16px;color:#ad394b}.back-button{display:none}.external-chat-link{display:inline-block;margin-top:12px;padding:10px 13px;background:#ecf6ea;border:1px solid #abdca5;color:#245c25;border-radius:9px;text-decoration:none;font-weight:800;font-size:13px}.external-chat-link:hover{background:#def0d8}
.mobile-logout{display:none}
@media(max-width:900px){.dashboard{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:17px 9px}.brand-header{margin-bottom:26px}.brand-header b{font-size:14px}.secure-pill{display:none}.workspace{grid-template-columns:280px minmax(0,1fr);margin:0 15px 14px}.topbar{padding:21px 15px 13px}.notice{margin:0 15px 14px}.footer-bar{padding:0 15px 12px}}
@media(max-width:680px){.dashboard{height:100dvh;display:flex;flex-direction:column}.sidebar{flex-direction:column;padding:9px 12px 10px}.brand-header{margin:0;gap:8px}.brand-header img{height:37px;width:37px;border-radius:9px}.brand-header b{font-size:14px}.brand-header small{display:none}.nav-title,.second-title,.nav-link,.sidebar-bottom{display:none}.channel-nav{display:flex;gap:6px;overflow:auto;padding-top:10px}.channel-link{min-width:75px;flex-direction:column;gap:3px;padding:6px;border-radius:10px;text-align:center;align-items:center}.channel-icon{height:40px;width:40px;font-size:20px}.channel-link .small{display:none}.channel-link .channel-label{font-size:11px}.main-area{flex:1;min-height:0}.topbar{padding:14px 16px 10px}.topbar h1{font-size:22px}.topbar .eyebrow{display:none}.secondary-button{font-size:12px;padding:7px 9px}.notice{font-size:11px;margin:0 12px 10px;padding:9px}.workspace{display:flex;flex:1;margin:0 0 0;border-radius:13px 13px 0 0;border-left:0;border-right:0;border-bottom:0}.chat-column{width:100%;border:0}.chat-column.hide-mobile{display:none}.thread-column{display:none;width:100%}.thread-column.mobile-visible{display:flex}.thread-head{padding:11px 13px}.back-button{display:inline-block;border:0;background:#edf1f6;padding:8px 11px;border-radius:9px;color:#2a4264}.footer-bar{display:none}.login-card{padding:30px 25px}.empty-thread h2{font-size:18px}}
@media(max-width:680px){.mobile-logout{display:inline-block}}


/* Correct nested scrolling on iPhone Safari and desktop: keep long chat and message lists inside their panes. */
.chat-column,
.thread-column {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

#threadContent:not(.empty-thread) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.chat-list,
.thread-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

@media (max-width: 680px) {
  .dashboard,
  .main-area,
  .workspace {
    min-height: 0;
  }
  .dashboard {
    overflow: hidden;
  }
}

/* Message attachments: safe inline previews and file actions on mobile and desktop. */
.message-attachments{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.media-photo-link{display:block;max-width:100%;width:fit-content;border-radius:12px;overflow:hidden}
.media-photo{display:block;width:auto;max-width:100%;max-height:330px;object-fit:contain;border-radius:12px;background:#e6ebf1}
.media-audio{display:flex;flex-direction:column;gap:7px;min-width:0}
.media-audio>span{font-size:12px;font-weight:750;color:#375272}
.media-audio audio{display:block;max-width:100%;width:300px;height:44px}
.media-video video{display:block;max-width:100%;max-height:360px;border-radius:10px}
.media-file{display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere;padding:10px 12px;border:1px solid #ccdbea;border-radius:10px;background:#ffffffa8;color:#244d7d;text-decoration:none;font-weight:750}
.media-file small{font-weight:500;color:#8793a6}
.media-file strong{font-size:12px;color:#2b6eaa}
.media-link{font-size:12px;color:#2f6197;font-weight:700}
.media-pending{font-size:11px;color:#8c7994}
.message-text{white-space:pre-wrap}
@media(max-width:680px){.thread-messages{padding:15px 12px}.bubble{max-width:93%}.media-photo{max-height:260px}.media-audio audio{width:100%}}

/* Explicit sending, with delivery status and safe mobile composer */
.reply-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:9px}
.reply-form textarea{display:block;flex:1 1 220px;min-width:0;max-height:145px;resize:vertical;padding:11px 12px;font:inherit;font-size:16px;border:1px solid #cbd8e8;border-radius:11px;background:#f9fbfd;color:#172443}
.reply-form textarea:focus{outline:2px solid #5e9dd7;outline-offset:1px}
.reply-button{padding:12px 18px;min-height:44px;border:0;border-radius:11px;background:#266cbd;color:#fff;font-weight:750;font-size:13px}
.reply-button:disabled{opacity:.5;cursor:wait}
.reply-notice{flex:1 1 100%;font-size:12px;color:#526987}
.reply-hint{font-size:11px!important;color:#93a0b2!important;margin:8px 0 0!important}
.send-status{font-size:11px;margin-top:5px;color:#6f849f}
.send-status.sent{color:#198055}.send-status.failed,.send-status.uncertain{color:#b34243}
@media(max-width:680px){.thread-footer{padding:10px 12px}.reply-form textarea{flex-basis:160px}.reply-button{padding:11px 13px}}
/* Prevent automatic input focus zoom on iOS and reduce page pinch zoom. */
@media(pointer:coarse){input,textarea,select{font-size:16px!important}html,body{touch-action:pan-x pan-y}}


/* Chernila CRM · Aurora UI · 2026. Progressive visual layer over stable layout. */
:root{--ui-ink:#1a2a44;--ui-muted:#7a8ba3;--ui-blue:#477af3;--ui-border:#e4eaf5;--ui-soft:#f5f7fc;--ui-shadow:0 20px 58px rgba(24,48,91,.09);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ui-ink);background:#eff3f9}
html{background:#eff3f9}
body{background:#eff3f9;letter-spacing:-.012em}
button,input,textarea{font-family:inherit}
button{transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}
button:active:not(:disabled){transform:scale(.98)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #7298f9;outline-offset:2px}
.dashboard{background:linear-gradient(125deg,#f6f8fd 0%,#edf2fa 62%,#f1f6fc 100%)}
.sidebar{background:radial-gradient(circle at 0% 0%,rgba(82,120,203,.18),transparent 52%),linear-gradient(164deg,#192b4a,#101b30 78%);border-right:1px solid rgba(255,255,255,.12);box-shadow:8px 0 38px rgba(24,44,77,.05)}
.brand-header{padding:7px 3px 20px;margin-bottom:18px;border-bottom:1px solid rgba(201,218,249,.12)}
.brand-header img{border-radius:15px;box-shadow:0 6px 15px #09152c59;outline:1px solid #b7d0ff33}
.brand-header b{font-size:15px;font-weight:800;letter-spacing:-.035em}
.brand-header small{font-size:11px;color:#96b0d9}
.nav-title{letter-spacing:1.6px;color:#7690b8;font-weight:700}
.nav-link,.channel-link{font-weight:650;border:1px solid transparent}
.nav-link:hover,.channel-link:hover{background:rgba(145,180,246,.12);color:#fff}
.nav-link.active,.channel-link.active{background:linear-gradient(115deg,rgba(94,137,228,.36),rgba(88,135,232,.15));border-color:#91b9fd31;box-shadow:inset 3px 0 #80a9ff;color:#fff}
.nav-emoji{font-size:18px}
.nav-count{background:#6190e0;color:#fff}
.channel-icon{border-radius:13px;box-shadow:0 4px 14px rgba(0,0,0,.08)}
.sidebar-bottom{border-top-color:#7893be29;gap:12px}
.user-avatar{border-radius:13px;background:linear-gradient(135deg,#adc0f8,#d0e8ea);color:#2c426a}
.logout{border:1px solid #a9c3ed36;border-radius:11px;color:#d6e4f9}
.logout:hover{background:#ffffff13}
.main-area{background:transparent}
.topbar{padding:28px 32px 18px}
.topbar h1{font-size:30px;font-weight:800;letter-spacing:-.055em;color:#20314f}
.topbar .eyebrow{color:#8b9aba;font-size:10px;margin-bottom:7px;letter-spacing:2px}
.secure-pill{background:#e8f8ef;border:1px solid #d2eedf;color:#348667;font-weight:650}
.secondary-button{background:#fff;border:1px solid #dfe6f2;border-radius:12px;color:#435875;box-shadow:0 3px 10px #2942630b}
.secondary-button:hover{background:#f7faff;border-color:#bad0f5;color:#2c5ba7}
.notice{background:#fff;border:1px solid #e0e9f4;color:#697e98;border-radius:13px;padding:10px 15px;box-shadow:0 4px 12px rgba(23,46,85,.025);font-size:12px}
.notice::before{content:'●';color:#53c5a1;margin-right:9px;font-size:10px}
.workspace{border:1px solid #e0e7f1;border-radius:24px;margin:0 30px 18px;background:#fff;box-shadow:var(--ui-shadow);overflow:hidden}
.chat-column{background:#fff;border-right:1px solid #e9edf5}
.chat-column-top{background:#fff;padding:23px 20px 17px;border-bottom:1px solid #edf0f6}
.chat-column-top h2{font-size:17px;font-weight:800;letter-spacing:-.035em;margin-bottom:16px}
.chat-column-top h2 span{background:#eaf1ff;color:#4874ce;font-size:11px}
.chat-column-top input{background:#f5f7fb;border:1px solid transparent;border-radius:13px;padding:13px 15px;font-size:13px;transition:background .2s,border-color .2s,box-shadow .2s}
.chat-column-top input:focus{outline:none;background:#fff;border-color:#8eb1ff;box-shadow:0 0 0 4px #4d80ee17}
.chat-list{padding:8px 8px 18px}
.chat-row{border-bottom:0;border:1px solid transparent;border-radius:16px;padding:14px 12px;margin-bottom:4px;gap:12px;position:relative;transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s}
.chat-row:hover{background:#f7faff;transform:translateX(2px)}
.chat-row.active{background:linear-gradient(110deg,#edf4ff,#f5f9ff);border-color:#dce8ff;box-shadow:0 5px 17px #5a8ad612}
.chat-row.active::before{content:'';position:absolute;width:3px;left:-1px;top:16px;bottom:16px;border-radius:8px;background:#5383f6}
.avatar-wrap{width:48px;height:49px}
.chat-avatar{width:46px;height:46px;border-radius:16px;font-size:15px;font-weight:800;box-shadow:0 4px 12px #153d7313}
.avatar-badge{height:20px;width:20px;right:-3px;bottom:0;border-width:2px;box-shadow:0 3px 10px #35456028}
.chat-row-title{color:#263653;font-size:13.5px;letter-spacing:-.02em;font-weight:800}
.chat-row-time{color:#a1adc0;font-size:10px;flex-shrink:0}
.chat-row-preview{color:#78879f;font-size:12px;line-height:1.35;margin-top:7px}
.chat-row-channel{color:#6685bb;font-size:10px;font-weight:650}
.thread-column{background:#fff}
.thread-head{padding:16px 25px;background:#fff;border-bottom:1px solid #e9edf5;box-shadow:0 2px 12px #1a34510a;z-index:2}
.thread-head .avatar-wrap{margin-right:3px}
.thread-head h2{font-size:16px;color:#263653;font-weight:800;letter-spacing:-.035em}
.thread-head small{font-size:11px;color:#8da0b9}
.thread-messages{padding:30px 31px;background:radial-gradient(circle at 14% 12%,#e8effb69 0,transparent 38%),radial-gradient(circle at 93% 84%,#e8f5f275 0,transparent 33%),#f8faff}
.bubble{max-width:min(80%,570px);position:relative;border:1px solid #e8edf4;background:#fff;border-radius:19px 19px 19px 6px;padding:12px 16px;margin-bottom:12px;box-shadow:0 4px 15px #2e4a7110;color:#35435b;font-size:13.5px;line-height:1.65;animation:message-in .24s cubic-bezier(.2,.75,.25,1) both}
.bubble.mine{border-color:#d9e7fc;background:linear-gradient(145deg,#e7f1ff,#dfeafe);border-radius:19px 19px 6px 19px;box-shadow:0 4px 15px #4a7dd214}
.message-text:empty{display:none}
.bubble-time{text-align:right;color:#99a8bc;font-size:10px;margin-top:8px}
.bubble.mine .bubble-time{color:#7191bb}
.thread-footer{padding:15px 23px;background:rgba(255,255,255,.96);border-top:1px solid #e9edf5}
.reply-form{background:#f5f7fb;border:1px solid #e5ebf4;border-radius:18px;padding:8px;gap:8px;align-items:center}
.reply-form textarea{background:transparent;border:none;box-shadow:none;min-height:43px;max-height:125px;padding:10px 12px;font-size:14px;resize:none;line-height:1.5}
.reply-form textarea:focus{outline:none}
.reply-button{background:linear-gradient(135deg,#5d8aff,#3b6fdf);border-radius:12px;padding:13px 19px;box-shadow:0 6px 15px #3a71dd34}
.reply-button:hover{background:linear-gradient(135deg,#477bf3,#3164cf);box-shadow:0 7px 18px #3a71dd44}
.reply-button:disabled{box-shadow:none}
.reply-hint{margin:9px 5px 0!important;color:#9aa8ba!important}
.reply-notice{padding-left:11px}
.empty-thread{padding:35px;animation:fade-in .3s ease both}
.empty-thread .illustration{background:linear-gradient(145deg,#e9f2ff,#e8f5f3);color:#608cda;border-radius:25px;box-shadow:0 10px 26px #8babe527}
.empty-thread h2{color:#354966;font-weight:800;letter-spacing:-.035em}
.empty-thread p{color:#899ab1}
.empty-list{color:#92a2b7}
.media-photo{border-radius:15px;box-shadow:0 4px 18px #2539521c}
.media-file{border-radius:13px;border:1px solid #e1e9f6;background:#ffffffbd;box-shadow:0 4px 12px #25395208}
.media-file:hover{background:#f2f7ff}
.external-chat-link{border-radius:12px}
.footer-bar{color:#9aabc0}
.login-screen{background:radial-gradient(circle at 15% 5%,#d9e8ff 0,transparent 38%),radial-gradient(circle at 90% 85%,#d5efe8 0,transparent 32%),#f2f5fb}
.login-card{border:1px solid #fff;border-radius:29px;box-shadow:0 28px 90px #23457120}
.login-card .logo-circle{border-radius:24px}
.login-card .primary-button{background:linear-gradient(125deg,#527ff0,#355ec5);box-shadow:0 9px 23px #4d77d432}
.login-card .primary-button:hover{background:#365dc2}
.login-card input{border-radius:13px;background:#f8faff}
@keyframes fade-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes message-in{from{opacity:0;transform:translateY(9px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(min-width:681px){.dashboard{animation:fade-in .3s ease both}.chat-column-top{position:relative}}
@media(max-width:900px){.workspace{margin:0 15px 15px}.topbar{padding:21px 17px 14px}}
@media(max-width:680px){
  .dashboard{background:#f2f5fb}
  .sidebar{padding:10px 13px 11px;background:linear-gradient(112deg,#182945,#12203a);box-shadow:0 5px 20px #13274717}
  .brand-header{padding:0;margin:0;border:0;gap:10px}
  .brand-header img{width:37px;height:37px;border-radius:12px}
  .brand-header b{font-size:14px}
  .channel-nav{padding:10px 0 0;gap:7px;scrollbar-width:none}
  .channel-nav::-webkit-scrollbar{display:none}
  .channel-link{border-radius:12px;min-width:73px;padding:7px 6px}
  .channel-link.active{box-shadow:0 0 0 1px #80aaff44}
  .channel-icon{width:34px;height:34px;border-radius:11px;font-size:17px}
  .channel-link .channel-label{font-size:10px}
  .topbar{padding:13px 15px 10px}
  .topbar h1{font-size:23px}
  .notice{margin:0 12px 11px;border-radius:11px;font-size:11px}
  .workspace{border:0;border-radius:20px 20px 0 0;margin:0;box-shadow:0 -4px 18px #244a7810}
  .chat-column-top{padding:17px 15px 13px}
  .chat-column-top h2{margin-bottom:12px}
  .chat-list{padding:6px 7px 22px}
  .chat-row{padding:12px 9px}
  .thread-head{padding:10px 13px}
  .thread-head h2{font-size:15px}
  .thread-messages{padding:19px 13px}
  .bubble{max-width:91%;padding:11px 13px;font-size:13.5px;border-radius:17px 17px 17px 5px}
  .bubble.mine{border-radius:17px 17px 5px 17px}
  .thread-footer{padding:10px 11px}
  .reply-form{padding:5px;border-radius:14px}
  .reply-form textarea{min-height:42px;padding:9px;font-size:16px}
  .reply-button{padding:12px 13px;border-radius:10px}
  .back-button{background:#edf3fd;border:1px solid #e0e9fb;border-radius:10px;color:#4971ae}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Voice messages: custom progressive enhancement with real waveform when decoding is available. */
.media-audio{max-width:100%;min-width:0;gap:0}
.voice-player{width:min(100%,358px);display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #e0e9f6;border-radius:16px;background:linear-gradient(140deg,#f9fbff,#f0f6ff);box-shadow:0 3px 14px #3b6baf12;white-space:normal}
.voice-play{flex:0 0 39px;width:39px;height:39px;border:0;border-radius:50%;background:linear-gradient(135deg,#6795ff,#4075eb);color:#fff;display:grid;place-items:center;box-shadow:0 4px 12px #4a77d538;padding:0}
.voice-play:hover{box-shadow:0 5px 15px #4a77d55b}
.voice-play svg{width:16px;height:16px;fill:currentColor;stroke:currentColor;stroke-width:1.5}
.voice-player.is-playing .voice-play{background:linear-gradient(135deg,#3d73e9,#2f5fc9)}
.voice-center{flex:1;min-width:0}
.voice-title{font-weight:750;color:#415f8a;font-size:11px;line-height:1.2;margin-bottom:3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.voice-wave-area{height:30px;position:relative;display:flex;align-items:center}
.voice-wave{height:29px;width:100%;display:block}
.voice-seek{position:absolute;inset:0;width:100%;height:100%;cursor:pointer;opacity:0;margin:0}
.voice-meta{display:flex;align-items:center;gap:5px;font-size:10px;color:#8d9db6;line-height:1.2}
.voice-duration{margin-left:auto}
.voice-speed{flex:0 0 auto;min-width:31px;height:29px;border:1px solid #dae5f8;background:#fff;border-radius:9px;color:#5375aa;font-size:10px;font-weight:850;padding:0 4px}
.voice-speed:hover{background:#eaf2ff}
.voice-download{display:grid;place-items:center;width:27px;height:29px;color:#8299bb;text-decoration:none;border-radius:8px;font-size:17px}
.voice-download:hover{color:#477ce3;background:#e9f1fd}
.voice-player audio{display:none}
.voice-error{font-size:10px;color:#b45a59}
@media(max-width:420px){.voice-player{width:min(100%,310px);padding:9px 8px;gap:7px}.voice-play{flex-basis:35px;width:35px;height:35px}.voice-speed{min-width:28px}}

/* Attachment presentation: do not repeat redundant media names. */
.media-audio>span{display:none}
.voice-title:not(.voice-error){display:none}
.voice-title.voice-error{display:block}


/* Clean conversation typography and CRM-only unread state. */
.chat-row.has-unread{background:#f2f7ff;border-color:#e1ebfc}
.chat-row.has-unread:not(.active){box-shadow:inset 3px 0 #6b9af5}
.chat-row.has-unread .chat-row-title{color:#163a75;font-weight:850}
.chat-row.has-unread .chat-row-preview{font-weight:750;color:#395779;padding-right:34px}
.unread-badge{position:absolute;right:13px;bottom:21px;min-width:23px;height:23px;padding:0 6px;display:inline-grid;place-items:center;border-radius:14px;background:#4c89e8;color:#fff;font-size:11px;font-weight:800;box-shadow:0 3px 9px #4482df32}
.unread-divider{display:flex;align-items:center;gap:11px;margin:15px auto 21px;font-size:11px;font-weight:800;color:#4885d6;letter-spacing:.01em}
.unread-divider::before,.unread-divider::after{content:'';flex:1;height:1px;background:#bdd3f3}
.bubble-unread:not(.mine){border-color:#adcdfc;background:#f7fbff;box-shadow:inset 3px 0 #7eaeed,0 4px 15px #2e4a7110}
.mail-history{font-size:12px;color:#7b89a0;margin-top:9px;border-top:1px solid #e7edf6;padding-top:8px;max-width:100%;overflow-wrap:anywhere}
.mail-history summary{cursor:pointer;color:#6583ac;font-weight:650;user-select:none}
.mail-history>div{margin-top:9px;padding:9px 11px;background:#f5f7fb;border-left:3px solid #dbe5f4;border-radius:8px;white-space:pre-wrap;line-height:1.45}
.media-photo-link.media-open{padding:0;border:0;background:transparent;cursor:zoom-in;text-align:left;box-shadow:none}
.media-photo-link.media-open:focus-visible{outline:3px solid #739bfc}
.media-video-open{border:0;background:#13243d;border-radius:13px;padding:0;position:relative;max-width:100%;overflow:hidden;display:block;cursor:pointer}
.media-video-open video{display:block;width:auto;max-width:100%;max-height:330px;pointer-events:none;opacity:.85}
.media-video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:54px;width:54px;border-radius:50%;background:#1e396fc9;border:2px solid #ffffffc7;color:white;font-size:23px;display:grid;place-items:center;padding-left:4px;box-shadow:0 8px 25px #0005}
.media-video-open:hover .media-video-play{background:#3966b9e6}
.media-viewer-open{overflow:hidden}
.media-viewer{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px;color:#f3f6fb}
.media-viewer-backdrop{position:absolute;inset:0;background:rgba(9,18,35,.89);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}
.media-viewer-panel{position:relative;z-index:1;display:flex;flex-direction:column;width:min(100%,1180px);height:min(96dvh,900px);min-height:0}
.media-viewer-head{display:flex;align-items:center;gap:13px;min-height:53px;padding:0 8px}
.media-viewer-title{font-size:13px;font-weight:700;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#dde8f8}
.media-viewer-download{color:#eff5ff;text-decoration:none;background:#ffffff25;border:1px solid #ffffff30;border-radius:10px;padding:9px 12px;font-size:12px;font-weight:700;white-space:nowrap}
.media-viewer-close{width:42px;height:42px;border:1px solid #ffffff30;background:#ffffff26;border-radius:50%;color:white;font-size:25px;line-height:1}
.media-viewer-main{display:flex;align-items:center;min-height:0;flex:1;gap:10px}
.media-viewer-stage{min-width:0;min-height:0;flex:1;height:100%;display:grid;place-items:center;overflow:auto;overscroll-behavior:contain}
.media-viewer-stage img,.media-viewer-stage video{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:5px;box-shadow:0 12px 42px #0006}
.media-viewer-stage img{cursor:zoom-in}
.media-viewer-stage.is-zoomed{display:block;text-align:center}
.media-viewer-stage.is-zoomed img{max-width:none;max-height:none;cursor:zoom-out;margin:auto}
.media-viewer-stage video{width:auto;max-width:100%;max-height:100%}
.media-viewer-arrow{flex:0 0 43px;width:43px;height:49px;border:1px solid #ffffff33;border-radius:13px;background:#ffffff25;color:white;font-size:32px;line-height:1}
.media-viewer-arrow:hover,.media-viewer-close:hover{background:#ffffff40}
.media-viewer-counter{text-align:center;font-size:12px;color:#aebcd1;padding:7px 0 3px;min-height:24px}
@media(max-width:680px){.unread-badge{right:10px;bottom:16px}.media-viewer{padding:5px}.media-viewer-panel{height:100dvh}.media-viewer-head{padding:5px 9px;gap:8px}.media-viewer-main{gap:2px}.media-viewer-arrow{width:26px;flex-basis:26px;font-size:25px;background:#ffffff14;border:0}.media-viewer-download{padding:8px}.media-viewer-stage img,.media-viewer-stage video{border-radius:0}}
@media(prefers-reduced-motion:reduce){.media-viewer,.media-viewer *{transition:none!important;animation:none!important}}


/* Readable three-line conversation cards; clear unread emphasis. */
.chat-row-body{display:flex;flex-direction:column;align-self:stretch;min-width:0;min-height:57px}
.chat-row-title{display:flex;align-items:flex-start;gap:8px;width:100%;line-height:1.3}
.chat-row-time{margin-left:auto;white-space:nowrap}
.chat-row-preview{display:block;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:5px 0 0}
.chat-row-channel{display:block;align-self:flex-start;margin-top:auto;padding-top:6px;line-height:1.3;font-size:10px;color:#899db9;font-weight:650}
.chat-row.has-unread,.chat-row.has-unread:not(.active){background:linear-gradient(115deg,#e4f0ff,#ecf5ff)!important;border:1px solid #b9d6fb!important;box-shadow:inset 4px 0 #4189f1,0 3px 14px #4b8fe526!important}
.chat-row.has-unread:hover{background:#deedff!important}
.chat-row.has-unread .chat-row-title{color:#133b77;font-weight:850}
.chat-row.has-unread .chat-row-preview{color:#225397;font-weight:800}
.chat-row.has-unread .chat-row-channel{color:#6686b4}
.chat-row.has-unread .unread-badge{right:12px;bottom:14px;background:#2876e6;border:1px solid #cce1ff;font-weight:900;min-width:25px;height:25px;box-shadow:0 3px 12px #2972d348}
.chat-row.has-unread .chat-row-channel{padding-right:40px}
@media(max-width:680px){.chat-row-body{min-height:57px}.chat-row.has-unread .unread-badge{right:10px;bottom:12px}}

.chat-more{display:block;width:calc(100% - 20px);margin:10px;border:1px solid #d7e0ed;border-radius:12px;background:#f2f6fb;color:#31557d;padding:12px;font-weight:700;text-align:center}.chat-more:hover{background:#e6eff9}

/* Compact message bubbles and links, suppress reanimation of old messages. */
.bubble{width:fit-content;max-width:min(82%,570px);animation:none!important}
.bubble.mine{margin-left:auto}
.message-text a{color:#1a63b5;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
@media(max-width:760px){.bubble{max-width:91%}}

.load-older{display:block;width:fit-content;margin:2px auto 16px;padding:8px 15px;border:1px solid #d8e3ef;border-radius:18px;background:#fff;color:#4575a5;font-weight:700;font-size:12px}
.load-older:hover{background:#edf4fb}

.crm-toasts{position:fixed;top:max(14px,env(safe-area-inset-top));right:16px;z-index:9999;width:min(355px,calc(100vw - 32px));display:flex;flex-direction:column;gap:10px;pointer-events:none}
.crm-toast{pointer-events:auto;display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;padding:13px 16px;border:1px solid #cddbec;border-left:4px solid #3686df;border-radius:13px;background:#fff;box-shadow:0 12px 36px #1b335d38;color:#1c2d4b;cursor:pointer}
.crm-toast strong{font-size:13px;font-weight:800;line-height:1.3}
.crm-toast span{font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;max-height:3.9em;overflow:hidden;color:#58708e}
.crm-toast.payment{border-left-color:#1ea16b}.crm-toast.warning{border-left-color:#da9040}

/* Notification opt-in: accessible on desktop and the installed mobile CRM. */
#pushButton { white-space:nowrap; min-height:38px; cursor:pointer; }
#pushButton:disabled { opacity:.65; cursor:wait; }
@media(max-width:700px) { #pushButton { font-size:12px; padding:7px 9px; min-height:35px; } }

/* Outbound attachments, shared between desktop and mobile file pickers. */
.attach-button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #cfddf2;border-radius:12px;background:#fff;color:#4d76bb;font-size:22px;cursor:pointer}
.attach-button:hover,.attach-button:focus-visible{background:#edf4ff;outline:2px solid #91b4ed}
.reply-file-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.reply-files-preview{flex:1 1 100%;font-size:12px;line-height:1.5;color:#466890;padding:0 10px;overflow-wrap:anywhere}
.reply-files-preview:empty{display:none}
@media(max-width:680px){.attach-button{flex-basis:40px;width:40px;height:40px}}

/* Telegram-style composer: attach left, emoji and contextual microphone/send right. */
.reply-form{position:relative;gap:5px;align-items:center;padding:6px 7px}
.reply-form textarea{flex:1 1 0;min-width:58px;min-height:42px;max-height:145px;padding:10px 5px;line-height:1.5}
.reply-form .attach-button{flex:0 0 40px;width:40px;height:42px;border:0;background:transparent;border-radius:50%;font-size:22px;box-shadow:none}
.reply-form .attach-button:hover{background:#e6eefa;outline:none}
.composer-icon-button{flex:0 0 40px;width:40px;height:42px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#68809f;font-size:26px;line-height:1;cursor:pointer;padding:0}
.composer-icon-button:hover,.composer-icon-button:focus-visible{background:#e6eefa;color:#285fbb;outline:none}
.composer-icon-button.is-recording{color:#d44552;background:#ffe8ea;font-size:25px;animation:mic-pulse 1.2s infinite}
@keyframes mic-pulse{50%{box-shadow:0 0 0 5px #df5d6523}}
.reply-form .reply-button{flex:0 0 42px;width:42px;height:42px;min-height:42px;display:grid;place-items:center;padding:0;border-radius:50%;font-size:22px;line-height:1;box-shadow:0 4px 12px #3a71dd34}
.reply-form [hidden],.composer-emoji-panel[hidden],.reply-voice-draft[hidden]{display:none!important}
.composer-emoji-panel{position:absolute;right:8px;bottom:calc(100% + 7px);z-index:50;display:grid;grid-template-columns:repeat(6,1fr);gap:3px;width:min(296px,calc(100vw - 40px));max-height:236px;overflow-y:auto;padding:9px;border:1px solid #d8e3f1;border-radius:15px;background:#fff;box-shadow:0 9px 35px #283d5c30}
.composer-emoji{width:43px;height:41px;display:grid;place-items:center;background:transparent;border:0;border-radius:9px;font-size:23px;cursor:pointer}
.composer-emoji:hover,.composer-emoji:focus-visible{background:#edf3ff;outline:none}
.reply-voice-draft{flex:1 1 100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 8px;background:#e8f0fc;border-radius:12px;min-width:0}
.reply-voice-draft audio{display:block;flex:1;min-width:0;max-width:370px;height:38px}
.reply-voice-draft button{border:0;border-radius:8px;padding:8px 10px;white-space:nowrap;color:#af4455;background:#fff;font-size:12px;font-weight:700;cursor:pointer}
.voice-recording-label{color:#d14650;font-size:13px;font-weight:750}
.reply-form .reply-notice:empty{display:none}
@media(max-width:680px){.reply-form textarea{flex-basis:0;min-width:55px}.composer-icon-button{flex-basis:38px;width:38px}.reply-form .attach-button{flex-basis:38px;width:38px}}
@media(prefers-reduced-motion:reduce){.composer-icon-button.is-recording{animation:none}}

/* CRM quality pass: scoped inbox styling; no external fonts or dependencies. */
.thread-head>div{min-width:0}.thread-head h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-head .back-button{flex-shrink:0;white-space:nowrap}.user-chip>div:last-child{min-width:0}.user-chip b{max-width:100%}.logout{flex-shrink:0}
:root{--ui-ink:#233347;--ui-muted:#6c7b8d;--ui-blue:#326fbc;--ui-border:#e2e7ed}
.dashboard{background:#f4f6f8;animation:none}
.sidebar{background:#17283c;box-shadow:none;border-right:1px solid #20354d}
.brand-header{padding-bottom:22px}.brand-header small{color:#a3b3c7}
.nav-link,.channel-link{border-radius:10px}.nav-link.active,.channel-link.active{background:#ffffff12;box-shadow:inset 3px 0 #8cb4e5;border-color:#ffffff0c}
.channel-icon{border-radius:11px;box-shadow:none}
.topbar{padding:22px 26px 16px}.topbar h1{font-size:25px;letter-spacing:-.7px}.topbar .eyebrow{letter-spacing:1.4px;color:#6b7c90}
.notice{margin:0 26px 14px;padding:9px 13px;background:#edf3f9;border-color:#dde7f1;color:#52708e;font-size:12px;border-radius:9px}
.workspace{margin:0 26px 14px;border-radius:14px;box-shadow:0 4px 20px #17283c05;border-color:#dfe5ed;grid-template-columns:minmax(300px,360px) minmax(0,1fr)}
.chat-column-top{padding:19px 18px 12px}.chat-column-top h2{font-size:17px;margin-bottom:15px}.chat-column-top input{background:#f4f6f8;border-color:#e5e9ef;border-radius:9px;padding:11px 12px}
.inbox-filters{display:flex;gap:5px;margin-top:12px}.inbox-filters button{min-height:34px;border:0;background:transparent;color:#697b90;font-size:12px;font-weight:650;border-radius:7px;padding:7px 10px}.inbox-filters button[aria-pressed=true]{background:#e9f0f8;color:#285f9c}.inbox-filters span{margin-left:4px;font-size:11px;font-variant-numeric:tabular-nums}
.chat-list{padding:6px}.chat-row{margin:2px 0;padding:13px 11px;border-radius:10px;border:1px solid transparent;gap:12px;box-shadow:none;transform:none!important}.chat-row:hover{background:#f4f7fa}.chat-row.active{background:#eaf1f9;border-color:#d2e0f0;box-shadow:none}.chat-row.active::before{display:none}
.chat-row.has-unread,.chat-row.has-unread:not(.active){background:#f1f6fc!important;border-color:transparent!important;box-shadow:none!important}.chat-row.has-unread.active{background:#e5effb!important;border-color:#bdd2ec!important}.chat-row.has-unread:hover{background:#eaf2fc!important}
.chat-row-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-row-title{font-size:13px;align-items:center;letter-spacing:0;font-weight:650}.chat-row.has-unread .chat-row-title{font-weight:750;color:#203d64}.chat-row.has-unread .chat-row-preview{font-weight:600;color:#405c7d}.chat-row-time{font-size:10px;color:#74859b}.chat-row-preview{color:#64758a}.chat-row-channel{color:#74859b;font-size:10px}.chat-row.has-unread .unread-badge{background:#3976be;border:0;box-shadow:none;min-width:21px;height:21px;font-size:10px;font-weight:700;bottom:13px}
.chat-avatar{border-radius:50%;box-shadow:none}.thread-head{padding:15px 22px;box-shadow:none}.thread-head h2{font-size:16px;font-weight:700;letter-spacing:-.2px}.thread-head small{color:#6b7e94}.thread-messages{background:#f2f5f8;padding:26px}.bubble{border:1px solid #e0e7ee;box-shadow:0 1px 2px #17283c05;border-radius:15px 15px 15px 4px;font-size:14px;line-height:1.6;color:#263c54}.bubble.mine{background:#e3eefb;border-color:#d4e3f4;box-shadow:none;border-radius:15px 15px 4px 15px}.bubble-unread:not(.mine){background:#fff;box-shadow:inset 2px 0 #80a8d6;border-color:#c9dbed}.bubble-time{color:#718299}.thread-footer{padding:12px 20px}.reply-form{background:#f5f7f9;border-color:#dfe6ed;border-radius:13px}.reply-form:focus-within{border-color:#91b1d5;box-shadow:0 0 0 2px #3272bd0d}.reply-form textarea{font-size:14px}.reply-form .reply-button{background:#3476c2;box-shadow:none}.reply-hint{color:#73859b!important}.reply-form[data-sending=true]{opacity:.75}.footer-bar{padding-bottom:12px;color:#7b8c9e}
@media(min-width:1100px){.dashboard{grid-template-columns:232px minmax(0,1fr)}}
@media(max-width:420px){.topbar h1{font-size:18px!important;white-space:nowrap}.topbar{gap:8px}.top-actions{gap:7px}.top-actions #pushButton{font-size:10px;padding:7px}.top-actions .mobile-logout{font-size:10px;padding:7px}.thread-head h2{max-width:225px}}
@media(min-width:681px) and (max-width:1050px){.dashboard{grid-template-columns:190px minmax(0,1fr)}.workspace{margin:0 14px 12px;grid-template-columns:280px minmax(0,1fr)}.topbar{padding:18px 14px 12px}.notice{margin:0 14px 12px}.brand-header b{font-size:13px}.sidebar{padding-left:8px;padding-right:8px}.brand-header{gap:8px}.brand-header img{width:40px;height:40px}.thread-messages{padding:18px}.top-actions{gap:6px}}
@media(max-width:680px){.dashboard{height:100dvh}.sidebar{padding:9px 12px}.brand-header{padding:0}.channel-nav{padding-top:8px;gap:5px}.channel-link{min-width:69px;padding:5px}.channel-icon{width:30px;height:30px;font-size:15px}.channel-link .channel-label{font-size:10px}.topbar{padding:12px}.topbar h1{font-size:21px}.notice{margin:0 12px 10px;font-size:11px}.workspace{margin:0;border-radius:14px 14px 0 0;display:flex}.chat-column-top{padding:16px 14px 11px}.chat-row{padding:12px 9px}.chat-row-title{font-size:14px}.chat-row-preview{font-size:13px}.thread-head{padding:10px 12px}.thread-messages{padding:18px 12px}.thread-footer{padding:9px 10px calc(9px + env(safe-area-inset-bottom))}.reply-form textarea{font-size:16px}.thread-open .sidebar,.thread-open .topbar,.thread-open .notice{display:none}.thread-open .workspace{border-radius:0}.thread-head .avatar-wrap{width:39px;height:39px}.thread-head .chat-avatar{width:38px;height:38px}.back-button{min-height:42px}.inbox-filters button{min-height:40px}.reply-hint{font-size:10px!important;line-height:1.4}}

/* Clear native typography and a single mobile inbox scroller. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-synthesis:none;color:#192b40;background:#f5f7fa}
body{letter-spacing:normal;text-rendering:optimizeLegibility}button,input,textarea,select{font-family:inherit;letter-spacing:normal}
.topbar h1{font-weight:700;letter-spacing:-.5px}.topbar .eyebrow{font-weight:600;color:#687b90}.secure-pill{font-weight:500}
.sidebar{background:#14273c}.brand-header b{font-weight:650;letter-spacing:-.25px}.nav-link,.channel-link{font-weight:550}.nav-emoji{font-size:18px}.channel-label{font-weight:550}
.chat-column-top{padding:18px 18px 10px;border:0;flex:0 0 auto}.chat-column-top h2{font-size:18px;font-weight:650;letter-spacing:-.3px;margin:0}.chat-column-top h2 span{font-weight:600;color:#4e6d92;background:#edf3fa}
.inbox-tools{background:#fff;padding:2px 18px 13px;border-bottom:1px solid #e6ecf2;flex:0 0 auto}
.inbox-tools input{display:block;width:100%;min-height:44px;border:1px solid #e2e8f0;background:#f4f7fa;border-radius:11px;padding:11px 13px;font-size:14px;color:#1d334e;transition:border-color .15s,background .15s}.inbox-tools input::placeholder{color:#718298}.inbox-tools input:focus{outline:2px solid #b4ccec;outline-offset:1px;background:white;border-color:#6e9dce}
.inbox-filters{gap:7px;margin-top:10px}.inbox-filters button{font-size:13px;font-weight:550;padding:8px 12px;border-radius:8px;min-height:36px;color:#526b85}.inbox-filters button[aria-pressed=true]{color:#235fa0;background:#e8f1fc}.inbox-filters span{font-size:12px}
.chat-row{padding:13px 11px;border-radius:12px}.chat-row-title{font-size:14px;font-weight:600;letter-spacing:normal;color:#1d3048;line-height:1.4}.chat-row-time{font-size:11px;color:#70839b}.chat-row-preview{font-size:13px;font-weight:400;color:#536b85;line-height:1.45;margin-top:4px}.chat-row-channel{font-size:11px;font-weight:450;color:#6e8199}.chat-row.has-unread .chat-row-title{font-weight:650;color:#173756}.chat-row.has-unread .chat-row-preview{font-weight:550;color:#365a80}.chat-row.has-unread,.chat-row.has-unread:not(.active){background:#eef5fd!important}.chat-row.has-unread.active{background:#e3effd!important}.chat-row.active{border-color:#a8c5e7;box-shadow:none}.chat-avatar{font-weight:550}.unread-badge{font-weight:650!important}.thread-head h2{font-weight:650;letter-spacing:-.2px}.thread-head small{font-size:12px;color:#607b97}.bubble{font-size:15px;line-height:1.6;font-weight:400;color:#20354c;box-shadow:0 1px 3px #192b4006}.bubble-time{font-size:11px;color:#667d96}.bubble.mine .bubble-time{color:#587ca6}.reply-form{border-radius:16px;background:#f4f7fa}.reply-hint{font-size:11px!important;color:#637b96!important}.thread-messages{background:#f2f5f9}
@media(max-width:680px){
  .dashboard{overflow:hidden}.sidebar{flex:0 0 auto;box-shadow:0 1px 0 #ffffff12}.main-area{display:block;overflow-y:auto;overflow-x:hidden;min-height:0;flex:1;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;scroll-padding-top:112px}
  .topbar{padding:18px 16px 13px}.topbar h1{font-size:22px!important;font-weight:700;letter-spacing:-.45px}.top-actions #pushButton{font-size:11px}.notice{margin:0 14px 14px;padding:11px 13px;font-size:12px;line-height:1.55;border-radius:12px;background:#eaf2fa;color:#52708e}
  .workspace{display:block;flex:none;overflow:visible;min-height:calc(100% - 150px);margin:0;border-radius:18px 18px 0 0;border:0;background:#fff}.chat-column{display:block;overflow:visible;min-height:100%;width:100%;border:0}.chat-column-top{padding:19px 16px 12px;border-radius:18px 18px 0 0}.chat-column-top h2{font-size:19px;font-weight:650;margin:0}
  .inbox-tools{position:sticky;top:0;z-index:5;padding:7px 14px 11px;background:#fff;border-bottom:1px solid #e2e9f2;box-shadow:0 5px 10px #20344a04}.inbox-tools input{font-size:16px;min-height:46px;background:#f4f7fb}.inbox-filters{margin-top:9px;gap:7px}.inbox-filters button{min-height:40px;font-size:13px;padding:9px 12px}
  .chat-list{display:block;flex:none;overflow:visible;min-height:0;padding:6px 7px calc(16px + env(safe-area-inset-bottom))}.chat-row{padding:14px 10px;gap:12px;margin:3px 0}.chat-row-body{min-height:62px}.chat-row-title{font-size:15px;font-weight:600}.chat-row-preview{font-size:14px;line-height:1.45}.chat-row-time{font-size:11px}.chat-row-channel{font-size:11px}.chat-row.has-unread .unread-badge{bottom:14px;right:11px;min-width:23px;height:23px}.avatar-wrap{width:48px;height:49px}.chat-avatar{width:46px;height:46px}
  .thread-open .main-area{display:flex;overflow:hidden;scroll-padding-top:0}.thread-open .workspace{display:flex;flex:1;min-height:0;overflow:hidden;border-radius:0}.thread-open .chat-column.hide-mobile{display:none}.thread-open .thread-column{display:flex;overflow:hidden}.thread-messages{padding:19px 13px}.bubble{font-size:15px;max-width:91%;line-height:1.6}.thread-head{background:#fff}.thread-head h2{font-size:16px}.reply-form textarea{font-size:16px}.reply-hint{font-size:10px!important}
  .chat-column.hide-mobile{display:none}
}
