/* Chat layout follows the local TR reference. Keep its responsive rules here. */
.support-workspace,.support-floating-widget{--support-accent:#0284c7;--support-accent-soft:#e0f2fe;--support-outbound:#0284c7;--support-outbound-text:#fff;color:var(--text)}
html[data-bs-theme=dark] :is(.support-workspace,.support-floating-widget){--support-accent:#38bdf8;--support-accent-soft:#0c4a6e55;--support-outbound:#0284c7}
body:has(.content[data-view="support"]){overflow:hidden}
.shell:has(.content[data-view="support"])>.workspace{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.shell .workspace>.content[data-view="support"]{display:flex;flex:1 1 auto;flex-direction:column;width:100%;max-width:none;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden}
.shell:has(.content[data-view="support"]) .workspace-industry-footer{display:none}
#support-host{display:flex;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden}
#support-host>.muted,#support-host>.error{padding:24px}
.support-workspace{display:grid;grid-template-columns:clamp(19rem,24vw,24rem) minmax(0,1fr);width:100%;height:100%;min-width:0;min-height:0;background:var(--panel);overflow:hidden;isolation:isolate}
.support-session-sidebar,.support-conversation,.support-chat-mount{min-width:0;min-height:0}
.support-session-sidebar{display:flex;flex-direction:column;background:var(--panel);border-inline-end:1px solid var(--line);overflow:hidden}
.support-sidebar-title{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:8px;min-height:64px;padding:12px 16px}
.support-sidebar-title>div:first-child{flex:1;min-width:0}
.support-sidebar-title h2{min-width:0;margin:0;font-size:18px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}
.support-sidebar-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;line-height:1.6}
.support-sidebar-title>.actions{gap:2px;flex-wrap:nowrap}
.support-session-sidebar #support-filter-form{flex:0 0 auto;margin:0;padding:0 16px 16px}
#support-filter-form .field{position:relative;display:block;min-width:0;margin:0}
#support-filter-form .field>span.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#support-filter-form .support-search-icon{position:absolute;inset-inline-start:12px;top:50%;display:inline-flex;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.support-search-icon .ui-icon{width:19px;height:19px}
#support-filter-form input{width:100%;min-width:0;min-height:42px;margin:0;padding:10px 12px;padding-inline-start:40px;font-size:14px;line-height:1.5;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--text)}
.support-session-list{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.support-list-stats{position:sticky;inset-block-start:0;z-index:1;display:flex;align-items:center;gap:8px;min-width:0;min-height:52px;padding:8px 16px;border-block:1px solid var(--line);background:var(--panel);font-size:12px;line-height:1.5}
.support-list-stats>span{flex:1;min-width:0;overflow-wrap:anywhere}
.support-list-stats>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;max-width:55%;padding:6px 9px;font-size:12px;line-height:1.5;color:#be123c;background:#fff1f2;border:0;border-radius:8px;white-space:normal}
.support-list-stats>strong{color:#e11d48;font-variant-numeric:tabular-nums}
html[data-bs-theme=dark] .support-list-stats>button{color:#fda4af;background:#88133744}
.support-session{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:16px;border:0;border-block-end:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);text-align:start;cursor:pointer}
.support-session:hover{background:var(--surface-soft)}
.support-session.active{background:var(--support-accent-soft)}
.support-session:focus-visible{outline:2px solid var(--support-accent);outline-offset:-2px}
.support-session-avatar{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:var(--surface-soft);color:var(--muted)}
.support-session-avatar>.ui-icon{width:24px;height:24px}
.support-session-avatar>img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.support-unread{position:absolute;inset-block-start:-4px;inset-inline-end:-4px;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding-inline:5px;border-radius:999px;background:#e11d48;color:#fff;font-size:11px;font-weight:650;line-height:1;font-variant-numeric:tabular-nums}
.support-session-content{display:block;flex:1;min-width:0}
.support-session-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.support-session-top strong{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;line-height:1.6}
.support-session-top strong>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.support-session-top strong>.ui-icon{flex:0 0 15px;width:15px;height:15px;color:#d99a20}
.support-session-top>time{flex:0 0 auto;max-width:42%;overflow:hidden;color:var(--muted);font-size:11px;line-height:1.6;text-overflow:ellipsis;white-space:nowrap;direction:ltr;unicode-bidi:isolate}
.support-session-identity,.support-session-preview{display:block;min-width:0;margin-block-start:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:13px;line-height:1.6}
.support-session-identity{font-size:12px}
.support-workspace[data-staff="true"] .support-faq-host{display:none}
.support-conversation{overflow:hidden;background:var(--surface-soft)}
.support-chat-mount{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}
.support-chat-context{display:block;flex:0 0 auto;min-width:0;min-height:0}
.support-chat-header{display:flex;align-items:center;gap:12px;min-width:0;min-height:64px;padding:10px 20px;border-block-end:1px solid var(--line);background:var(--panel)}
.support-agent-avatar{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:var(--surface-soft);color:var(--muted)}
.support-agent-avatar>.ui-icon{width:22px;height:22px}
.support-agent-avatar img{display:block;width:32px;height:32px;object-fit:contain}
.support-chat-heading{flex:1;min-width:0;overflow:hidden}
.support-chat-heading>strong,.support-chat-heading>div>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600;line-height:1.5}
.support-customer-reference,.customer-support-status{display:block;min-width:0;margin-block-start:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.6;color:var(--muted)}
.support-customer-reference .customer-support-status{display:inline;margin:0;font:inherit}
.support-chat-header>.actions{display:flex;flex:0 0 auto;align-items:center;gap:2px;margin:0;flex-wrap:nowrap}
.support-tool{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:6px;min-width:36px;min-height:36px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--muted);line-height:1.5;box-shadow:none}
.support-tool:hover{background:var(--surface-soft);color:var(--text)}
.support-tool:focus-visible{outline:2px solid var(--support-accent);outline-offset:1px}
.support-tool-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.support-tool-icon .ui-icon{width:20px;height:20px}
.support-tool-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.support-mobile-list-button{display:none!important}
.support-note-toggle{display:none}
.support-note-bar{padding:12px 20px;border-block-end:1px solid var(--line);background:var(--panel)}
.support-note-bar form{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:start;gap:12px;margin:0;min-width:0}
.support-note-icon{display:inline-flex;padding-block-start:10px;color:#d99a20}
.support-note-icon .ui-icon{width:20px;height:20px}
.support-note-bar .field{display:block;min-width:0;margin:0}
.support-note-bar .field>span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.support-note-bar textarea{display:block;width:100%;height:64px;min-height:64px;max-height:120px;margin:0;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--text);font-size:14px;line-height:1.6;resize:vertical}
.support-note-bar .actions{display:flex;align-items:center;gap:4px;min-width:0;margin:0;flex-wrap:nowrap}
.support-note-bar .actions>.primary{min-width:0;min-height:40px;padding:8px 14px;background:#d99515;border-color:#d99515;color:#fff;font-size:13px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.support-note-bar .management-error{grid-column:2/-1;margin:0;font-size:13px;line-height:1.6}
.support-note-bar .management-error:empty{display:none}
.support-message-scroller{flex:1 1 auto;min-width:0;min-height:0;padding:20px;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:thin;background:var(--surface-soft)}
.support-history-control{text-align:center;margin-block-end:12px}
.support-history-control:empty{display:none}
.support-history-control>button{min-height:36px;padding:6px 12px;background:transparent;border:0;color:var(--support-accent);font-size:13px}
.support-chat-message{display:flex;align-items:flex-start;gap:12px;min-width:0;margin:0 0 18px}
.support-message-avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:var(--panel);color:var(--muted);overflow:hidden}
.support-message-avatar>.ui-icon{width:20px;height:20px}
.support-message-avatar img{display:block;width:26px;height:26px;object-fit:contain}
.support-message-body{min-width:0;max-width:70%;overflow-wrap:anywhere}
.support-message-bubble{width:fit-content;max-width:100%;min-width:0;padding:9px 14px;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);overflow-wrap:anywhere}
.support-message-bubble .support-message{margin:0;font-size:14px;line-height:1.7;white-space:pre-wrap;unicode-bidi:plaintext}
.support-message-status{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:4px 1px 0;color:var(--muted);font-size:11px;line-height:1.6}
.support-message-status [data-timestamp]{direction:ltr;unicode-bidi:isolate}
.support-message-status .is-read{color:#16a34a}
.support-message-status .support-tool{min-width:24px;min-height:24px;padding:3px}
.support-message-status .support-tool-icon .ui-icon{width:15px;height:15px}
.support-workspace[data-staff="true"] .from-staff,.support-workspace[data-staff="false"] .from-user{flex-direction:row-reverse}
.support-workspace[data-staff="true"] .from-staff .support-message-bubble,.support-workspace[data-staff="false"] .from-user .support-message-bubble{margin-inline-start:auto;border-color:var(--support-outbound);border-start-end-radius:4px;background:var(--support-outbound);color:var(--support-outbound-text)}
.support-workspace[data-staff="true"] .from-user .support-message-bubble,.support-workspace[data-staff="false"] .from-staff .support-message-bubble{border-start-start-radius:4px}
.support-workspace[data-staff="true"] .from-staff .support-message-status,.support-workspace[data-staff="false"] .from-user .support-message-status{justify-content:flex-end}
.support-workspace[data-staff="false"] .from-user .support-message-avatar{display:none}
.support-workspace[data-staff="false"] .from-staff .support-message-avatar{flex-basis:28px;width:28px;height:28px}
.support-workspace[data-staff="false"] .from-staff .support-message-avatar img{width:24px;height:24px}
.support-chat-message.recalled .support-message-bubble{background:transparent!important;border:1px dashed var(--line)!important;color:var(--muted)!important;font-size:13px}
.support-image-button{display:block;max-width:100%;margin:0;padding:0;border:0;border-radius:8px;background:transparent}
.support-image-button img{display:block;width:auto;max-width:100%;max-height:260px;border-radius:8px;object-fit:contain}
.support-image-button+.support-message{margin-block-start:8px}
.support-full-image{display:block;max-width:100%;max-height:calc(var(--mobile-visible-height,100dvh) - 150px);margin:auto;object-fit:contain}
.support-chat-empty{display:flex;flex:1 1 auto;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-width:0;min-height:0;padding:24px;text-align:center;color:var(--muted)}
.support-chat-empty>img{width:52px;height:52px;object-fit:contain}
.support-chat-empty h2,.support-chat-empty h3{margin:0;color:var(--text);font-size:18px;line-height:1.5}
.support-chat-empty p{max-width:310px;margin:0;font-size:14px;line-height:1.7}
.support-chat-composer{display:block;flex:0 0 auto;width:100%;max-height:48%;min-width:0;margin:0;padding:16px 20px max(16px,env(safe-area-inset-bottom,0px));border-block-start:1px solid var(--line);background:var(--panel);color:var(--text);overflow:auto;overscroll-behavior:contain}
.support-chat-composer form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px 12px;width:100%;max-width:none;min-width:0;margin:0}
.support-composer-box{position:relative;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
.support-composer-box:focus-within{border-color:var(--support-accent)}
.support-composer-box .field{display:block;width:100%;min-width:0;margin:0}
.support-composer-box .field>span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.support-chat-composer .support-composer-box textarea{display:block;width:100%;max-width:none;height:48px;min-height:48px;max-height:110px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);font-size:14px;line-height:1.7;resize:none;overflow-y:auto;box-shadow:none}
.support-chat-composer .support-composer-box textarea:focus{outline:none;box-shadow:none;background:transparent}
.support-composer-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin-block-start:6px}
.support-composer-actions>div{display:flex;align-items:center;gap:2px;min-width:0}
.support-desktop-shortcut{color:var(--muted);font-size:11px;line-height:1.5;text-align:end}
.support-send-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:48px;min-height:48px;max-width:150px;margin:0;padding:11px 18px;border:1px solid var(--support-outbound);border-radius:12px;background:var(--support-outbound);color:#fff;font-size:14px;font-weight:600;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.support-send-button:hover{background:color-mix(in srgb,var(--support-outbound) 88%,#fff)}
.support-send-button:disabled{opacity:.5}
.support-send-button .ui-icon{width:20px;height:20px}
html[dir=rtl] .support-send-button .ui-icon{transform:scaleX(-1)}
.support-chat-composer [aria-busy="true"] .support-send-button{cursor:progress}
.support-composer-preview{display:flex;grid-column:1/-1;align-items:center;gap:8px;min-width:0;max-width:100%;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}
.support-composer-preview:empty{display:none}
.support-composer-preview img{display:block;flex:0 0 auto;width:56px;height:48px;border-radius:6px;object-fit:contain}
.support-attachment-remove{margin-inline-start:auto;width:40px;min-width:40px;height:40px}
.support-upload-status{display:flex;align-items:center;gap:7px;flex:1;min-width:0;color:var(--muted);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.support-upload-status>span:first-child{display:inline-flex;flex:0 0 auto}
.support-upload-status .ui-icon{width:18px;height:18px}
.support-compose-error{grid-column:1/-1;min-width:0;margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.support-compose-error:empty{display:none}
.support-chat-composer [data-action="s-retry"]{grid-column:1/-1;justify-self:start;min-height:40px}
.support-emoji-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;width:100%;min-width:0;padding:4px;border:0;background:var(--panel)}
.support-emoji-picker button{display:grid;place-items:center;min-width:0;min-height:44px;padding:3px;border:0;border-radius:6px;background:transparent;font-size:22px;line-height:1.4}
.support-emoji-picker button:hover{background:var(--surface-soft)}
.support-welcome{min-width:0;padding:24px 20px;color:var(--text)}
.support-welcome img{display:block;width:60px;height:60px;margin:0 auto 16px;object-fit:contain}
.support-welcome>.support-agent-avatar{width:56px;height:56px;margin:0 auto 12px}
.support-welcome>.support-agent-avatar img{width:44px;height:44px;margin:0}
.support-welcome>div{text-align:center;font-size:16px;line-height:1.6}
.support-welcome h2,.support-welcome h3{margin:0 0 8px;font-size:18px;font-weight:650;line-height:1.5}
.support-welcome p{margin:0;color:var(--muted);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.support-faq-host{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.support-faq{padding:20px;border-block-start:1px solid var(--line);color:var(--text)}
.support-faq h3{margin:0 0 12px;font-size:15px;line-height:1.6}
.support-faq details{padding:10px 0;border-block-start:1px solid var(--line)}
.support-faq summary{cursor:pointer;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.support-faq p{margin:8px 0 0;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.support-quick-reply{display:block;width:100%;min-height:44px;margin-block-start:8px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--text);font-size:14px;line-height:1.7;text-align:start;overflow-wrap:anywhere}
.support-quick-actions{display:grid;gap:8px;margin-block-end:12px}
.support-quick-action{display:grid;width:100%;min-height:56px;gap:2px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));color:var(--text);font-size:14px;line-height:1.5;text-align:start;overflow-wrap:anywhere}
.support-quick-action:hover,.support-quick-action:focus-visible{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,var(--surface));}
.support-quick-action-label{font-weight:700}
.support-quick-action small{color:var(--muted);font-size:12px;line-height:1.5;white-space:normal}
.support-quick-dialog{display:grid;gap:8px;min-width:0;max-height:60dvh;overflow:auto;overscroll-behavior:contain}
.support-quick-dialog>button{min-width:0;min-height:44px;font-size:14px;line-height:1.7;text-align:start;white-space:normal;overflow-wrap:anywhere}
.support-chat-help{display:none}
.support-workspace[data-staff="false"]{grid-template-columns:310px minmax(0,1fr)}
.support-workspace[data-staff="false"] .support-session-sidebar{background:var(--panel)}
.support-workspace[data-staff="false"] .support-sidebar-title{min-height:auto}
.support-customer-session{flex:0 0 auto;min-width:0;padding:18px 20px;border-block-start:1px solid var(--line)}
.support-customer-session>strong{display:block;font-size:14px;line-height:1.6}
.support-sidebar-status{margin:4px 0 10px;color:var(--muted);font-size:12px;line-height:1.6}
.support-workspace[data-staff="false"] .support-chat-header{gap:10px}
.support-workspace[data-staff="false"] .support-chat-composer form{grid-template-columns:44px minmax(0,1fr) 44px;align-items:end;gap:8px}
.support-workspace[data-staff="false"] .support-composer-box,.support-workspace[data-staff="false"] .support-composer-actions,.support-workspace[data-staff="false"] .support-composer-actions>div{display:contents}
.support-workspace[data-staff="false"] .support-composer-box>.field{grid-column:2;grid-row:1;margin:0}
.support-workspace[data-staff="false"] .support-chat-composer .support-composer-box textarea{height:var(--support-draft-height,44px);min-height:44px;max-height:min(130px,26dvh);padding:10px 12px;border:1px solid var(--line);border-radius:22px;background:var(--surface-soft);font-size:16px;line-height:22px;resize:none}
.support-workspace[data-staff="false"] .support-attachment-button{grid-column:1;grid-row:1;width:44px;min-width:44px;height:44px;padding:10px}
.support-workspace[data-staff="false"] .support-send-button{grid-column:3;grid-row:1;width:44px;min-width:44px;min-height:44px;padding:10px;border-radius:50%}
.support-workspace[data-staff="false"] .support-send-button [data-support-send-label]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* These blocks are shared with the management dialogs. */
.support-case-content{min-width:0}
.support-case-content :is(h3,p){font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.support-case-content .info-line{min-width:0;gap:12px;align-items:start}
.support-case-content .info-line>strong{min-width:0;max-width:65%;text-align:end;overflow-wrap:anywhere}
.support-current-note{white-space:pre-wrap}
.support-note-history{list-style:none;max-height:240px;overflow:auto;overscroll-behavior:contain;margin:16px 0;padding:0}
.support-note-history li{min-width:0;margin-block:12px;padding:0 14px 14px;border-inline-start:2px solid var(--line)}
.support-note-history li>div{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;line-height:1.6;color:var(--muted)}
.support-note-history p{margin:8px 0;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.support-faq-row{min-width:0;margin-block-end:15px;padding:16px;border:1px solid var(--line);border-radius:10px}
.support-quick-action-row{min-width:0;margin-block-end:15px;padding:16px;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--accent) 4%,var(--surface))}
.support-quick-action-row legend{padding-inline:4px;font-weight:700;color:var(--text)}
.support-faq-row .btn{margin-inline-start:10px}
#support-action-form{min-width:0}
#support-action-form>.primary{min-width:0;min-height:44px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
#support-action-form textarea{min-width:0;max-width:100%;font-size:16px;line-height:1.6}
/* The customer floating window has a single header and scroll owner. */
html body .support-floating-widget{position:fixed;inset-inline-start:18px;bottom:18px;z-index:1040;display:flex;flex-direction:column;width:392px;max-width:calc(100vw - 20px);height:610px;max-height:calc(var(--support-viewport-height,100dvh) - 20px);min-height:0;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);box-shadow:var(--shadow-dialog,0 16px 60px #0003);isolation:isolate}
.support-floating-widget .support-widget-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:0 0 auto;min-height:58px;padding:7px 10px;border-block-end:1px solid var(--line);border-radius:14px 14px 0 0;background:var(--panel)}
.support-widget-heading{display:block;flex:1;min-width:0}
.support-widget-heading>img{flex:0 0 36px;width:36px;height:36px;object-fit:contain}
.support-widget-heading>div{min-width:0}
.support-widget-heading strong,.support-widget-header>div>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600;line-height:1.5}
.support-widget-heading small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;line-height:1.6}
.support-widget-header>.actions{display:flex;flex:0 0 auto;align-items:center;gap:0;margin:0;flex-wrap:nowrap}
.support-widget-header>img{display:block;flex:0 0 32px;width:32px;height:32px;object-fit:contain}
.support-widget-header .support-tool{width:36px;height:40px}
.support-floating-widget #support-host{border-end-start-radius:14px;border-end-end-radius:14px}
.support-floating-widget .support-workspace{display:block;height:100%;border:0;border-radius:0}
.support-floating-widget .support-session-sidebar,.support-floating-widget .support-chat-context{display:none}
.support-floating-widget .support-conversation,.support-floating-widget .support-chat-mount{height:100%;min-height:0}
.support-floating-widget .support-message-scroller{padding:14px}
.support-floating-widget .support-message-body{max-width:82%}
.support-floating-widget .support-chat-help{display:block;margin-block-end:18px}
.support-floating-widget .support-chat-help .support-welcome{padding:12px 6px}
.support-floating-widget .support-chat-help .support-welcome img{width:48px;height:48px}
.support-floating-widget .support-chat-help .support-faq{padding:12px 4px}
.support-floating-widget .support-chat-composer{padding:10px 12px max(10px,env(safe-area-inset-bottom,0px));border-end-start-radius:14px;border-end-end-radius:14px}
.support-floating-widget .support-chat-composer textarea{max-height:min(110px,22dvh)}
.support-floating-widget [data-support-resize]{position:absolute;z-index:4;touch-action:none}
.support-floating-widget [data-support-resize="n"],.support-floating-widget [data-support-resize="s"]{inset-inline:12px;height:8px;cursor:ns-resize}
.support-floating-widget [data-support-resize="n"]{top:-4px}
.support-floating-widget [data-support-resize="s"]{bottom:-4px}
.support-floating-widget [data-support-resize="e"],.support-floating-widget [data-support-resize="w"]{inset-block:12px;width:8px;cursor:ew-resize}
.support-floating-widget [data-support-resize="e"]{right:-4px}
.support-floating-widget [data-support-resize="w"]{left:-4px}
.support-floating-widget [data-support-resize="ne"],.support-floating-widget [data-support-resize="nw"],.support-floating-widget [data-support-resize="se"],.support-floating-widget [data-support-resize="sw"]{width:14px;height:14px}
.support-floating-widget [data-support-resize="ne"]{top:-5px;right:-5px;cursor:nesw-resize}
.support-floating-widget [data-support-resize="nw"]{top:-5px;left:-5px;cursor:nwse-resize}
.support-floating-widget [data-support-resize="se"]{bottom:-5px;right:-5px;cursor:nwse-resize}
.support-floating-widget [data-support-resize="sw"]{bottom:-5px;left:-5px;cursor:nesw-resize}
.support-floating-widget[data-compact-viewport="true"] .support-chat-composer{max-height:60%}
@media(min-width:901px) and (pointer:fine){
  .support-widget-header{cursor:grab;touch-action:none;user-select:none}
  .support-floating-widget[data-support-interaction="move"] .support-widget-header{cursor:grabbing}
  .support-floating-widget[data-support-interaction]{user-select:none}
}
@media(max-width:900px){
  .shell:has(.content[data-view="support"]){display:flex;flex-direction:column;height:var(--mobile-visible-height,100dvh);min-height:0;overflow:hidden}
  .shell:has(.content[data-view="support"])>.workspace{flex:1;height:100%;min-height:0;overflow:hidden}
  .staff-shell:has(.content[data-view="support"]) .topbar{flex:0 0 auto}
  .shell .workspace>.content[data-view="support"]{min-height:0;padding:0}
  .user-shell:has(.content[data-view="support"]) :is(.topbar,.mobile-dock,.workspace-industry-footer){display:none}
  .support-workspace[data-staff="false"]{display:block;width:100%;height:100%}
  .support-workspace[data-staff="false"] .support-session-sidebar{display:none}
  .support-workspace[data-staff="false"] .support-conversation{height:100%}
  .support-workspace[data-staff="false"] .support-chat-header{min-height:60px;padding:max(8px,env(safe-area-inset-top,0px)) 10px 8px;gap:8px}
  .support-workspace[data-staff="false"] .support-mobile-list-button{display:inline-flex!important}
  .support-workspace[data-staff="false"] .support-agent-avatar{flex-basis:36px;width:36px;height:36px}
  .support-workspace[data-staff="false"] .support-agent-avatar img{width:30px;height:30px}
  .support-workspace[data-staff="false"] .support-chat-heading>strong{font-size:17px}
  .support-workspace[data-staff="false"] .support-message-scroller{padding:16px}
  .support-workspace[data-staff="false"] .support-chat-help{display:block;margin-block-end:20px}
  .support-chat-help .support-welcome{padding:10px 0 18px}
  .support-chat-help .support-faq{padding:16px 0}
  .support-workspace[data-staff="false"] .support-message-body{max-width:82%}
  .support-workspace[data-staff="false"] .support-chat-composer{padding:10px 12px max(12px,env(safe-area-inset-bottom,0px))}
  .support-chat-composer .support-composer-box textarea{font-size:16px}
  #dialog:has(#support-action-form){scroll-padding-block-end:80px}
  .support-chat-composer .support-send-button{min-height:44px}
}
@media(max-width:767px){
  .support-workspace[data-staff="true"]{display:block;width:100%;height:100%}
  .support-workspace[data-staff="true"] .support-session-sidebar{display:none;width:100%;height:100%;border:0}
  .support-workspace[data-staff="true"].show-conversation-list .support-session-sidebar{display:flex}
  .support-workspace[data-staff="true"].show-conversation-list .support-conversation{display:none}
  .support-workspace[data-staff="true"] .support-conversation{height:100%}
  .support-workspace[data-staff="true"] .support-sidebar-title{padding:12px 16px}
  .support-workspace[data-staff="true"] .support-chat-header{min-height:60px;padding:8px 10px;gap:6px}
  .support-workspace[data-staff="true"] .support-agent-avatar{flex-basis:36px;width:36px;height:36px}
  .support-workspace[data-staff="true"] .support-mobile-list-button{display:inline-flex!important}
  .support-note-toggle{display:inline-flex}
  .support-workspace[data-staff="true"] .support-chat-header>.actions{gap:0}
  .support-workspace[data-staff="true"] .support-chat-header .support-tool{width:36px;min-width:36px;min-height:44px;padding:8px}
  .support-note-bar{display:none;max-height:35dvh;padding:12px;overflow:auto;overscroll-behavior:contain}
  .show-note-editor .support-note-bar{display:block}
  .support-note-bar form{grid-template-columns:minmax(0,1fr);gap:8px}
  .support-note-icon{display:none}
  .support-note-bar textarea{font-size:16px;min-height:54px;height:54px}
  .support-note-bar .actions{justify-content:flex-end}
  .support-note-bar .management-error{grid-column:1}
  .support-message-scroller{padding:14px}
  .support-chat-message{gap:8px;margin-block-end:16px}
  .support-message-body{max-width:82%}
  .support-message-bubble{padding:9px 12px}
  .support-message-bubble .support-message{font-size:15px;line-height:1.75}
  .support-message-status{font-size:12px;line-height:1.6}
  .support-chat-composer{padding:10px 12px max(12px,env(safe-area-inset-bottom,0px))}
  .support-chat-composer form{gap:8px}
  .support-composer-box{padding:8px 10px;border-radius:8px}
  .support-composer-actions .support-tool{width:40px;min-width:40px;min-height:40px;padding:9px}
  .support-desktop-shortcut{display:none}
  .support-send-button{width:48px;min-width:48px;min-height:48px;padding:11px;border-radius:8px}
  .support-send-button [data-support-send-label]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
  .support-session-top strong{font-size:15px}
  #support-filter-form input{font-size:16px;min-height:44px}
  .support-chat-empty{padding:20px}
  .support-case-content .info-line{flex-wrap:wrap}
  .support-case-content .info-line>strong{max-width:100%}
}
@media(max-width:380px){
  .support-workspace[data-staff="true"] .support-chat-header>.support-agent-avatar{display:none}
  .support-workspace[data-staff="true"] .support-chat-header{padding-inline:8px;gap:4px}
  .support-workspace[data-staff="true"] .support-chat-header .support-tool{width:34px;min-width:34px;padding-inline:7px}
}
@media(max-width:900px) and (max-height:500px){
  .support-chat-header{min-height:52px;padding-block:4px}
  .support-workspace[data-staff="true"] .support-note-bar{display:none;max-height:35dvh}
  .support-workspace[data-staff="true"].show-note-editor .support-note-bar{display:block}
  .support-note-toggle{display:inline-flex}
  .support-chat-composer{padding-block:6px;max-height:45%}
  .support-chat-composer .support-composer-box textarea{height:32px;min-height:32px;max-height:56px}
  .support-composer-actions{margin-block-start:2px}
  .support-composer-preview img{height:36px}
  .support-workspace[data-staff="false"] .support-chat-header{min-height:52px;padding-block:4px}
  .support-workspace[data-staff="false"] .support-chat-composer{padding-block:6px}
  .support-chat-help .support-welcome{padding-block:6px}
  .support-chat-help .support-welcome img{display:none}
}
@media(prefers-reduced-motion:reduce){.support-floating-widget,.support-message-scroller{scroll-behavior:auto}}
/* Anonymous temporary support entry and branded welcome. */
.guest-support-welcome{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft);margin-bottom:16px}
.guest-support-welcome img{width:44px;height:44px;object-fit:contain;border-radius:12px;background:var(--panel);padding:6px}
.guest-support-welcome strong{display:block;font-size:16px}
.guest-support-welcome p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.guest-support-topics{border:0;padding:0;margin:0 0 14px}
.guest-support-topics legend{font-size:12px;font-weight:700;color:var(--muted);margin-bottom:8px}
.guest-support-topics>div{display:flex;flex-wrap:wrap;gap:8px}
.guest-support-topics button{min-height:40px;border-radius:999px}
.guest-support-messages{display:grid;gap:10px;max-height:360px;overflow:auto;margin:0 0 14px;padding:4px 2px}
.guest-support-message{display:flex;margin:0}
.guest-support-message span{max-width:85%;padding:10px 12px;border-radius:14px;background:var(--surface-soft);line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.guest-support-message.outgoing{justify-content:flex-end}
.guest-support-message.outgoing span{background:var(--primary,#2563eb);color:#fff}
@media(max-width:600px){#dialog:has(#guest-support-start-form,#guest-support-send-form){width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:16px;border-radius:16px}.guest-support-messages{max-height:42dvh}}
