/* Shared inbox: stable controls and responsive follow-up workspace. */
.table-toolbar{align-items:flex-end}.table-toolbar>button,.table-toolbar>.open-form-button,.inbox-toolbar>button{align-self:flex-end;flex:0 0 auto;min-height:48px;height:auto;max-width:100%;white-space:nowrap;line-height:1.3;padding:12px 18px}.table-toolbar label{flex:1 1 220px;max-width:320px;margin-bottom:0}.table-toolbar select{min-height:48px}.desk-icon{width:18px;height:18px;fill:currentColor;flex-shrink:0;vertical-align:middle}.desk-app{display:grid;grid-template-columns:180px 310px minmax(0,1fr);height:calc(100dvh - 220px);min-height:620px;max-height:1100px;background:#fff;border:1px solid #dbe5ed;border-radius:16px;overflow:hidden;color:#15334b;font-family:Arial,sans-serif;font-size:15px}.desk-app *{box-sizing:border-box}.desk-app button,.desk-details-dialog button{font-family:inherit;font-size:14px;line-height:1.35;white-space:nowrap;min-height:42px;height:auto;cursor:pointer;border:0;border-radius:9px;margin:0;padding:10px 15px;background:#eff4f8;color:#24445e;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0}.desk-app button:hover{background:#e3edf4}.desk-app button:focus-visible,.desk-details-dialog button:focus-visible{outline:3px solid #469bda;outline-offset:2px}.desk-app button:disabled{opacity:.55;cursor:not-allowed}.desk-filters{padding:24px 12px;background:#f6f9fc;border-right:1px solid #e0e8ee;display:flex;flex-direction:column;gap:8px}.desk-filter-heading{font-size:11px;font-weight:700;letter-spacing:1.7px;color:#8295a6;padding:0 10px 15px}.desk-filters>button{justify-content:space-between;text-align:left;font-size:13px;padding:12px 10px;background:transparent;white-space:normal}.desk-filters>button.active{background:#dfeff0;color:#116c6b;font-weight:700}.desk-filters>button span{padding:3px 7px;border-radius:6px;background:#e9eff4;font-size:11px}.desk-filter-note{margin-top:auto;padding:18px 10px;color:#8a9aaa;font-size:12px;line-height:1.7}.desk-list-panel{min-width:0;display:flex;flex-direction:column;border-right:1px solid #e0e8ee;overflow:hidden}.desk-list-panel>header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:22px 18px 10px}.desk-list-panel h2{font-size:19px;margin:0}.desk-search{padding:10px 18px;margin:0}.desk-search>span{display:none}.desk-search input{font-size:14px;width:100%;min-width:0;min-height:44px;background:#f7f9fc;border:1px solid #dfe7ee;border-radius:9px;padding:10px}.desk-list-status{font-size:12px;color:#8195a6;margin:0;padding:0 18px 12px}.desk-chat-list{overflow:auto;flex:1}.desk-chat-list .desk-chat-card{display:flex;width:100%;align-items:flex-start;gap:11px;text-align:left;white-space:normal;padding:18px 14px;border-radius:0;background:#fff;border-bottom:1px solid #edf1f5;border-left:3px solid transparent}.desk-chat-list .desk-chat-card.selected{background:#edf7f6;border-left-color:#158681}.desk-avatar{width:39px;height:39px;border-radius:13px;background:#dff1eb;color:#247c68;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;flex-shrink:0}.desk-chat-card-body{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}.desk-chat-card-body strong{font-size:14px;color:#17364c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.desk-chat-card-body>span{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#748a9a}.desk-chat-card-body small{font-size:11px;color:#7b8c9d;line-height:1.5}.desk-chat-signal{color:#bd1d37;font-size:20px;font-weight:700}.desk-list-empty{padding:25px;font-size:14px;color:#899ba9}.desk-conversation{display:flex;min-width:0;flex-direction:column;overflow:hidden;background:#f5f8fb}.desk-empty{margin:auto;max-width:400px;padding:35px;text-align:center;color:#7c91a1;line-height:1.8}.desk-empty h2{font-size:23px;color:#29495c}.desk-empty-icon{display:flex;background:#e5f1ed;width:72px;height:72px;align-items:center;justify-content:center;margin:auto;border-radius:22px;color:#329471}.desk-empty-icon svg{width:35px;height:35px}.desk-thread-heading{background:#fff;display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid #e1e9ef;flex-shrink:0;flex-wrap:wrap}.desk-thread-person{flex:1;min-width:90px}.desk-thread-person h2{font-size:18px;margin:0;overflow-wrap:anywhere}.desk-thread-person p{font-size:12px;margin:5px 0 0;color:#7c92a2}.desk-thread-heading .desk-back{display:none}.desk-timeline{overflow:auto;flex:1;padding:24px;display:flex;flex-direction:column;gap:15px}.desk-bubble{padding:14px 17px;border:1px solid #e0e7ed;background:white;border-radius:0 14px 14px 14px;max-width:85%;align-self:flex-start;box-shadow:0 2px 3px #16384b03}.desk-bubble.out{align-self:flex-end;background:#e5f3ed;border-color:#d6e9df;border-radius:14px 0 14px 14px}.desk-bubble.internal{align-self:stretch;max-width:100%;background:#fff9e9;border-color:#f3e7c6;border-radius:10px}.desk-bubble p{font-size:15px;line-height:1.6;margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}.desk-bubble strong{display:block;font-size:11px;color:#94723a;margin-bottom:8px}.desk-bubble time{font-size:10px;color:#81939f}.desk-send-info{color:#b62a43;font-size:13px;padding:0 20px}.desk-composer{background:#fff;padding:15px 20px 20px;border-top:1px solid #e1e9ef}.desk-composer-tabs{display:flex;gap:8px;margin-bottom:10px}.desk-composer-tabs button{font-size:12px;min-height:32px;padding:7px 11px;background:none}.desk-composer-tabs button.active{color:#188178;background:#e9f4f0;font-weight:700}.desk-composer>label{margin:0}.desk-composer-label{display:none}.desk-composer textarea{width:100%;min-height:76px;max-height:180px;resize:vertical;border:1px solid #dde6ec;border-radius:10px;padding:13px;font-family:inherit;font-size:15px;line-height:1.5}.desk-composer-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding-top:12px}.desk-composer-footer span{font-size:11px;line-height:1.5;color:#82929e}.desk-composer-footer .desk-send-button{background:#137e78;color:#fff;font-weight:700}.desk-details-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 30px);padding:28px;border:1px solid #dfe7ec;border-radius:18px;box-shadow:0 30px 100px #122d4844;overflow:auto;color:#16364d;font-family:Arial,sans-serif}.desk-details-dialog::backdrop{background:#0d263957;backdrop-filter:blur(3px)}.desk-dialog-heading{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:25px}.desk-dialog-heading span{font-size:10px;color:#72948d;font-weight:700;letter-spacing:1.5px}.desk-dialog-heading h2{font-size:24px;margin:8px 0 0}.desk-details-dialog label{display:block;font-size:14px;font-weight:600;margin:0 0 18px}.desk-details-dialog input,.desk-details-dialog select{width:100%;min-height:45px;display:block;margin-top:8px;padding:10px;border:1px solid #dbe4ec;border-radius:8px;background:#f8fafc;font-family:inherit;font-size:15px;color:#29465a}.desk-details-dialog form>button{background:#137e78;color:#fff;width:100%;font-weight:700}.desk-details-dialog form p{font-size:12px;color:#8296a3}.desk-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.desk-details-error{color:#b3213e;font-size:14px}.desk-manager-toolbar{display:flex;align-items:flex-end;gap:12px;margin:0 0 18px;flex-wrap:wrap}.desk-manager-toolbar label{max-width:320px;margin:0;flex:1 1 220px}.desk-manager-toolbar button,.desk-manager-toolbar a{min-height:46px;align-self:flex-end;white-space:nowrap}.desk-agent-link{font-size:14px}.desk-standalone{margin:0;background:#edf3f7;font-family:Arial,sans-serif;color:#16364b}.desk-site-header{height:76px;background:#fff;border-bottom:1px solid #dce5ec;display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:15px}.desk-brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:20px}.desk-brand-mark{width:38px;height:38px;border-radius:11px;background:#113e4d;color:#bce7cf;display:grid;place-items:center}.desk-brand small{font-weight:400;color:#77909b}.desk-site-header button{padding:11px 15px;border:1px solid #d9e4ec;border-radius:9px;background:#f6f9fb;color:#375065;cursor:pointer;font-size:14px;white-space:nowrap}.desk-standalone #desk-root{height:calc(100dvh - 105px);min-height:550px;margin:14px;border-radius:14px}.desk-auth{max-width:480px;margin:60px auto;padding:38px;background:#fff;border:1px solid #dde6ed;border-radius:22px;box-shadow:0 20px 70px #163c5310}.desk-auth h1{font-size:29px;line-height:1.2;margin:20px 0 12px}.desk-auth p{font-size:14px;line-height:1.8;color:#78909e}.desk-auth label{display:block;font-size:14px;font-weight:700;margin:20px 0}.desk-auth input{display:block;width:100%;min-height:48px;padding:12px;margin-top:9px;border:1px solid #d8e3eb;background:#f8fafc;border-radius:9px;font-size:16px;box-sizing:border-box}.desk-auth button{width:100%;padding:14px;background:#147e78;color:#fff;border:0;border-radius:9px;font-size:16px;font-weight:700;cursor:pointer}.desk-auth-error{color:#ad2542!important;white-space:pre-wrap}.desk-auth-apps{display:flex;gap:18px;margin-top:24px;border-top:1px solid #e6edf3;padding-top:20px}.desk-auth-apps span{display:flex;gap:8px;align-items:center;font-size:11px;color:#6b8495;line-height:1.6}.desk-auth-apps img{width:30px;height:30px}.desk-auth-qr{display:block;max-width:230px;width:100%;margin:20px auto}.desk-hidden{display:none!important}
@media(max-width:1200px){.desk-app{grid-template-columns:150px 280px minmax(0,1fr)}.desk-thread-heading{padding:15px}.desk-thread-heading .desk-followup{font-size:12px;padding:10px}.desk-filter-heading{font-size:10px}.desk-filters{padding-left:7px;padding-right:7px}.desk-filters>button{font-size:12px}}@media(max-width:1000px){.desk-app{grid-template-columns:300px minmax(0,1fr)}.desk-filters{grid-column:1/-1;flex-direction:row;overflow:auto;padding:8px;gap:5px;border-bottom:1px solid #e0e8ee}.desk-filter-heading,.desk-filter-note{display:none}.desk-filters>button{white-space:nowrap;gap:8px;min-height:35px;flex-shrink:0}.desk-app{grid-template-rows:auto minmax(0,1fr)}.desk-app .desk-list-panel,.desk-app .desk-conversation{min-height:0}.desk-composer-footer span{display:none}.desk-timeline{padding:18px}}@media(max-width:650px){.desk-app{grid-template-columns:1fr;min-height:570px;height:calc(100dvh - 190px)}.desk-app .desk-conversation{display:none}.desk-app.desk-thread-open .desk-conversation{display:flex}.desk-app.desk-thread-open .desk-list-panel{display:none}.desk-thread-heading .desk-back{display:inline-flex;font-size:25px;padding:5px 12px}.desk-thread-person h2{font-size:16px}.desk-thread-heading .desk-avatar{display:none}.desk-thread-heading{gap:9px;padding:12px}.desk-thread-heading .desk-followup{font-size:12px;padding:10px}.desk-bubble{max-width:90%}.desk-timeline{padding:16px;min-height:100px}.desk-composer{padding:10px 14px 15px}.desk-composer textarea{min-height:65px}.desk-composer-footer .desk-send-button{width:100%}.desk-site-header{height:68px;padding:0 15px}.desk-brand{font-size:18px}.desk-brand small{display:none}.desk-site-header button{font-size:12px;padding:10px}.desk-standalone #desk-root{margin:8px;height:calc(100dvh - 88px);min-height:480px}.desk-auth{margin:25px 14px;padding:28px}.desk-auth h1{font-size:26px}.desk-auth-apps{gap:14px}.desk-auth-apps span{font-size:10px}.desk-manager-toolbar{gap:10px}.desk-manager-toolbar label{max-width:none}.desk-details-dialog{padding:23px}.desk-dialog-heading h2{font-size:22px}.desk-form-grid{gap:10px}.table-toolbar>button,.table-toolbar>.open-form-button{flex:0 1 auto;min-height:44px;font-size:14px;padding:12px 15px}}

.portal-shell .desk-app{height:calc(100dvh - 310px);min-height:520px}.desk-bot-toggle{font-size:12px!important}@media(max-width:650px){.portal-shell .desk-app{height:calc(100dvh - 250px);min-height:540px}.desk-thread-heading .desk-bot-toggle{display:none}.desk-form-grid{grid-template-columns:1fr}}
