#sos-chat {
    --chat-ink: #263344;
    --chat-muted: #65717e;
    --chat-brand: #b51f29;
    --chat-brand-dark: #931922;
    --chat-purple: #dedfff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--chat-ink);
    position: relative;
    z-index: 100001;
}
#sos-chat * { box-sizing: border-box; }
#sos-chat [hidden] { display: none !important; }
#sos-chat button, #sos-chat select, #sos-chat input, #sos-chat textarea { font: inherit; line-height: 1.4; }
#sos-chat button {
    cursor: pointer;
    border: 1px solid #e0e4eb;
    border-radius: 10px;
    background: #fff;
    color: var(--chat-ink);
    padding: 8px 11px;
    text-transform: none;
    letter-spacing: normal;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
#sos-chat button:hover:not(:disabled) { transform: translateY(-1px); border-color: #d09da0; }
#sos-chat button:active:not(:disabled) { transform: scale(.97); }
#sos-chat button:focus-visible, #sos-chat a:focus-visible, #sos-chat input:focus-visible, #sos-chat select:focus-visible, #sos-chat textarea:focus-visible { outline: 3px solid #df7a48; outline-offset: 2px; }
#sos-chat button:disabled { opacity: .55; cursor: wait; }
#sos-chat .sos-chat-launch {
    position: fixed;
    right: 88px;
    bottom: calc(24px + var(--cookie-banner-height, 0px));
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 7px 12px 7px 7px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(120deg, var(--chat-brand), var(--chat-brand-dark));
    color: #fff;
    box-shadow: 0 10px 30px #78172255;
    animation: sos-launch-enter .4s ease-out both;
}
#sos-chat .sos-chat-launch:hover:not(:disabled) { box-shadow: 0 13px 34px #78172266; border-color: transparent; }
#sos-chat .sos-chat-launch::before { content: ""; position: absolute; inset: -5px; border: 2px solid #c5474d88; border-radius: 22px; animation: sos-launch-pulse 4s ease-out infinite; pointer-events: none; }
#sos-chat.sos-chat-is-open .sos-chat-launch { display: none; }
.sos-chat-launch-icon, .sos-chat-header-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: #fff;
    color: var(--chat-brand);
    font-size: 22px;
    line-height: 1;
}
.sos-chat-launch-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: start; }
.sos-chat-launch-copy strong { font-size: 14px; font-weight: 800; white-space: nowrap; }
.sos-chat-launch-copy small { color: #ffe4e5; font-size: 11px; white-space: nowrap; }
.sos-chat-launch-arrow { color: #ffd1d4; margin-inline-start: 5px; align-self: flex-start; }
#sos-chat-panel {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    width: 430px;
    height: 780px;
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border: 1px solid #e0e2ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 65px #25273844;
    transform-origin: bottom right;
    animation: sos-panel-open .3s cubic-bezier(.22, 1, .36, 1) both;
}
.sos-chat-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 18px;
    color: #fff;
    background: radial-gradient(circle at 87% 120%, #ffffff16 0 1px, transparent 2px) 0 0 / 20px 20px, linear-gradient(115deg, #a61c25, #c33236);
}
.sos-chat-header-icon { width: 38px; height: 38px; background: #ffffff24; border: 1px solid #ffffff44; color: #fff; }
.sos-chat-header-copy { min-width: 0; flex: 1; }
.sos-chat-header strong { display: block; font-size: 16px; line-height: 1.25; font-weight: 800; }
.sos-chat-header small { display: block; margin-top: 3px; font-size: 12px; color: #ffe2e3; }
#sos-chat .sos-chat-header button { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border: 0; background: #ffffff24; color: #fff; font-size: 25px; padding: 0; }
#sos-chat .sos-chat-header button:hover { background: #ffffff44; }
.sos-chat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 15px; border-bottom: 1px solid #edf0f4; background: #fff; }
.sos-chat-toolbar-actions { display: flex; align-items: center; flex: none; gap: 2px; }
#sos-chat select { display: block !important; appearance: auto; width: auto; min-width: 0; height: auto; padding: 7px 9px; border: 1px solid #dfe3e9; border-radius: 8px; background: #fff; color: var(--chat-ink); }
#sos-chat .sos-chat-toolbar button { display: inline-flex; align-items: center; gap: 4px; padding: 7px 8px; border: 0; border-radius: 8px; background: #fff; color: var(--chat-brand); font-size: 12px; font-weight: 700; white-space: nowrap; }
#sos-chat .sos-chat-toolbar button:hover { background: #fff0f0; }
#sos-chat .sos-chat-toolbar [data-action="clear"] { color: #7c3540; }
#sos-chat .sos-chat-toolbar button svg { width: 16px; height: 16px; flex: none; }
#sos-chat .sos-chat-privacy { margin: 0; padding: 8px 14px; border-bottom: 1px solid #ece8ff; background: #f6f3ff; color: #5f5b79; font-size: 11px; line-height: 1.35; }
.sos-chat-body { flex: 1; min-height: 60px; overflow: auto; overscroll-behavior: contain; padding: 17px 15px; background: #fff; scroll-behavior: smooth; }
#sos-chat p { font: inherit; line-height: 1.5; margin: 0 0 10px; }
.sos-chat-message {
    position: relative;
    width: fit-content;
    max-width: calc(100% - 37px);
    padding: 11px 13px;
    margin: 0 0 14px 36px;
    border: 0;
    border-radius: 13px 13px 13px 4px;
    background: #f0f2f5;
    overflow-wrap: anywhere;
    animation: sos-message-in .27s ease-out both;
}
.sos-chat-message > p { white-space: pre-wrap; }
.sos-chat-message.assistant::before {
    content: "✦";
    position: absolute;
    left: -36px;
    top: 0;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--chat-brand);
    color: #fff;
    font-size: 15px;
}
.sos-chat-message.user {
    margin-inline-start: auto;
    margin-inline-end: 0;
    border-radius: 14px 14px 4px 14px;
    background: var(--chat-purple);
    color: #282d4a;
}
.sos-chat-message.staff { background: #edf6ef; border-inline-start: 3px solid #34a06b; }
.sos-chat-message.staff::before { content: "✦"; position: absolute; left: -36px; top: 0; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #25865b; color: #fff; font-size: 15px; }
.sos-chat-message-time { display: block; margin-top: 3px; color: #7f8995; font-size: 10px; text-align: end; }
.sos-chat-message.is-pending { opacity: .65; }
.sos-chat-message.is-pending::after { content: "•••"; display: inline-block; margin-inline-start: 6px; color: #777d8b; font-size: 11px; letter-spacing: 1px; animation: sos-typing .9s ease-in-out infinite; }
.sos-chat-message.system { max-width: 92%; margin: 12px auto; padding: 9px 13px; border-radius: 12px; background: #fff5e9; color: #684536; text-align: center; font-size: 12px; }
.sos-chat-executive { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 9px; margin: 0 0 13px; padding: 10px; border: 1px solid #dce9e1; border-radius: 12px; background: #f0f8f2; color: #256445; font-weight: 700; animation: sos-message-in .3s ease-out; }
.sos-chat-executive img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.sos-chat-executive.is-waiting { border-color: #f0dcad; background: #fff8e9; color: #785624; }
.sos-chat-executive.is-waiting::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #df9a2b; box-shadow: 0 0 0 4px #df9a2b22; animation: sos-typing 1.2s ease-in-out infinite; }
.sos-chat-flow { padding: 8px 0 14px 36px; animation: sos-message-in .3s ease-out; }
.sos-chat-flow-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
#sos-chat .sos-chat-flow-buttons button { flex: 1 1 145px; min-height: 46px; padding: 10px 12px; border-color: #edd4d6; border-radius: 12px; background: #fff6f6; color: var(--chat-brand); font-weight: 700; text-align: start; }
#sos-chat .sos-chat-flow-buttons button:hover { background: #ffe8e8; }
#sos-chat .sos-chat-flow-buttons [data-flow-choice="chat"], #sos-chat .sos-chat-flow-buttons [data-flow-choice="ai"] { background: #f1f0ff; border-color: #dddcf9; color: #514eb0; }
#sos-chat .sos-chat-flow-buttons [data-flow-choice="chat"]:hover, #sos-chat .sos-chat-flow-buttons [data-flow-choice="ai"]:hover { background: #e8e7ff; }
#sos-chat .sos-chat-callback { padding: 17px; margin: 12px 0; border: 1px solid #e2e6ed; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px #2430471f; animation: sos-message-in .3s ease-out; }
#sos-chat .sos-chat-callback h3 { margin: 0 0 4px; font-size: 17px; }
#sos-chat .sos-chat-callback > p { color: var(--chat-muted); font-size: 12px; }
#sos-chat .sos-chat-callback label { display: block; margin: 10px 0; font-size: 12px; font-weight: 700; }
#sos-chat .sos-chat-callback label > span { display: block; margin-bottom: 4px; }
#sos-chat .sos-chat-callback select { width: 100%; }
#sos-chat .sos-chat-callback .sos-chat-consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
#sos-chat .sos-chat-callback .sos-chat-consent span { margin: 0; }
.sos-chat-callback-buttons { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#sos-chat.sos-chat-menu #sos-chat-compose, #sos-chat.sos-chat-menu .sos-chat-actions, #sos-chat.sos-chat-menu .sos-chat-quick,
#sos-chat.sos-chat-callback-done #sos-chat-compose, #sos-chat.sos-chat-callback-done .sos-chat-actions, #sos-chat.sos-chat-callback-done .sos-chat-quick,
#sos-chat.sos-chat-staff .sos-chat-quick, #sos-chat.sos-chat-staff .sos-chat-actions { display: none; }
#sos-chat .sos-chat-quick-title { margin: 18px 0 9px; color: var(--chat-muted); font-size: 12px; font-weight: 700; }
.sos-chat-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#sos-chat .sos-chat-suggestions button { min-height: 40px; display: flex; align-items: center; gap: 7px; text-align: start; color: var(--chat-brand); border: 1px solid #efdfe0; border-radius: 11px; background: #fff; font-size: 12px; font-weight: 700; }
#sos-chat .sos-chat-suggestions button:hover { background: #fff7f7; }
.sos-chat-suggestions button::before { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: #fff0f0; color: var(--chat-brand); font-size: 15px; }
.sos-chat-suggestions [data-prompt="sale"]::before { content: "▣"; }
.sos-chat-suggestions [data-prompt="rental"]::before { content: "↻"; }
.sos-chat-suggestions [data-prompt="repair"]::before { content: "⚙"; }
.sos-chat-suggestions [data-prompt="consumables"]::before { content: "◈"; }
#sos-chat-status:not(:empty) { display: block; position: relative; width: fit-content; max-width: calc(100% - 37px); margin: 8px 0 14px 36px; padding: 9px 12px; border-radius: 12px 12px 12px 4px; background: #fff0e9; color: #8b3925; font-size: 12px; }
#sos-chat-status[data-state="loading"] { width: 64px; height: 34px; font-size: 0; background: #f0f2f5; }
#sos-chat-status[data-state="loading"]::before { content: "✦"; position: absolute; left: -36px; top: 1px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--chat-brand); color: #fff; font-size: 15px; }
#sos-chat-status[data-state="loading"]::after { content: "•••"; display: block; color: #858b96; font-size: 22px; line-height: 12px; letter-spacing: 2px; animation: sos-typing .9s ease-in-out infinite; }
#sos-chat .sos-chat-primary { color: #fff; background: var(--chat-brand); border-color: var(--chat-brand); font-weight: 700; }
#sos-chat .sos-chat-primary:hover:not(:disabled) { color: #fff; background: var(--chat-brand-dark); border-color: var(--chat-brand-dark); }
#sos-chat-compose { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; border-top: 1px solid #ededf6; background: #fff; }
#sos-chat textarea, #sos-chat input:not([type=checkbox]):not([type=file]) { display: block; width: 100%; min-width: 0; padding: 10px; border: 1px solid #dfe3e9; border-radius: 10px; background: #fff; color: var(--chat-ink); resize: vertical; box-shadow: none; }
#sos-chat textarea:focus, #sos-chat input:not([type=checkbox]):not([type=file]):focus { border-color: var(--chat-brand); box-shadow: 0 0 0 3px #e9b6b766; }
#sos-chat-input { flex: 1; min-height: 42px; max-height: 110px; }
#sos-chat-compose .sos-chat-primary { display: grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 11px; padding: 0; font-size: 24px; line-height: 1; }
.sos-chat-actions { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 14px 13px; background: #fff; }
#sos-chat .sos-chat-actions button, #sos-chat .sos-chat-upload { font-size: 11px; padding: 6px 8px; border-radius: 8px; }
#sos-chat .sos-chat-actions [data-action="lead"] { color: var(--chat-brand); background: #fff2f2; border-color: #efc7c9; font-weight: 700; }
#sos-chat .sos-chat-actions [data-action="lead"]:hover { background: #ffe4e4; }
.sos-chat-upload { position: relative; display: inline-flex; align-items: center; border: 1px solid #e0e4eb; background: #fff; cursor: pointer; overflow: hidden; }
.sos-chat-upload:focus-within { outline: 3px solid #df7a48; outline-offset: 2px; }
.sos-chat-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
#sos-chat.sos-chat-lead-open #sos-chat-compose, #sos-chat.sos-chat-lead-open .sos-chat-actions { display: none; }
#sos-chat-lead { padding: 19px; margin-top: 16px; border: 1px solid #e2e6ed; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px #2430471f; animation: sos-message-in .3s ease-out both; }
#sos-chat .sos-chat-lead-header { display: flex; align-items: flex-start; gap: 10px; }
#sos-chat-lead h3 { flex: 1; margin: 0 0 5px; text-align: center; font-size: 17px; line-height: 1.35; }
#sos-chat .sos-chat-lead-header button { width: 26px; height: 26px; flex: none; padding: 0; border: 0; background: #f2f3f6; color: var(--chat-muted); font-size: 20px; line-height: 1; }
#sos-chat .sos-chat-lead-intro { margin-bottom: 16px; text-align: center; color: var(--chat-muted); font-size: 12px; }
#sos-chat-lead label { display: block; margin: 10px 0; }
#sos-chat-lead label > span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; }
#sos-chat-lead select { width: 100%; }
#sos-chat-lead .sos-chat-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; }
#sos-chat-lead .sos-chat-consent span { font-weight: 400; }
#sos-chat-lead .sos-chat-primary { display: block; min-width: 140px; margin: 16px auto 8px; }
.sos-chat-product { padding: 11px; margin: 10px 0; border: 1px solid #e0e2e9; border-radius: 11px; background: #fff; }
.sos-chat-product a { color: #9f2028; text-decoration: underline; font-weight: 700; }
.sos-chat-product dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 5px; margin: 9px 0; font-size: 12px; }
.sos-chat-product dt, .sos-chat-product dd { margin: 0; overflow-wrap: anywhere; }
.sos-chat-product dt { color: var(--chat-muted); font-weight: 700; }
.sos-chat-product label { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.sos-chat-feedback { display: flex; gap: 5px; margin-top: 9px; }
#sos-chat .sos-chat-feedback button { padding: 5px 8px; font-size: 11px; }
.sos-chat-sources a { display: block; color: #9f2028; font-size: 12px; text-decoration: underline; }
.sos-chat-comparison { overflow: auto; }
.sos-chat-comparison table { min-width: 480px; border-collapse: collapse; font-size: 12px; }
.sos-chat-comparison th, .sos-chat-comparison td { padding: 8px; border: 1px solid #d6e1e5; text-align: start; vertical-align: top; }
.sos-chat-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 420px) {
    #sos-chat .sos-chat-toolbar [data-action="new"] span[data-t] { display: none; }
}
@keyframes sos-launch-enter { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sos-launch-pulse { 0%, 72%, 100% { opacity: 0; transform: scale(1); } 84% { opacity: .45; transform: scale(1.06); } }
@keyframes sos-panel-open { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sos-message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes sos-typing { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (max-width: 575px) {
    #sos-chat .sos-chat-launch { right: 80px; bottom: calc(16px + var(--cookie-banner-height, 0px)); }
    #sos-chat-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
    .sos-chat-header { padding: 13px 14px; }
    .sos-chat-body { padding: 15px 12px; }
    #sos-chat input, #sos-chat textarea, #sos-chat select { font-size: 16px !important; }
}
@media (max-height: 620px) { #sos-chat-panel { bottom: 8px; height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); } }
@media (prefers-reduced-motion: reduce) {
    #sos-chat *, #sos-chat *::before, #sos-chat *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==================================================
   MODERN UI OVERRIDES (SOS AI Assistant Upgrade)
   ================================================== */

#sos-chat {
    --chat-ink: #1a202c;
    --chat-muted: #718096;
    --chat-brand: #d32f2f;
    --chat-brand-dark: #b71c1c;
    --chat-user-bg: linear-gradient(135deg, #ef5350, #c62828);
}

/* Sleeker Panel */
#sos-chat-panel {
    border-radius: 24px;
    border: none;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Modern Header */
.sos-chat-header {
    background: linear-gradient(135deg, #ef5350, #b71c1c) !important;
    padding: 20px 22px;
}
.sos-chat-header-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 14px;
}
.sos-chat-header strong { font-size: 18px; }
#sos-chat .sos-chat-header button {
    background: transparent;
    border-radius: 50%;
}
#sos-chat .sos-chat-header button:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Toolbar / Actions */
.sos-chat-toolbar {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f3f5;
}
#sos-chat select {
    border-radius: 12px;
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

/* Chat Bubbles */
.sos-chat-message {
    border-radius: 18px 18px 18px 4px;
    padding: 13px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.sos-chat-message.assistant {
    background: #f8f9fa;
    border: 1px solid #f1f3f5;
    color: #2d3748;
}
.sos-chat-message.assistant::before {
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
}
.sos-chat-message.user {
    background: var(--chat-user-bg) !important;
    color: #ffffff !important;
    border-radius: 18px 18px 4px 18px;
    border: none;
}

/* Flow Buttons (Choices) */
.sos-chat-flow-buttons {
    gap: 10px;
    padding: 0 10px;
}
#sos-chat .sos-chat-flow-buttons button {
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #edf2f7;
}
#sos-chat .sos-chat-flow-buttons button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* Compose Area */
#sos-chat-compose {
    padding: 16px 20px;
    border-top: none;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.03);
    background: #fff;
    z-index: 10;
    position: relative;
}
#sos-chat-input {
    border-radius: 24px !important;
    padding: 12px 20px !important;
    background: #f4f6f8 !important;
    border: 1px solid #e2e8f0 !important;
}
#sos-chat-input:focus {
    background: #fff !important;
    border-color: var(--chat-brand) !important;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1) !important;
}
#sos-chat-compose .sos-chat-primary {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(211, 47, 47, 0.3);
}
#sos-chat-compose .sos-chat-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.4);
}

/* Quick Suggestions */
#sos-chat .sos-chat-suggestions button {
    border-radius: 16px;
    padding: 10px;
    border-color: #f1f3f5;
}
#sos-chat .sos-chat-suggestions button::before {
    border-radius: 10px;
}

/* Readable message timestamps, including the red customer bubble. */
#sos-chat .sos-chat-message-time {font-size:11px;line-height:1.5;margin-top:7px;color:#4b5563;font-weight:500;direction:ltr;}
#sos-chat .sos-chat-message.user .sos-chat-message-time {color:#fff;opacity:1;}
/* Keep the support notice at the end of the chat panel. */
#sos-chat .sos-chat-privacy {flex-shrink:0;border-bottom:0;border-top:1px solid #ece8ff;padding:8px 14px;margin:0;}

#sos-chat .sos-chat-message.staff .sos-chat-message-time {display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;}
#sos-chat .sos-chat-staff-identity {display:inline-flex;align-items:center;gap:6px;}
#sos-chat .sos-chat-staff-identity img,#sos-chat .sos-chat-staff-initial {width:24px;height:24px;min-width:24px;border-radius:50%;object-fit:cover;}
#sos-chat .sos-chat-staff-initial {display:inline-grid;place-items:center;background:#dcece2;color:#1d5d3b;font-weight:700;font-size:12px;}
/* Staff portrait sits outside the bubble; the signature stays inside. */
#sos-chat .sos-chat-message.staff::before {display:none;}
#sos-chat .sos-chat-message.staff .sos-chat-staff-identity img,
#sos-chat .sos-chat-message.staff .sos-chat-staff-initial {position:absolute;left:-36px;top:0;width:26px;height:26px;min-width:26px;border-radius:0;object-fit:cover;}
#sos-chat .sos-chat-message.staff .sos-chat-message-time {gap:4px;}