.quick-chat-widget{position:fixed;right:20px;bottom:18px;width:min(560px,calc(100vw - 24px));height:min(660px,calc(100dvh - 32px));z-index:1500;background:#fff;border:1px solid #d3deef;border-radius:14px;box-shadow:0 14px 60px #20304440;display:flex;flex-direction:column;overflow:hidden;text-align:left}.quick-chat-heading{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#f4f7fc;border-bottom:1px solid #dbe4f1}.quick-chat-heading button{padding:5px 12px}.quick-chat-body{flex:1;min-height:0;overflow:hidden}.quick-chat-widget .chat-workspace{height:100%;min-height:0!important;max-height:100%;margin:0;border:0;grid-template-columns:1fr}.quick-chat-widget .chat-sidebar{height:100%;max-width:none;border:0}.quick-chat-widget .has-conversation .chat-sidebar{display:none}.quick-chat-widget .chat-conversation{display:none;height:100%;min-height:0}.quick-chat-widget .has-conversation .chat-conversation{display:flex}.quick-chat-widget .chat-conversation-head{padding:10px}.quick-chat-widget .chat-back{display:block!important}.quick-chat-widget [data-open-card],.quick-chat-widget .ux-chat-quick{display:none}.quick-chat-widget .chat-messages{min-height:0;flex:1}.quick-chat-widget .chat-composer{padding:8px}.quick-chat-widget .chat-compose-row{gap:6px}.quick-chat-widget .chat-compose-row textarea{min-width:0}.quick-chat-widget .chat-compose-row [data-send]{padding:9px}.quick-chat-widget .chat-search{padding:12px}.quick-chat-widget .chat-thread-list{overflow:auto}.quick-chat-widget .chat-conversation-head small{font-size:10px}.chat-toast-stack{max-height:75vh;overflow:auto}.chat-toast-close{display:none}@media(max-width:600px){.quick-chat-widget{right:8px;bottom:8px;width:calc(100vw - 16px);height:75dvh}}
.chat-workspace{grid-template-rows:auto minmax(0,1fr)}.chat-workspace>.chat-audience-tabs{grid-column:1/-1;display:flex;flex-wrap:nowrap;gap:4px;margin:8px 12px;justify-self:start;max-width:calc(100% - 24px);padding:3px;flex:none}.chat-workspace>.chat-audience-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:11px;line-height:16px;padding:8px 10px;white-space:nowrap;min-width:0;height:auto}.chat-workspace>.chat-audience-tabs [data-chat-audience=internal].selected{background:#fff0d8;border-color:#ed9c38;color:#995500}.chat-audience-count{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:10px;background:#ed3e54;color:#fff;font-size:10px;line-height:17px;font-weight:700}.chat-workspace[data-chat-audience=internal]>.chat-audience-tabs{border-color:#edb96f}.chat-workspace[data-chat-audience=internal] .chat-conversation-head{background:#fff0d8;border-bottom:1px solid #edb96f}.chat-workspace[data-chat-audience=internal] .chat-conversation{background-color:#f5e9d6}.quick-chat-widget:has([data-chat-audience=internal].selected)>.quick-chat-heading{background:#fff0d8;border-color:#edb96f;color:#995500}.quick-chat-widget .chat-workspace>.chat-audience-tabs{margin:6px 10px;max-width:calc(100% - 20px)}@media(max-width:700px){.chat-workspace{display:flex;flex-direction:column}.chat-workspace>.chat-audience-tabs{width:fit-content;margin:7px 10px}.chat-workspace>.chat-sidebar,.chat-workspace>.chat-conversation{flex:1;min-height:0;height:auto}.quick-chat-widget .chat-workspace{display:flex;flex-direction:column}.chat-workspace>.chat-audience-tabs button{font-size:10px;padding:7px 9px}}
.chat-conversation-head [data-other-chat]{display:none!important}

/* The quick window is a compact tool, kept independently of the open form. */
.quick-chat-widget{width:420px;height:540px;min-width:0;min-height:0;border-radius:12px;box-shadow:0 10px 36px #20304430;isolation:isolate}
.quick-chat-heading{flex:none;height:44px;min-height:44px;box-sizing:border-box;gap:8px;padding:4px 7px 4px 12px;cursor:grab;touch-action:none;user-select:none}
.quick-chat-heading>strong{font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.quick-chat-heading:focus-visible{outline:2px solid #285de0;outline-offset:-3px}
.quick-chat-window-actions{display:flex;align-items:center;gap:1px;flex:none}
.quick-chat-heading .quick-chat-window-actions>button{display:grid;place-items:center;width:32px;height:34px;min-width:32px;min-height:34px;padding:0;border:0;border-radius:6px;background:transparent;color:#435d79;box-shadow:none;cursor:pointer}
.quick-chat-heading .quick-chat-window-actions>button:hover{background:#e3eaf3;color:#1c3960}
.quick-chat-heading .quick-chat-window-actions>button:focus-visible,.quick-chat-resize:focus-visible{outline:2px solid #285de0;outline-offset:-2px}
.quick-chat-widget.is-positioning,.quick-chat-widget.is-positioning *{cursor:grabbing!important;user-select:none}
.quick-chat-widget .quick-chat-body{min-width:0;overflow:hidden}
.quick-chat-widget [hidden]{display:none!important}
.quick-chat-widget.is-minimized .quick-chat-heading{border:0}
.quick-chat-resize{position:absolute;right:0;bottom:0;z-index:4;width:28px;height:28px;min-width:28px;min-height:28px;padding:4px;border:0;border-radius:4px 0 10px;background:#f4f7fce8;color:#486584;box-shadow:none;display:grid;place-items:center;cursor:nwse-resize;touch-action:none}
.quick-chat-resize:hover{background:#dfebfa;color:#174b9f}
.quick-chat-widget .chat-conversation-head{gap:7px;padding:7px 9px;min-height:64px}
.quick-chat-widget .chat-conversation-head>div{min-width:0;flex:1}
.quick-chat-widget .chat-conversation-head strong{font-size:12px;line-height:17px;overflow-wrap:anywhere}
.quick-chat-widget .chat-conversation-head small{font-size:10px;line-height:14px}
.quick-chat-widget .chat-conversation-head>.chat-avatar{width:32px;height:32px;flex:none}
.quick-chat-widget .chat-conversation-head>.chat-back{width:32px;min-width:32px;height:36px;padding:0}
.quick-chat-widget .chat-composer{padding:7px 28px 9px 9px}
.quick-chat-widget .chat-messages{padding:12px 10px;gap:8px}
.quick-chat-widget .chat-message p{font-size:13px;line-height:1.5}
.quick-chat-widget .ux-chat-controls{padding:3px 8px;gap:4px;flex-wrap:wrap}
.quick-chat-widget .ux-chat-controls button,.quick-chat-widget .ux-chat-controls select{font-size:10px;padding:5px 7px;min-height:32px;white-space:normal}
.quick-chat-widget .ux-chat-controls [data-chat-latest]{margin-left:auto}
.quick-chat-widget .ux-chat-controls select{width:100px;max-width:100px;flex:none}
.quick-chat-widget .ux-chat-controls [data-library]{flex:none}
.quick-chat-widget .ux-chat-controls [data-chat-latest]{font-size:0!important;min-width:32px;width:32px;flex:none;padding:5px}
.quick-chat-widget .ux-chat-controls [data-chat-latest]:after{content:'';display:block;width:18px;height:18px;margin:auto;background:center/18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23435d79' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v13m-5-5 5 5 5-5M5 20h14'/%3E%3C/svg%3E")}
.quick-chat-widget[data-height=short] .chat-conversation-head{min-height:48px;padding:5px 8px;gap:6px}
.quick-chat-widget[data-height=short] .chat-conversation-head strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}
.quick-chat-widget[data-height=short] .chat-conversation-head small{display:none}
.quick-chat-widget[data-height=short] .chat-conversation-head small:last-child{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:10px;line-height:14px}
.quick-chat-widget[data-height=short] .tg-stage-row{display:none}
.quick-chat-widget[data-height=short] .ux-chat-pins{max-height:22px;overflow:auto;flex:none}
.quick-chat-widget[data-height=short] .chat-compose-row textarea{height:40px;min-height:40px;max-height:40px;padding:10px 6px;overflow:auto}
.quick-chat-widget[data-height=short] .chat-composer{padding:5px 28px 7px 8px}
.quick-chat-widget[data-height=short] .chat-compose-row{padding:3px}
.quick-chat-widget[data-height=short] .chat-messages{padding:8px;min-height:0}
.quick-chat-widget[data-keyboard=compact] .ux-chat-controls{display:none}
.quick-chat-widget .chat-compose-row textarea{font-size:13px;min-height:40px;padding:10px 6px;line-height:19px}
.quick-chat-widget .chat-compose-row>.primary{width:38px;min-width:38px;height:38px}
.quick-chat-widget .chat-compose-row>[data-send]{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;min-width:38px;min-height:38px;font-size:0!important;line-height:1;padding:0!important;overflow:hidden}
.quick-chat-widget .chat-compose-row>[data-send]:after{content:'';display:block;width:20px;height:20px;margin:0;transform:none;background:center/20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 3-7 18-4-7-7-4 18-7ZM10 14 21 3'/%3E%3C/svg%3E")}
.quick-chat-widget .chat-compose-row textarea{border:0!important;outline:0;box-shadow:none;background:transparent;border-radius:0}
.quick-chat-widget .chat-compose-row:focus-within{outline:2px solid #a2c4e9;outline-offset:1px}
.quick-chat-widget .chat-attach{width:34px;min-width:34px;height:38px}
.quick-chat-widget .chat-search{padding:9px 10px}
.quick-chat-widget .ux-chat-request-heading{min-height:62px}
.quick-chat-widget .ux-chat-car-row .chat-thread{min-height:70px;padding:8px}
.quick-chat-widget .ux-chat-car-row .chat-avatar{width:36px;height:36px}
.quick-chat-widget .ux-chat-general{min-height:62px}
.chat-conversation-head>.chat-back{min-width:36px;min-height:36px}
.ux-chat-controls>button,.ux-chat-controls>select{min-height:32px}
@media(max-width:700px){
 .chat-conversation-head>.chat-back{min-width:44px;min-height:44px;width:44px}
 .ux-chat-controls>button,.ux-chat-controls>select{min-height:40px}
 .quick-chat-heading .quick-chat-window-actions>button{width:36px;min-width:36px;height:40px;min-height:40px}
 .quick-chat-heading{padding-left:10px}
 .quick-chat-widget .chat-conversation-head>.chat-back{width:40px;min-width:40px;height:40px;min-height:40px}
 .quick-chat-widget .chat-workspace>.chat-audience-tabs button{min-height:36px;padding:6px 9px;font-size:11px}
 .quick-chat-widget .ux-chat-controls button,.quick-chat-widget .ux-chat-controls select{min-height:36px}
 .quick-chat-resize{width:32px;height:32px;min-width:32px;min-height:32px}
}
@media(prefers-reduced-motion:reduce){.quick-chat-widget *{scroll-behavior:auto}}

/* A quiet surface above a working form; text and controls remain opaque. */
.quick-chat-widget{background:rgba(255,255,255,.96);border-color:var(--rd-line,#e0e5eb);box-shadow:0 12px 38px rgba(36,51,69,.17);color:var(--rd-ink,#243345)}
.quick-chat-widget .chat-workspace{font-family:inherit;background:transparent}
.quick-chat-widget .chat-conversation{background:#f1f4f7;background-image:none}
.quick-chat-widget .chat-workspace[data-chat-audience=internal] .chat-conversation{background:#f5f1ea;background-image:none}
.quick-chat-widget .chat-conversation-head{background:rgba(255,255,255,.98);box-shadow:none;border-bottom:1px solid var(--rd-line,#e0e5eb)}
.quick-chat-widget .chat-workspace[data-chat-audience=internal] .chat-conversation-head{background:#f8f1e6;border-color:#e6dbca}
.quick-chat-widget .chat-message{background:#fff;box-shadow:0 1px 2px rgba(36,51,69,.08)}
.quick-chat-widget .chat-message.is-own{background:#e7eef5}
.quick-chat-widget .chat-message>strong,.quick-chat-widget .chat-message.is-own>strong{color:#45637e}
.quick-chat-widget .chat-message p{color:var(--rd-ink,#243345)}
.quick-chat-widget .chat-message footer,.quick-chat-widget .chat-message.is-own footer{color:#526676}
.quick-chat-widget>.quick-chat-heading{background:rgba(248,250,252,.94);border-color:var(--rd-line,#e0e5eb);color:var(--rd-ink,#243345)}
.quick-chat-widget:has([data-chat-audience=internal].selected)>.quick-chat-heading{background:#f8f1e6;border-color:#e6dbca;color:#79592b}
.quick-chat-widget .quick-chat-heading .quick-chat-window-actions>button{color:var(--rd-muted,#596a7b)}
.quick-chat-widget .quick-chat-heading .quick-chat-window-actions>button:hover{background:#e8edf3;color:var(--rd-ink,#243345)}
.quick-chat-widget .chat-workspace>.chat-audience-tabs{background:#f6f8fa;border-color:var(--rd-line,#e0e5eb)}
.quick-chat-widget .chat-workspace>.chat-audience-tabs button{color:var(--rd-muted,#596a7b)}
.quick-chat-widget .chat-workspace>.chat-audience-tabs [data-chat-audience=shared].selected{background:#e7eef6;color:#355779;border-color:#d3dfeb}
.quick-chat-widget .chat-workspace>.chat-audience-tabs [data-chat-audience=internal].selected{background:#f8f1e6;border-color:#e6d8be;color:#79592b}
.quick-chat-widget .chat-conversation{background:#f1f4f6;background-image:none}
.quick-chat-widget .chat-workspace[data-chat-audience=internal] .chat-conversation{background:#f5f2ed;background-image:none}
.quick-chat-widget .chat-conversation-head{background:#fff;border-color:var(--rd-line,#e0e5eb);box-shadow:none}
.quick-chat-widget .chat-workspace[data-chat-audience=internal] .chat-conversation-head{background:#faf6ee;border-color:#e8dfd1}
.quick-chat-widget .chat-message{background:#fff;box-shadow:0 1px 2px rgba(36,51,69,.08)}
.quick-chat-widget .chat-message.is-own{background:#e8eff6}
.quick-chat-widget .chat-message>strong{color:#466681}
.quick-chat-widget .chat-message p{color:var(--rd-ink,#243345)}
.quick-chat-widget .chat-message footer,.quick-chat-widget .chat-message.is-own footer{color:#607486}
.quick-chat-widget .chat-message footer button{color:#4b6a84;opacity:1}
.quick-chat-widget .chat-system{background:#e1e7ec;color:#4b5d6d}
.quick-chat-widget .chat-system time{color:#526676}
.quick-chat-widget .chat-conversation{background:#f2f5f7;background-image:none}
.quick-chat-widget .chat-workspace[data-chat-audience=internal] .chat-conversation{background:#f6f2eb}
.quick-chat-widget .chat-conversation-head{background:#fff;border-color:var(--rd-line,#e0e5eb)}
.quick-chat-widget .chat-workspace[data-chat-audience=internal] .chat-conversation-head{background:#fbf7ef;border-color:#e6dbca}
.quick-chat-widget .chat-message{background:#fff;box-shadow:0 1px 2px rgba(36,51,69,.08)}
.quick-chat-widget .chat-message.is-own{background:#e8eff6}
.quick-chat-widget .chat-message>strong,.quick-chat-widget .chat-message.is-own>strong{color:#466984}
.quick-chat-widget .chat-message p{color:var(--rd-ink,#243345)}
.quick-chat-widget .chat-message footer,.quick-chat-widget .chat-message.is-own footer{color:#5c7080}
.quick-chat-widget .chat-compose-row{box-shadow:0 1px 3px rgba(36,51,69,.10)}
.quick-chat-widget .chat-compose-row>[data-send]{background:var(--rd-action,#48668b)}
.quick-chat-widget .chat-compose-row:focus-within{outline-color:#7898b7}
.quick-chat-widget .ux-chat-controls button,.quick-chat-widget .chat-document{color:#486b88}
.quick-chat-widget .chat-thread.is-active,.quick-chat-widget .chat-thread.is-active:hover{background:#e7eef5;color:var(--rd-ink,#243345)}
.quick-chat-widget .chat-thread.is-active strong,.quick-chat-widget .chat-thread.is-active small,.quick-chat-widget .chat-thread.is-active .chat-thread-text>span{color:#314d66}
.quick-chat-widget .chat-thread.is-active .chat-count{background:#d3dfeb;color:#365976}
.quick-chat-widget .quick-chat-resize{background:#f5f8fbee;color:#60788d}
.quick-chat-widget .quick-chat-resize:hover{background:#e5edf4;color:#355779}
