/* Fit the working case to the screen, with one scroll area for its content. */
body:has(.entry-case-manager,.build-account) .build-welcome{padding:12px 22px;gap:18px}
body:has(.entry-case-manager,.build-account) .build-welcome h1{font-size:clamp(23px,2.2vw,30px);margin:4px 0;letter-spacing:-.8px}
body:has(.entry-case-manager,.build-account) .build-welcome p{font-size:13px}
body:has(.entry-case-manager,.build-account) .build-welcome>img{width:64px;height:64px;padding:5px}
.entry-case-manager .entry-case-top{display:none}
.entry-case-manager .build-chat-head{padding:10px 18px}
.entry-case-manager .build-chat-head img{width:35px;height:35px}
.entry-case-manager .build-chat-head strong{font-size:15px}
:is(.entry-case-manager,.build-account) .case-tools{padding:10px 14px;gap:7px}
:is(.entry-case-manager,.build-account) .case-tools button:is([data-panel],[data-guest-panel]){padding:9px 12px;font-size:13px}
.case-step-guide{padding:9px 16px;gap:12px}
.build-account .workspace-top{min-height:58px;padding:10px 16px}
.build-account .live-messages{min-height:0;overscroll-behavior:contain}
.build-account .live-composer-wrap{flex-shrink:0}
.entry-case-manager .build-compose{flex-shrink:0;padding:10px 16px}
.entry-case-manager .build-compose #guest-message{min-height:44px;height:44px}
.entry-case-manager .build-compose .guest-note{font-size:10px;line-height:1.35;padding-top:7px}
.entry-case-manager .build-compose .guest-send{margin-top:5px}
.entry-case-manager .build-compose #guest-form label{margin-bottom:4px}
.entry-case-manager .guest-feedback:has(#guest-error:empty):not(:has(button)){display:none}
.entry-case-manager .guest-messages .guest-case-action{border-radius:14px;padding:14px;margin-bottom:14px}
@media(min-width:981px) and (min-height:600px){
 body:has(.entry-case-manager,.build-account){height:100dvh;overflow:hidden;display:flex;flex-direction:column}
 body:has(.entry-case-manager,.build-account) .account-header{height:64px;min-height:64px;flex-shrink:0}
 body:has(.entry-case-manager,.build-account) #customer-main{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 .entry-case-manager.build-page{width:100%;height:100%;min-height:0;margin:0 auto;padding:10px 18px 14px;display:flex;flex-direction:column}
 .entry-case-manager .build-breadcrumb{flex-shrink:0;margin-bottom:8px;font-size:11px}
 .entry-case-manager .build-welcome{flex-shrink:0}
 .entry-case-manager .build-columns{flex:1;min-height:0;align-items:stretch;margin-top:12px;gap:14px}
 .entry-case-manager .build-chat{display:flex;flex-direction:column;min-height:0}
 .entry-case-manager :is(.build-chat-head,.case-tools,.case-step-guide){flex-shrink:0}
 .entry-case-manager #guest-conversation{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 .entry-case-manager .build-chat .guest-messages{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:16px 20px}
 .entry-case-manager #guest-tool-panel{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 .entry-case-manager .entry-tool{min-height:0;overflow:visible}
 .entry-case-manager .build-side{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;border-radius:22px;scrollbar-gutter:stable}
 .entry-case-manager .build-side>section{flex-shrink:0}
 body:has(.build-account) .build-account-welcome{width:calc(100% - 28px);margin:10px auto 0;flex-shrink:0}
 body:has(.build-account) .workspace-preview-banner{flex-shrink:0}
 .build-account.three-pane.reference-workspace{flex:1;min-height:0;height:auto!important;width:100%;padding:12px 14px 14px;align-items:stretch;display:grid;grid-template-columns:minmax(0,1.57fr) minmax(330px,.83fr);gap:14px}
 .build-account.three-pane .workspace-content{height:100%;min-height:0;max-height:100%;overflow:hidden}
 .build-account.three-pane .case-summary{min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain}
 .build-account .workspace-panel{min-height:0;overflow-y:auto;overscroll-behavior:contain}
}
/* On narrow or short screens, keep the page reachable without an extra tiny chat scroller. */
@media(max-width:980px),(max-height:599px){
 .entry-case-manager .build-chat .guest-messages{min-height:240px;max-height:none;overflow:visible}
 .entry-case-manager .build-compose{position:sticky;bottom:0;background:#fff;z-index:2;border-radius:0 0 22px 22px}
 .build-account.three-pane .workspace-content{height:auto;min-height:0;overflow:visible}
 .build-account .live-messages{overflow:visible;min-height:260px}
 .build-account .live-composer-wrap{position:sticky;bottom:0;background:#fff;z-index:2;border-radius:0 0 22px 22px}
 .build-account .workspace-panel{overflow:visible}
}
@media(max-width:620px){
 body:has(.entry-case-manager,.build-account) .build-welcome{padding:13px 16px}
 body:has(.entry-case-manager,.build-account) .build-welcome>img{width:48px;height:48px}
 body:has(.entry-case-manager,.build-account) .build-welcome h1{font-size:23px}
 .entry-case-manager .build-compose .guest-note{font-size:9px}
}
.entry-case-manager :is(.build-breadcrumb,.case-tools){margin-left:0;justify-content:flex-start;width:100%}
.entry-case-manager .build-chat-head{height:auto;min-height:0}
@media(min-width:981px) and (min-height:600px){
 html:has(.entry-case-manager,.build-account){height:100%;overflow:hidden}
 body:has(.entry-case-manager,.build-account) .build-kicker{display:none}
 body:has(.entry-case-manager,.build-account) .build-welcome{padding:10px 20px}
 body:has(.entry-case-manager,.build-account) .build-welcome>img{width:52px;height:52px}
 body:has(.entry-case-manager,.build-account) .build-welcome h1{font-size:26px;line-height:1.15}
 .build-account .workspace-top h1{font-size:18px!important;line-height:1.25!important}
 .build-account .workspace-top small{line-height:1.2;margin-bottom:2px}
 .case-step-guide{padding:7px 16px}
 .case-step-guide p{display:none}
 .case-step-guide .button{padding:8px 12px}
 .entry-case-manager #guest-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;align-items:center}
 .entry-case-manager #guest-form label{grid-column:1/-1}
 .entry-case-manager #guest-form textarea{display:block}
 .entry-case-manager .guest-send{margin:0;display:block}
 .entry-case-manager .guest-send>span{display:none}
 .entry-case-manager .guest-send button{height:44px}
}
.simple-contact{max-width:560px}.simple-contact h2{margin-bottom:6px}.simple-contact>p{font-size:14px;color:#667996;margin:0 0 20px}.simple-contact .account-form label{font-size:14px;font-weight:800;color:#415474}.simple-contact .account-form textarea{min-height:86px}.contact-more{margin-top:22px;max-width:560px;border-top:1px solid #e1e7f2;padding-top:15px}.contact-more>summary{cursor:pointer;color:#687b98;font-size:13px;font-weight:800}.contact-options{display:grid;gap:15px;padding:20px 0}.contact-options>label{display:grid;gap:7px;font-size:13px}.contact-options select{width:100%;padding:10px;border:1px solid #d4dfed;border-radius:8px;background:#fff;font:inherit}
.optional-label{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:#eef3fb;color:#74849c;font-size:10px;font-weight:800;vertical-align:middle}
