/* Mobile communication workspace: one customer/teammate at a time, with an
   independently scrolling history and a composer that stays in the same view. */
.inbox-mobile-back{display:none}.inbox-list-caption{padding:10px 18px;color:var(--muted);font-size:11px;line-height:1.5;margin:0}.inbox-history-note{font-size:11px;color:#5e7479;line-height:1.5;margin:0 0 12px}.inbox-sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.inbox-channel-label{display:grid;gap:5px;min-width:0}.inbox-channel-label>span{font-size:10px;color:#526c74}.inbox-message-label{display:block;min-width:0;flex:1}.inbox-message-label textarea{width:100%;box-sizing:border-box}.inbox-compose-hint{grid-column:1/-1;color:#526c74;font-size:10px;line-height:1.5}.message-bubble.is-draft{border-style:dashed;background:#f4f7ff}.message-bubble.message-note{background:#fff9e9;border-color:#eaddb4}.message-bubble.message-whatsapp{background:#eef9f0;border-color:#cde5d2}.inbox-draft-review{margin-top:9px;font-size:12px!important;min-height:36px}.message-bubble>p{white-space:pre-wrap;overflow-wrap:anywhere}.conversation-row>span:nth-child(2){min-width:0;flex:1}.conversation-row>span:nth-child(2) strong,.conversation-row>span:nth-child(2) small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.brand-mail-signature-preview>summary{font-size:12px;font-weight:650;color:#365d66;cursor:pointer}.brand-mail-signature-preview[open]>p{padding-top:10px}
@media(min-width:761px){.triq-inbox-screen .message-composer{display:grid;grid-template-columns:128px minmax(0,1fr) auto;align-items:end}.triq-inbox-screen .inbox-compose-hint{margin:0}.triq-inbox-screen .message-composer textarea{min-height:65px}}
@media(max-width:760px){
 .triq-inbox-screen,.refutil-chat-screen{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px;overflow:hidden}
 .triq-inbox-screen>.page-head,.refutil-chat-screen>.page-head{flex:none;margin:0!important;gap:10px;align-items:center}
 .triq-inbox-screen>.page-head h1,.refutil-chat-screen>.page-head h1{font-size:22px!important;margin:0}
 .triq-inbox-screen>.page-head p,.refutil-chat-screen>.page-head p,.refutil-chat-screen>.page-head .eyebrow{display:none}
 .triq-inbox-screen>.page-head .btn,.refutil-chat-screen>.page-head .btn{min-height:38px;padding:7px 11px;font-size:12px}
 .triq-inbox-screen .inbox-layout,.refutil-chat-screen .refutil-chat{display:flex!important;flex-direction:column;flex:1;min-height:0!important;height:auto!important;max-height:none!important;margin:0!important;overflow:hidden;background:#fff;border-radius:16px!important;box-shadow:0 4px 18px #153b4a08}
 .triq-inbox-screen .inbox-list,.refutil-chat-screen .refutil-chat-list{display:flex;flex-direction:column;flex:1;min-height:0;border:0;background:linear-gradient(180deg,#f2f8fc,#fff 240px);overflow:hidden}
 .triq-inbox-screen .inbox-list-head,.refutil-chat-screen .refutil-chat-list-head{padding:14px 14px 10px;flex:none}
 .triq-inbox-screen .inbox-list-head h3{font-size:14px;margin:0}
 .triq-inbox-screen .triq-inbox-search,.refutil-chat-screen .refutil-chat-search{margin:0 12px 10px;padding:0 10px;min-height:46px;border:1px solid #d9e6ee;border-radius:12px;flex:none;display:flex;align-items:center;gap:7px;background:#fff}
 .triq-inbox-screen .triq-inbox-search input,.refutil-chat-screen .refutil-chat-search input{font-size:15px;min-width:0;flex:1;padding:10px 0;background:transparent}
 .triq-inbox-screen .triq-inbox-search .btn{min-height:40px;padding:7px;color:#245b72;font-size:12px}
 .triq-inbox-screen .triq-inbox-rows,.refutil-chat-screen .refutil-peer-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:0 8px 8px;gap:6px;overscroll-behavior:contain}
 .triq-inbox-screen .conversation-row,.refutil-chat-screen .refutil-peer{width:100%;max-width:none;min-width:0;min-height:78px;flex:none;border:1px solid #e1ebf1!important;border-radius:12px;padding:12px;gap:10px;background:#fff;align-items:center}
 .triq-inbox-screen .conversation-row.active,.refutil-chat-screen .refutil-peer.active{background:#edf7f6;border-color:#b9dad6!important}
 .triq-inbox-screen .conversation-row strong,.refutil-chat-screen .refutil-peer strong{font-size:14px;color:#173c48}
 .triq-inbox-screen .conversation-row small,.refutil-chat-screen .refutil-peer small{font-size:12px;color:#526c74;max-width:none;line-height:1.4}
 .triq-inbox-screen .conversation-row .avatar,.refutil-chat-screen .refutil-peer .avatar{width:42px;height:42px;background:#e5eefc;color:#315c9c;font-size:13px}
 .triq-inbox-screen .conversation-row>svg{flex:none;color:#78919b}
 .triq-inbox-screen .triq-pagination{flex:none;padding:8px 10px;border-top:1px solid #e4edf2;font-size:12px}
 .inbox-list-caption{flex:none;padding:8px 14px 12px;font-size:11px;color:#597078}
 .triq-inbox-screen .conversation-main,.refutil-chat-screen .refutil-thread{display:none;flex:1;min-height:0!important;height:100%;max-height:none!important;overflow:hidden}
 .triq-inbox-screen .is-thread-open .inbox-list,.refutil-chat-screen .is-thread-open .refutil-chat-list{display:none}
 .triq-inbox-screen .is-thread-open .conversation-main,.refutil-chat-screen .is-thread-open .refutil-thread{display:flex;flex-direction:column}
 .triq-inbox-screen .conversation-head,.refutil-chat-screen .refutil-thread-head{padding:10px;gap:8px;flex:none;min-height:62px;border-bottom:1px solid #dfe9ee;background:#fff}
 .inbox-mobile-back{display:inline-flex!important;align-items:center;justify-content:center;width:36px!important;height:40px!important;min-width:36px;min-height:40px!important;flex:none;border-radius:10px;background:#eff4f7!important;color:#28505e!important}
 .inbox-mobile-back>svg{transform:rotate(180deg)}
 .triq-inbox-screen .conversation-head>div{min-width:0;flex:1;gap:8px;align-items:center}
 .triq-inbox-screen .conversation-head>div .avatar{display:none}
 .triq-inbox-screen .conversation-head strong,.refutil-chat-screen .refutil-thread-head h2{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block}
 .triq-inbox-screen .conversation-head small,.refutil-chat-screen .refutil-thread-head p{font-size:10px;color:#5b737b;margin-top:3px}
 .triq-inbox-screen .conversation-head>div>span{min-width:0}
 .triq-inbox-screen .conversation-head>.btn{padding:7px 8px;min-height:38px;font-size:11px;white-space:nowrap}
 .triq-inbox-screen .conversation-head>.btn>svg{display:none}
 .triq-inbox-screen .conversation-stream,.refutil-chat-screen .refutil-thread-stream{flex:1;min-height:0!important;overflow:auto;overscroll-behavior:contain;padding:12px!important;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#f4f8fc,#f8fbfa)}
 .inbox-history-note{font-size:10px;line-height:1.5;margin:0;padding:8px 10px;border:1px solid #dfebef;border-radius:9px;background:#fff;color:#546e79;flex:none}
 .triq-inbox-screen .message-bubble{width:auto;min-width:0;max-width:100%;flex:none;align-self:stretch;margin:0;padding:12px;border-radius:13px;border:1px solid #dce9ef;background:#fff;box-shadow:0 1px 3px #133f4f04}
 .triq-inbox-screen .message-bubble>div:first-child{gap:6px;flex-wrap:wrap}.triq-inbox-screen .message-bubble>div>small{font-size:10px;color:#617782;white-space:normal}
 .triq-inbox-screen .message-bubble>strong{font-size:13px;line-height:1.5;color:#254855}.triq-inbox-screen .message-bubble>p{font-size:14px;line-height:1.55;color:#425e69;margin:7px 0 0}
 .triq-inbox-screen .message-bubble.is-draft{border:1px dashed #b8c8ed;background:#f1f5ff}.triq-inbox-screen .message-bubble.message-note{background:#fff9e9;border-color:#e9d79f}.triq-inbox-screen .message-bubble.message-whatsapp{background:#eff9f0;border-color:#c7e1cd}
 .triq-inbox-screen .message-composer{display:grid!important;grid-template-columns:minmax(0,1fr) auto;flex:none;padding:10px!important;gap:8px;align-items:center;border-top:1px solid #dce8ee;background:#fff}
 .triq-inbox-screen .inbox-message-label{grid-column:1/-1;order:0}.triq-inbox-screen .inbox-message-label textarea{display:block;width:100%;min-height:62px;max-height:110px;height:62px;resize:none;font-size:16px!important;line-height:1.4;border:1px solid #cbdde7;border-radius:11px;padding:10px 12px;color:#233f4d;background:#fbfdff}
 .triq-inbox-screen .inbox-channel-label{order:1;max-width:145px;display:block}.triq-inbox-screen .inbox-channel-label>span{display:none}.triq-inbox-screen .inbox-channel-label select{min-height:42px;font-size:13px!important;padding:8px 10px;border-radius:10px;background:#f2f6fd;border-color:#d4dfef;width:100%}
 .triq-inbox-screen .message-composer>.btn{order:2;min-height:42px;font-size:12px;padding:9px 12px;border-radius:10px;white-space:nowrap}.triq-inbox-screen .message-composer>.btn svg{width:14px}
 .triq-inbox-screen .inbox-compose-hint{order:3;margin:0;font-size:10px;line-height:1.4;color:#526b75}
 .triq-inbox-screen .empty,.refutil-chat-screen .refutil-empty{padding:25px 15px;min-height:0;margin:auto}
 .refutil-chat-screen .refutil-sound{flex:none;padding:10px 15px;border-top:1px solid #e5ebef;font-size:12px;margin:0}.refutil-chat-screen .refutil-thread-head>.avatar{width:35px;height:35px;flex:none;font-size:12px}.refutil-chat-screen .refutil-thread-head>div{min-width:0;flex:1}.refutil-chat-screen .refutil-thread-head .refutil-private{display:none}
 .refutil-chat-screen .refutil-chat-message{max-width:90%;padding:10px 12px;flex:none;box-shadow:0 1px 2px #15465a06}.refutil-chat-screen .refutil-chat-message.mine{background:#e3f3ec;border-color:#c6e4d7}.refutil-chat-screen .refutil-chat-message p{font-size:14px;line-height:1.55;color:#26464f}.refutil-chat-screen .refutil-chat-message small{font-size:10px;line-height:1.4;color:#597780}
 .refutil-chat-screen .refutil-message-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;flex:none;padding:10px;gap:8px;background:#fff}.refutil-chat-screen .refutil-composer-body{min-width:0}.refutil-chat-screen .refutil-message-composer textarea{display:block;min-height:60px;height:60px;max-height:100px;width:100%;font-size:16px;padding:9px 11px;border-radius:11px}.refutil-chat-screen .refutil-message-composer>.btn{min-height:44px;height:44px;padding:9px 12px;align-self:start;margin-top:8px;border-radius:11px;font-size:13px}
 .refutil-chat-screen .refutil-chat-file-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px}.refutil-chat-screen .refutil-chat-file-row>.btn{min-height:34px;padding:5px 8px;font-size:11px}.refutil-chat-screen .refutil-chat-file-row>small{font-size:10px;line-height:1.4;color:#5c737e;overflow-wrap:anywhere;max-width:100%}
 .refutil-note-toolbar{display:grid!important;grid-template-columns:auto 1fr;gap:10px;margin-bottom:12px!important}.refutil-note-toolbar .refutil-search{grid-column:1/-1;min-height:46px;border-radius:12px}.refutil-note-toolbar .refutil-search input{font-size:15px;padding:10px 0}.refutil-note-toolbar .refutil-segments .btn{min-height:36px;font-size:12px}.refutil-note-toolbar>span{font-size:12px;color:#5a717c;margin-left:auto}
 .refutil-note-grid{gap:12px!important}.refutil-note-card{min-height:0!important;padding:14px!important;border-color:#e5dcae!important;background:#fffdf3!important;border-radius:15px!important;box-shadow:0 3px 9px #736b2506}.refutil-note-card.is-pinned{background:#eef6ff!important;border-color:#cbdff5!important}.refutil-note-open{padding:10px 0 14px}.refutil-note-open h2{font-size:16px!important;color:#2b4856;margin-bottom:7px!important}.refutil-note-open p{font-size:14px!important;line-height:1.6!important;color:#5e6d6e;-webkit-line-clamp:4!important}.refutil-note-meta{font-size:11px!important;color:#5c737a!important}.refutil-note-card footer>small{font-size:10px!important;color:#5b737d!important}.refutil-note-card .icon-btn{min-height:40px!important;height:40px!important;width:40px!important;color:#496976}.refutil-note-card footer{padding-top:8px!important}
 .refutil-note-modal,.brand-mail-modal,.wa-setup-modal,.wa-compose-modal{width:100%!important;max-width:100%!important;max-height:100%!important;height:100%!important;border-radius:16px 16px 0 0!important;margin:0!important;display:flex!important;flex-direction:column;overflow:hidden}
 .refutil-note-modal>.modal-body,.brand-mail-modal>.modal-body,.wa-setup-modal>.modal-body,.wa-compose-modal>.modal-body{padding:14px!important;min-height:0;overflow:auto;overscroll-behavior:contain}
 .refutil-note-modal .refutil-stack{gap:13px}.refutil-note-modal .refutil-field>span,.brand-mail-form .field>span,.wa-form .field>span{font-size:13px!important;color:#345965!important;font-weight:600}.refutil-note-modal .refutil-field input,.refutil-note-modal .refutil-field select,.refutil-note-modal .refutil-field textarea,.brand-mail-form input,.brand-mail-form textarea,.brand-mail-form select,.wa-form input:not([type=checkbox]),.wa-form textarea,.wa-form select{font-size:16px!important;min-height:44px;padding:10px 11px!important;border-radius:10px!important}
 .refutil-note-modal textarea[name=body]{min-height:220px;resize:none;line-height:1.65}.refutil-note-modal .form-actions{position:sticky;bottom:-14px;margin:0 -14px -14px;padding:12px 14px;background:#fff;border-top:1px solid #e0e9ed;z-index:2}.refutil-note-modal .form-actions>.btn{min-height:46px;flex:1}
 .brand-mail-compose-modal .brand-mail-form>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.brand-mail-compose-modal .brand-mail-form>.form-grid>.field:nth-child(n+3){grid-column:1/-1}.brand-mail-compose-modal .brand-mail-form>.form-grid select{font-size:13px!important;padding:10px 8px!important}.brand-mail-compose-modal textarea[name=body]{min-height:180px;font-size:16px!important;line-height:1.65}.brand-mail-compose-modal .brand-mail-signature-preview{padding:12px;max-height:none}.brand-mail-form .field>small,.wa-form .field>small{font-size:11px!important;line-height:1.5;color:#5e7680!important}
 .brand-mail-sticky-actions,.wa-sticky-actions{bottom:-14px!important;margin:0 -14px -14px!important;padding:12px 14px!important;border-top:1px solid #dfe9ee;background:#fff;box-shadow:0 -4px 14px #18465a06;z-index:2}.brand-mail-sticky-actions>.btn,.wa-sticky-actions>.btn{flex:1;min-height:46px;justify-content:center;font-size:13px;white-space:normal}.brand-mail-form .brand-mail-note,.wa-form>.wa-note{font-size:10px!important;line-height:1.5!important;color:#617984;background:#f5f9fc;margin-top:10px}
 .wa-check,.brand-mail-members>label,.wa-members>label,.refutil-check{display:grid!important;grid-template-columns:22px minmax(0,1fr);align-items:start!important;gap:9px!important;padding:11px!important;font-size:12px;line-height:1.55;border-radius:10px;background:#f5f8fb}.wa-check input,.brand-mail-members input,.wa-members input,.refutil-check input{width:20px!important;height:20px!important;min-height:20px!important;margin:1px 0 0!important;padding:0!important;justify-self:start;accent-color:#0b625b}.wa-check>span,.brand-mail-members>label>span,.wa-members>label>span,.refutil-check>span{min-width:0;overflow-wrap:anywhere}
 .wa-window-note{font-size:12px!important;line-height:1.5!important}.wa-template-preview{font-size:14px;line-height:1.6}.wa-actions{gap:8px}.wa-actions .btn{min-height:40px;font-size:12px}.wa-history{max-height:180px}.wa-history p{font-size:12px}.wa-step-intro{gap:6px}.wa-step-intro span{font-size:11px}
}
@media(max-width:360px){.triq-inbox-screen .conversation-head>.btn{max-width:82px;font-size:10px}.triq-inbox-screen .message-composer>.btn{font-size:11px;padding-inline:9px}.triq-inbox-screen .inbox-channel-label{max-width:115px}.refutil-chat-screen .refutil-message-composer>.btn svg{display:none}.brand-mail-compose-modal .brand-mail-form>.form-grid{grid-template-columns:1fr}.brand-mail-compose-modal .brand-mail-form>.form-grid>.field{grid-column:1/-1}}
@media(max-height:500px) and (max-width:760px){.triq-inbox-screen>.page-head,.refutil-chat-screen>.page-head{display:none}.triq-inbox-screen .inbox-compose-hint{display:none}.triq-inbox-screen .inbox-message-label textarea{min-height:44px;height:44px}.triq-inbox-screen .conversation-head,.refutil-chat-screen .refutil-thread-head{min-height:44px;padding-block:5px}.triq-inbox-screen .message-composer{padding:7px!important;gap:5px}}
@media(max-width:760px){.triq-inbox-screen .inbox-list,.triq-inbox-screen .triq-inbox-rows,.refutil-chat-screen .refutil-chat-list,.refutil-chat-screen .refutil-peer-list{max-height:none!important}.triq-inbox-screen .inbox-list-caption{margin-top:auto}.triq-inbox-screen .message-bubble .triq-message-file{overflow-wrap:anywhere}.triq-inbox-screen .message-bubble .triq-message-file small{font-size:10px;color:#5e7580}}
/* Legacy style.css forced conversation-main to display:flex!important.
   State controls must win over that rule, including before the first selection. */
@media(max-width:760px){
 body .triq-inbox-screen .inbox-layout:not(.is-thread-open)>.conversation-main,
 body .refutil-chat-screen .refutil-chat:not(.is-thread-open)>.refutil-thread{display:none!important}
 body .triq-inbox-screen .inbox-layout:not(.is-thread-open)>.inbox-list,
 body .refutil-chat-screen .refutil-chat:not(.is-thread-open)>.refutil-chat-list{display:flex!important}
 body .triq-inbox-screen .inbox-layout.is-thread-open>.inbox-list,
 body .refutil-chat-screen .refutil-chat.is-thread-open>.refutil-chat-list{display:none!important}
 body .triq-inbox-screen .inbox-layout.is-thread-open>.conversation-main,
 body .refutil-chat-screen .refutil-chat.is-thread-open>.refutil-thread{display:flex!important}
 body .triq-inbox-screen .inbox-list{padding:0;align-items:stretch;scroll-snap-type:none}
 body .triq-inbox-screen .inbox-list-head{display:flex!important;align-items:center;justify-content:space-between}
 body .triq-inbox-screen .conversation-stream,body .refutil-chat-screen .refutil-thread-stream{max-height:none!important}
}
