/* Correspondence columns own their scroll; the composer stays beside the feed. */
.chat-search-box{position:relative;flex:1;min-width:80px;margin:0}
.chat-search-box input{box-sizing:border-box;width:100%;padding:8px 24px 8px 32px;min-width:0}
.chat-search-icon{position:absolute;left:8px;top:50%;transform:translateY(-50%);display:flex;color:#63766a;pointer-events:none}
.chat-search-icon svg{width:18px;height:18px}
.chat-search-box input::-webkit-search-cancel-button{-webkit-appearance:none}
.chat-search-box button{position:absolute;right:4px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#63766a;padding:0 7px;font-size:24px;line-height:28px}
.chat-search-status,.chat-list-loading{flex:none;font-size:12px;margin:0 0 7px;color:var(--muted)}
.chat-search-status:empty{display:none}
body.correspondence-workspace #systemStrip,body.correspondence-workspace main>footer{display:none}
body.correspondence-workspace #content{height:calc(var(--crm-visible-height,100dvh) - 40px);min-height:0}
.questions-panel{display:flex;flex-direction:column;height:100%;min-height:0;padding:10px}
.questions-panel>.orders-heading{flex:none;padding:0;gap:8px;margin-bottom:8px}
.questions-panel>.orders-heading h1{font-size:22px}
.questions-panel .question-feedback{margin:3px 0 7px}
.questions-panel .question-feedback:empty{display:none}
.question-connection{display:flex;flex:none;align-items:center;gap:10px;margin:3px 0 8px;padding:8px 10px;border:1px solid #e8c68a;border-radius:8px;background:#fff9ed;color:#684917;font-size:13px}
.question-connection[hidden]{display:none}
.question-connection span{flex:1;min-width:0}
.question-connection button{flex:none}
.questions-panel .questions-layout{display:grid;grid-template-columns:minmax(320px,.7fr) minmax(320px,1.1fr) minmax(330px,1.3fr);gap:0;flex:1;min-height:0;margin:0;align-items:stretch}
.questions-panel .question-column{display:flex;flex-direction:column;min-height:0;padding-right:14px}
.questions-panel .question-tabs{flex:none;margin:0 0 10px;display:flex;align-items:center;gap:6px}
.questions-panel .question-tabs [data-question-mode]{flex:none;white-space:nowrap;padding:8px 4px}
.questions-panel .question-tabs [data-question-mode]{display:inline-flex;align-items:center;gap:6px}
.chat-new-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;box-sizing:border-box;padding:0 4px;border-radius:50%;background:#d92d38;color:#fff;font-size:12px;line-height:1;font-weight:700}
.chat-new-count[hidden]{display:none}
.questions-panel .question-tabs .chat-list-refresh{flex:none;margin-left:0;display:inline-flex;align-items:center;justify-content:center;width:36px;padding:7px}
.chat-list-refresh svg{width:19px;height:19px}
.questions-panel .question-tabs button[aria-selected=true],.chat-mobile-tabs button[aria-selected=true]{background:#e3ebe1;color:#172f20;font-weight:700}
.questions-panel .question-column .question-list{display:block;flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
.questions-panel .question-list-item{margin-bottom:7px;position:relative}
.chat-list-info{display:flex;flex:1;flex-wrap:wrap;align-items:baseline;gap:3px 8px;min-width:0;overflow-wrap:anywhere}
.chat-avatars{display:inline-flex;align-items:center;flex:none;gap:3px;margin-right:5px}
.chat-avatar{position:relative;display:inline-grid;place-items:center;width:34px;height:34px;flex:none;overflow:hidden;border-radius:50%;background:#e3ebe1;color:#42614b;font-size:12px;font-weight:700}
.chat-avatar-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#e3ebe1}
.chat-avatar-image[hidden]{display:none}
.chat-desktop-header .chat-avatar,.chat-mobile-info .chat-avatar{width:30px;height:30px}
.chat-customer-name,.chat-customer-city{font-size:14px}
.chat-customer-city{color:var(--muted)}
.chat-unread-count{flex:none;min-width:20px;padding:1px 5px;border-radius:12px;background:#d92d38;color:#fff;font-size:12px;line-height:18px;font-weight:700;text-align:center}
.chat-order-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px}
.chat-order-badge svg{width:22px;height:22px}
.chat-order-badge.has-order{color:#218447}
.chat-order-badge.no-order{color:#9c7100}
.chat-order-badge.no-order svg{fill:#fff2b5}
.question-list-meta{display:inline-flex;align-items:baseline;gap:6px;min-height:20px;white-space:nowrap}
.questions-panel .question-list-meta time{margin:0;line-height:20px}
.chat-channel-icon{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:20px;height:20px;background:transparent;padding:0}
.chat-channel-icon svg{display:block;width:19px;height:19px}
.chat-channel--telegram{color:#1686b7}.chat-channel--max{color:#7161d1}.chat-channel--whatsapp{color:#218447}
.questions-panel .question-snippet{-webkit-line-clamp:2}
.questions-panel .conversation-column{display:flex;flex-direction:column;min-height:0;padding:0 14px;border-left:1px solid var(--line)}
.questions-panel [data-question-editor],.questions-panel .conversation-editor{display:flex;flex:1;flex-direction:column;min-height:0;height:100%}
.chat-empty{display:grid;place-items:center;flex:1;height:100%;color:var(--muted);font-size:18px;min-height:100px}
.chat-desktop-header{display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;max-height:100px;overflow-y:auto;padding:0 0 5px;flex:none;line-height:20px}
.chat-info-item{display:inline-flex;align-items:center;gap:3px;font-size:13px;max-width:100%;overflow-wrap:anywhere}
.chat-copy{background:transparent;border:0;color:#334c36;display:inline-flex;padding:3px;cursor:pointer}
.chat-copy svg{width:15px;height:15px}
.questions-panel .chat-read{display:inline-flex;align-items:center;gap:4px;margin-left:auto;padding:2px 0;border:0;border-radius:0;background:transparent;color:#42614b;font:inherit;font-size:12px;line-height:20px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.questions-panel .chat-read:hover{color:#1b4529;background:transparent}
.chat-read svg{width:15px;height:15px;flex:none}
.questions-panel .conversation-feed{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
.questions-panel .conversation-order{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 0 0 14px;margin:0;border-top:0;border-left:1px solid var(--line)}
.questions-panel .conversation-order #questionOrderPreview{min-height:100%;min-width:0}
.questions-panel .conversation-order .order-page-head{flex-wrap:wrap}
.questions-panel .conversation-order .order-page-head h1{font-size:20px}
.questions-panel .conversation-order .overview-grid{grid-template-columns:minmax(0,1fr)}
.questions-panel .conversation-order .order-pane{min-width:0}
.questions-panel .conversation-order .order-tabs{overflow-x:auto;max-width:100%}
.questions-panel .conversation-order .editable-basics{grid-template-columns:minmax(0,1fr)}
.questions-panel .conversation-order .summary-view,.questions-panel .conversation-order .order-item,.questions-panel .conversation-order pre{overflow-wrap:anywhere;min-width:0}
.questions-panel .conversation-order input:not([type=checkbox]),.questions-panel .conversation-order select,.questions-panel .conversation-order textarea{max-width:100%;min-width:0}
.questions-panel .conversation-order .cdek-inline-fields,.questions-panel .conversation-order .cdek-sender-fields{grid-template-columns:minmax(0,1fr)}
.questions-panel .conversation-order .cdek-package-fields,.questions-panel .conversation-order .cdek-goods-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.questions-panel .conversation-order .cdek-package-fields .dimension-select,.questions-panel .conversation-order .wide-field{grid-column:1/-1}
.questions-panel .conversation-order .tariff-picker,.questions-panel .conversation-order .journal-search{grid-template-columns:minmax(0,1fr);gap:7px}
.questions-panel .conversation-order .previous-orders-wrap,.questions-panel .conversation-order .table-wrap{max-width:100%;overflow-x:auto}
.questions-panel .conversation-order .cdek-form-table,.questions-panel .conversation-order .cdek-form-table tbody,.questions-panel .conversation-order .cdek-form-table tr,.questions-panel .conversation-order .cdek-form-table th,.questions-panel .conversation-order .cdek-form-table td{display:block;width:100%;box-sizing:border-box}
.questions-panel .conversation-order .cdek-form-table th{border:0;border-radius:7px 7px 0 0;padding:8px 10px}
.questions-panel .conversation-order .cdek-form-table td{border-radius:0 0 7px 7px;padding:9px 10px}
.questions-panel .conversation-order .cdek-command-card{flex-wrap:wrap;gap:10px}
.questions-panel .conversation-order .cdek-command-card .cdek-current{min-width:0}
.questions-panel .chat-compose-form{flex:none;margin:12px 0 0}
.chat-composer{display:flex;align-items:center;gap:6px;border:1px solid #c5d3c4;border-radius:24px;background:#fff;padding:2px 6px;min-height:44px;box-sizing:border-box;position:relative}
.questions-panel .chat-composer textarea{display:block;flex:1;width:0;border:0;border-radius:0;box-shadow:none;outline:none;resize:none;overflow-y:auto;padding:0;min-height:24px;height:24px;max-height:150px;line-height:24px;background:transparent}
.chat-attach,.chat-send{display:inline-flex;align-items:center;justify-content:center;border:0;width:38px;height:38px;flex:none;border-radius:50%;cursor:pointer}
.chat-attach{background:transparent;color:#334c36;font-size:28px;line-height:1}
.chat-send{background:#2f7243;color:#fff}
.chat-send svg{width:23px;height:23px}
.chat-attach svg{width:23px;height:23px}
.chat-send[hidden],.chat-attach-menu[hidden]{display:none}
.chat-attach-wrap{position:relative;flex:none}
.chat-attach-menu{position:absolute;bottom:50px;left:0;z-index:5;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 5px 25px #0002;min-width:170px;padding:6px}
.chat-attach-menu button{display:block;padding:12px;width:100%;border:0;background:transparent;text-align:left;border-radius:7px;cursor:pointer;font:inherit}
.chat-attach-menu button:hover{background:#f0f3ef}
.chat-attachment-preview{font-size:13px;padding:6px 10px;cursor:pointer;color:#28653b;overflow-wrap:anywhere}
.chat-attachment-preview:empty{display:none}
.chat-attachment-preview:not(:empty)::after{content:' ×';font-weight:700}
.chat-compose-form .error:empty{display:none}
.chat-file{display:block;margin-top:7px;overflow-wrap:anywhere}
.chat-file-label{display:inline-flex;align-items:center;gap:5px;max-width:100%;vertical-align:middle;overflow-wrap:anywhere}
.chat-file-label>svg{width:17px;height:17px;flex:none}
.chat-file-label>span{min-width:0}
.chat-file-label small{white-space:nowrap;font-size:11px;color:var(--muted)}
.chat-image-thumbnail{display:block;width:auto;max-width:min(100%,320px);height:auto;max-height:240px;object-fit:contain;border-radius:6px;margin-bottom:6px}
.chat-attachment-preview .chat-image-thumbnail{max-width:100px;max-height:72px}
.chat-message-status.read{color:#217fb3}
.chat-message-status.sent,.chat-message-status.delivered{color:#66736d}
.chat-status-checks{height:17px;width:auto;vertical-align:-3px}
.chat-status-clock{width:14px;height:14px;vertical-align:-2px;margin-right:4px}
.chat-mobile-header,.chat-mobile-tabs,.mobile-bottom-nav{display:none}
.chat-create-order{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:#2c7a42;color:#fff;font:inherit;font-size:24px;line-height:1;cursor:pointer}
.chat-create-order:hover{background:#205d32}
.chat-create-order:focus-visible{outline:2px solid #2c7a42;outline-offset:2px}
.chat-order-empty-label{color:var(--muted);font-size:12px}
.chat-mobile-tabs .chat-create-order{flex:0 0 32px;align-self:center;padding:0;border-radius:8px;background:#2c7a42;color:#fff;font-size:24px}
/* Unfinished storefront cart in place of an order (customer without live orders). */
.chat-cart{display:grid;gap:8px;padding:4px 0 12px;min-width:0}
.chat-cart-head h2{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;font-size:18px}
.chat-cart-badge{padding:2px 8px;border-radius:999px;background:#fff4e0;color:#8a5a00;font-size:12px;font-weight:600}
.chat-cart-meta{margin:4px 0 0;color:var(--muted);font-size:12px}
.chat-cart-lines{display:grid;gap:0;margin:0;padding:0;list-style:none;border:1px solid var(--line);border-radius:10px}
.chat-cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:8px 10px;min-width:0}
.chat-cart-line+.chat-cart-line{border-top:1px solid var(--line)}
.chat-cart-title{grid-column:1/-1;overflow-wrap:anywhere;font-size:14px}
.chat-cart-qty{color:var(--muted);font-size:12px}
.chat-cart-sum{font-size:13px;text-align:right;white-space:nowrap}
.chat-cart-total{display:flex;justify-content:space-between;gap:10px;padding:0 10px;font-size:14px}
.chat-cart-total strong{text-align:right}
.chat-cart-note{margin:0;padding:0 10px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1250px){
 .questions-panel .questions-layout{grid-template-columns:minmax(310px,.65fr) minmax(270px,1fr) minmax(280px,1fr)}
 .questions-panel{padding:10px}
 .questions-panel .conversation-column{padding:0 10px}
 .questions-panel .conversation-order{padding-left:10px}
}
@media(max-width:1000px){
 :root{--crm-mobile-nav-height:48px}
 :root:has(.chat-composer textarea:focus){--crm-nav-reserve:0px}
 body:has(.chat-composer textarea:focus) .mobile-bottom-nav{display:none}
 #shell main{padding-bottom:calc(var(--crm-nav-reserve,48px) + 8px)}
 .mobile-bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;box-sizing:border-box;align-items:center;justify-content:space-around;height:calc(var(--crm-mobile-nav-height) + env(safe-area-inset-bottom));padding:0 0 env(safe-area-inset-bottom);background:#fff;border-top:1px solid #ddd}
 .mobile-bottom-nav button{position:relative;display:flex;align-items:center;justify-content:center;background:transparent;color:#000;border:0;width:70px;height:44px;padding:10px;cursor:pointer}
 .mobile-bottom-nav svg{width:24px;height:24px;stroke-width:1.5}
 .mobile-chat-count{position:absolute;top:1px;right:8px;min-width:18px;box-sizing:border-box;padding:1px 4px;border-radius:10px;background:#167a35;color:#fff;font-size:11px;line-height:16px;text-align:center;font-weight:700}
 .mobile-bottom-nav button.active svg{stroke-width:2.8}
 .mobile-bottom-nav button.active{font-weight:800}
 #mobileBottomNav>#burger{width:70px;height:44px;padding:10px;color:#000}
}
@media(max-width:760px){
 body.correspondence-workspace #content{height:calc(var(--crm-visible-height,100dvh) - 54px - var(--crm-nav-reserve,48px));min-height:0}
 body.correspondence-workspace #shell main{padding:0 0 var(--crm-nav-reserve,48px)}
 .questions-panel{padding:6px;border:0;border-radius:0;box-shadow:none}
 .questions-panel .question-list-item{border:0;border-radius:0;margin:0;padding:10px 8px;background:transparent}
 .questions-panel .question-list-item+.question-list-item{border-top:1px solid var(--line)}
 .questions-panel .question-list-item.is-selected{background:#edf3ed}
 #mobileTop.has-chat-toolbar{gap:4px;padding:0 6px}
 #mobileTop .mobile-logo{display:none}
 #mobileTop.has-chat-toolbar :is(#mobileHealth,#mobileCount){display:none!important}
 #mobileTop>.question-tabs{display:flex;align-items:center;gap:2px;flex:1;min-width:0;margin:0;padding:0;border:0}
 #mobileTop>.question-tabs[hidden]{display:none}
 #mobileTop .question-tabs [data-question-mode]{display:inline-flex;align-items:center;justify-content:center;gap:3px;flex:none;white-space:nowrap;padding:8px 4px;min-height:40px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px}
 #mobileTop .question-tabs [aria-selected=true]{background:#e3ebe1;color:#172f20;font-weight:700}
 #mobileTop .question-tabs .chat-list-refresh{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:40px;padding:8px;border:0;background:transparent}
 #mobileTop .chat-search-box{flex:0 1 280px;min-width:72px}
 #mobileTop .chat-search-box input{height:40px;padding:8px 21px 8px 29px}
 #mobileTop .chat-new-count{font-size:10px;min-width:17px;height:17px;padding:0 3px}
 .questions-panel>.orders-heading{margin-bottom:7px}
 .questions-panel .questions-layout{display:flex;min-height:0}
 .questions-panel .question-column{display:flex;flex:1;padding:0;min-height:0}
 .questions-panel .question-column .question-list{max-height:none;min-height:0}
 .questions-panel .conversation-column,.questions-panel .conversation-order{display:none;min-height:0;padding:0;border:0}
 .conversation-open .questions-panel>.orders-heading{display:none}
 .conversation-open .questions-panel .question-column{display:none}
 .conversation-open .questions-panel .conversation-column{display:flex;flex:1}
 .conversation-open .questions-panel .chat-mobile-header{display:flex;gap:7px;flex:none;max-height:100px;overflow-y:auto;padding-bottom:5px;align-items:flex-start}
 .conversation-back{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;padding:6px;border:0;background:transparent;cursor:pointer;color:#000;margin:0}
 .conversation-back svg{width:24px;height:24px}
 .chat-mobile-info{display:flex;flex:1;min-width:0;gap:8px;align-items:flex-start;line-height:1}
 .chat-mobile-info .chat-avatars{margin-right:0}
 .chat-mobile-contact{display:flex;flex:1;min-width:0;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:3px 8px;padding-top:2px;line-height:1}
 .chat-mobile-contact .chat-info-item{line-height:1;min-height:16px}
 .chat-mobile-info .chat-info-item:first-child{font-weight:700;font-size:15px}
 .questions-panel .chat-mobile-info .chat-read{flex:none;padding:9px;width:40px;height:40px;text-decoration:none;background:transparent;color:#66736d}
 .questions-panel .chat-mobile-info .chat-read[data-chat-unread=true]{color:#1475bd}
 .chat-mobile-info .chat-read svg{width:22px;height:22px}
 .chat-mobile-info .chat-read-label{display:none}
 #mobileTop>.chat-mobile-header{display:flex;flex:1;min-width:0;gap:5px;align-items:center;max-height:48px;padding:0}
 #mobileTop>.chat-mobile-header[hidden]{display:none}
 #mobileTop .chat-mobile-info{align-items:center;line-height:1.2}
 #mobileTop .chat-mobile-contact{align-items:center;align-content:center;padding:0;line-height:1.2;max-height:42px;overflow:hidden}
 #mobileTop .chat-info-item{line-height:1.2;overflow-wrap:anywhere}
 #mobileTop .chat-mobile-contact>.chat-info-item:not(:first-child){max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #mobileTop .chat-read{display:flex;align-items:center;justify-content:center;flex:none;margin:0;padding:9px;width:40px;height:40px;border:0;background:transparent;color:#000;cursor:pointer}
 #mobileTop .chat-read[data-chat-unread=true]{color:#1475bd}
 #mobileTop .chat-read[data-chat-unread=true] circle:first-child{fill:currentColor}
 #mobileTop .chat-read circle+circle{display:none}
 .conversation-open .questions-panel .chat-mobile-tabs{display:flex;flex:none;border-bottom:1px solid var(--line);margin-bottom:8px;gap:8px}
 .chat-mobile-tabs button{flex:1;background:#fff;border:0;border-radius:7px 7px 0 0;padding:10px;font:inherit;cursor:pointer}
 .chat-mobile-tabs button:disabled{color:var(--muted);background:transparent;cursor:default}
 .questions-panel .chat-desktop-header{display:none}
 .questions-panel .conversation-feed{padding:9px;min-height:0;max-height:none}
 .questions-panel .chat-compose-form{margin-top:8px}
 .questions-panel .chat-composer textarea{font-size:16px}
 .conversation-order-open .questions-panel .conversation-column{display:none}
 .conversation-open.conversation-order-open .questions-panel .conversation-order{display:block;flex:1;overflow:auto}
 .questions-panel .question-feedback{font-size:12px;margin:4px 0 8px}
 .chat-bubble{max-width:92%}
}
/* The order tab shares this composer without nesting a second list or order. */
.chat-single-workspace{height:min(680px,calc(var(--crm-visible-height,100dvh) - var(--crm-nav-reserve,0px) - 150px));min-height:280px;min-width:0}
.chat-single-workspace .questions-panel{padding:0;border:0;box-shadow:none;border-radius:0}
.chat-single-workspace .questions-panel>.orders-heading,.chat-single-workspace .question-column,.chat-single-workspace .conversation-order,.chat-single-workspace .chat-mobile-header,.chat-single-workspace .chat-mobile-tabs{display:none!important}
.chat-single-workspace .questions-layout{display:flex}
.chat-single-workspace .questions-panel .conversation-column{display:flex!important;flex:1;padding:0;border:0;min-width:0}
.chat-single-workspace .questions-panel .chat-desktop-header{display:flex}
.chat-single-workspace .question-feedback:empty{display:none}
@media(max-width:760px){
 .chat-single-workspace{height:calc(var(--crm-visible-height,100dvh) - var(--crm-nav-reserve,48px) - 175px);min-height:240px}
 .chat-single-workspace .questions-panel .conversation-feed{padding:9px 0}
 .chat-single-workspace .chat-desktop-header{max-height:100px;padding-bottom:6px}
}

.chat-template{display:inline-flex;align-items:center;justify-content:center;border:0;width:38px;height:38px;flex:none;border-radius:50%;background:transparent;color:#334c36;cursor:pointer}
.chat-template svg{width:23px;height:23px}
.chat-template:disabled{opacity:.45;cursor:default}
.chat-template:is(:hover,:focus-visible){background:#edf2ec}
.chat-template:focus-visible,.chat-template-menu button:focus-visible{outline:2px solid #2f7243;outline-offset:2px}
.chat-template-menu{position:absolute;bottom:calc(100% + 8px);left:0;z-index:6;width:min(360px,calc(100vw - 48px));max-height:min(320px,45dvh);overflow:auto;box-sizing:border-box;padding:8px;background:#fff;border:1px solid #c5d3c4;border-radius:12px;box-shadow:0 5px 25px #0002}
.chat-template-menu[hidden]{display:none}
.chat-template-menu .chat-template-heading{display:block;padding:8px 10px;font-size:13px;color:#49624c}
.chat-template-menu p{margin:8px 10px;font-size:13px;line-height:1.5}
.chat-template-menu button{display:block;width:100%;min-height:44px;padding:10px;border:0;border-radius:7px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer;overflow-wrap:anywhere}
.chat-template-menu button:hover{background:#f0f3ef}
.chat-template-menu button strong{display:block;font-size:14px;line-height:1.4}
.chat-template-menu button span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:4px;font-size:12px;line-height:1.4;color:#526554;white-space:pre-wrap}
.chat-message-actions{display:flex;gap:4px;margin-top:6px;justify-content:flex-end}
.chat-message-actions button{min-height:32px;border:0;background:transparent;color:#49624c;font:inherit;font-size:12px;padding:4px 7px;cursor:pointer}
.chat-message-actions button:disabled{opacity:.55;cursor:default}
.chat-message-actions button:is(:hover,:focus-visible){text-decoration:underline}
.chat-message-editor{margin-top:8px;font-size:13px}
.chat-message-editor label{display:block}
.chat-message-editor textarea{display:block;box-sizing:border-box;width:100%;min-height:88px;margin:6px 0;padding:8px;font:inherit;line-height:1.5;background:#fff;border:1px solid #aebfac;border-radius:8px;resize:vertical}
.chat-message-editor>div{display:flex;gap:8px;flex-wrap:wrap}
.chat-message-editor [role=status]{margin:6px 0 0;color:#8c3232}
.chat-message-editor :focus-visible,.chat-message-actions :focus-visible{outline:2px solid #2f7243;outline-offset:2px}
@media(max-width:760px){.chat-message-actions button{min-height:40px}.chat-message-editor textarea{font-size:16px}}
.chat-message-resolve{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.chat-message-resolve button{min-height:32px}
.chat-message-resolve :focus-visible{outline:2px solid #2f7243;outline-offset:2px}
@media(max-width:760px){.chat-message-resolve button{min-height:40px}}

/* Message tools stay beside the receipt; read toggles match the mobile circle. */
.chat-message-controls { display:inline-flex; align-items:center; gap:4px; vertical-align:middle; white-space:nowrap; }
.chat-message-controls .chat-message-actions { display:inline-flex; align-items:center; gap:2px; margin:0; }
.chat-message-controls .chat-message-actions button { display:inline-flex; align-items:center; justify-content:center; min-height:28px; width:28px; height:28px; padding:5px; border:0; border-radius:4px; background:transparent; color:#79837d; }
.chat-message-actions button svg { width:17px; height:17px; }
.chat-message-controls .chat-message-actions button:is(:hover,:focus-visible) { background:#00000008; text-decoration:none; }
.questions-panel .chat-read { align-items:center; justify-content:center; flex:none; width:40px; height:40px; padding:9px; color:#000; text-decoration:none; }
.questions-panel .chat-read:hover { color:#000; }
.questions-panel .chat-read svg { width:22px; height:22px; }
.chat-read .chat-read-label,
.chat-read circle + circle { display:none; }
.questions-panel .chat-read[data-chat-unread=true] { color:#1475bd; }
.chat-read[data-chat-unread=true] circle:first-child { fill:currentColor; }
@media(max-width:760px) {
  .chat-message-controls .chat-message-actions button { min-height:32px; width:32px; height:32px; padding:7px; }
}
