/* Rafi support: a calm, focused messaging workspace. */
.support-page{background:#f4f6fa}.support-header{max-width:1360px;padding:20px 32px;border:0}.support-header>span{color:#52637e}.support-customer{max-width:1240px;gap:64px;margin:30px auto 24px;align-items:start;grid-template-columns:300px minmax(0,1fr)}.support-summary{padding-top:36px}.support-summary h1{font-size:32px;line-height:1.55;letter-spacing:0;margin:14px 0 20px}.support-summary>p{line-height:1.9;max-width:33ch}.support-label{font-size:13px;font-weight:700;color:#285bc3}.support-help{border-top:1px solid #d9e2ef;margin-top:38px;padding-top:22px}.support-help a{text-decoration:none;color:#285bc3;font-weight:700}.support-conversation{border-color:#dce4f0;border-radius:20px;height:min(780px,calc(100dvh - 140px));box-shadow:0 10px 40px #1b365408}.support-chat-head{min-height:98px;padding:20px 24px}.support-chat-head>div{min-width:0}.support-chat-head h2{font-size:18px}.support-chat-head p{max-width:65ch;line-height:1.7}.support-person{float:inline-start;display:grid;place-items:center;width:42px;height:42px;background:#e9effe;color:#2d60ce;border-radius:14px;font-size:20px;font-weight:700;margin-inline-end:12px}.support-status{border:1px solid #d7e3fa;background:#f0f5ff;color:#2456b6}.support-messages{padding:24px;gap:20px;background:#fbfcfe}.support-message{max-width:83%}.support-message header{padding-bottom:6px;gap:14px}.support-message .message-body{background:#eff3f8;border:1px solid #e8edf4;padding:13px 16px;border-radius:15px 15px 5px 15px;line-height:1.85}.support-message.mine .message-body{background:#edf2ff;border-color:#dce6ff;border-radius:15px 15px 15px 5px}.support-message.system .message-body{border:0;font-size:12px;line-height:1.8}.support-message.internal .message-body{background:#fff5dd;border-color:#f2e0b0}.support-compose{padding:16px 20px 18px;border-top:1px solid #e1e7f0}.support-compose textarea{border:0;background:#f3f6fb;resize:none;border-radius:12px;min-height:74px;max-height:150px;padding:13px 15px;line-height:1.8}.support-compose textarea::placeholder{color:#586980}.support-compose-actions{padding-top:10px;gap:12px}.support-attach{padding:7px 10px;background:#f3f6fb;border-radius:9px;font-weight:700;color:#354e72;min-height:38px}.support-attach>span{font-size:19px;line-height:1;margin-inline-end:4px}.support-primary{background:#2d61e6;border-color:#2d61e6;border-radius:10px;min-height:44px;box-shadow:none}.support-compose-actions>.support-primary{min-width:92px}.support-open input{min-height:48px}.support-open p{line-height:1.8}.support-page .support-footer{padding:12px 20px 22px}.support-page .support-footer a{font-size:12px}.support-desk{max-width:1560px}.support-desk-head{margin-bottom:22px}.support-desk-head h1{font-size:28px;margin:0 0 5px}.support-desk-head p{margin:0;color:#52637e}.support-desk-tools .secondary,.support-console-tools button.secondary{background:#fff;border:1px solid #dce4ef;color:#354e72;border-radius:9px;min-height:40px;padding:8px 14px}.support-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0 0 18px;border:1px solid #dce4ef;border-radius:14px;background:#fff}.support-metrics>div{display:flex;flex-direction:column;gap:8px;padding:20px 24px;border-inline-end:1px solid #e4eaf2}.support-metrics>div:last-child{border:0}.support-metrics span{font-size:12px;color:#52637e}.support-metrics strong{font-size:28px;font-weight:700;line-height:1.2}.support-metrics strong small{font-size:14px;color:#52637e}.support-metrics>div>small{font-size:11px;color:#52637e}.support-console-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 18px;color:#52637e;font-size:12px}.support-console-tools>div{display:flex;gap:8px;flex-wrap:wrap}.support-desk-layout{border-radius:16px;border-color:#dce4ef}.support-ticket-list{background:#fff}.support-ticket-filters{padding:16px;gap:10px;background:#f8fafd}.support-ticket-row{padding:18px 16px;border-bottom:1px solid #e7edf5;gap:7px}.support-ticket-row.selected{background:#edf3ff;box-shadow:inset 0 0 0 1px #cbdcfd}.support-ticket-row .unread{justify-self:start;background:#e8efff;padding:3px 8px;border-radius:12px}.support-order-context{background:#f9fbfe;padding:22px}.support-order-context h3{font-size:16px}.support-order-context dt{font-size:11px}.support-order-context dd{font-size:13px;font-weight:500}.support-feedback-panel,.support-ai-panel{padding:24px;background:#fff;border:1px solid #dce4ef;border-radius:14px;margin-bottom:20px}.support-feedback-panel h2,.support-ai-panel h2{font-size:20px;margin:0 0 8px}.support-feedback-panel>p,.support-ai-panel p{color:#52637e}.support-feedback-panel article{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:16px 0;border-top:1px solid #e1e8f1}.support-feedback-panel article p,.support-feedback-panel article small{grid-column:1/-1;margin:0}.support-feedback-panel article small{font-size:11px;color:#52637e}.support-console-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.support-console-heading p{font-size:13px;margin:0;max-width:65ch}.support-console-heading .support-status{white-space:nowrap}.support-config-form,.support-document-form{display:grid;gap:14px}.support-config-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.support-config-form label:not(.support-check),.support-document-form label:not(.support-check){display:grid;gap:6px;font-size:13px}.support-ai-status{font-size:12px;padding:12px 0;border-bottom:1px solid #e2e9f2;overflow-wrap:anywhere}.support-documents{margin-top:26px;padding-top:16px;border-top:1px solid #e2e9f2}.support-documents>p{font-size:12px}.support-documents details{border-bottom:1px solid #e2e9f2;padding:14px 0}.support-documents summary{cursor:pointer;font-weight:700}.support-documents summary small{font-weight:400;color:#52637e}.support-document-form{padding-top:18px}.support-config-form [role=status],.support-document-form [role=status]{font-size:13px;color:#284d85}.support-compose .support-check input{width:auto}.support-staff-login{box-shadow:0 12px 40px #172e540a}.support-staff-login h1{font-size:25px;margin:0}.support-staff-login p{color:#52637e}.support-file-button:hover{border-color:#a6bff0;background:#f6f9ff}.support-page textarea:focus,.support-desk textarea:focus{outline:2px solid #8eaff5;outline-offset:2px}
@media(max-width:1200px){.support-customer{gap:30px;grid-template-columns:250px minmax(0,1fr)}.support-metrics>div{padding:16px}.support-desk-chat{height:620px}}
@media(max-width:700px){.support-header{padding:12px 16px}.support-customer{display:block;margin:10px auto 0;padding:0 12px}.support-summary{padding:2px 6px 15px}.support-summary h1{font-size:23px;margin:5px 0}.support-summary>p{margin:6px 0;font-size:13px;max-width:none}.support-summary dl{margin-top:10px}.support-conversation{height:calc(100dvh - 240px);min-height:480px;border-radius:16px}.support-chat-head{padding:15px;min-height:88px}.support-chat-head h2{font-size:16px}.support-person{width:36px;height:36px;border-radius:12px;margin-inline-end:10px}.support-status{font-size:10px;padding:4px 8px}.support-message{max-width:92%}.support-messages{padding:18px 12px;gap:16px}.support-compose{padding:12px}.support-compose textarea{min-height:66px}.support-compose-actions small{max-width:112px;font-size:10px}.support-compose-actions>.support-primary{min-width:70px}.support-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.support-metrics>div{padding:14px 16px;border-bottom:1px solid #e4eaf2}.support-metrics>div:nth-child(2){border-inline-end:0}.support-metrics>div:nth-child(3){border-bottom:0}.support-metrics strong{font-size:24px}.support-console-tools{align-items:start;flex-direction:column;gap:10px}.support-console-tools>div{width:100%}.support-console-tools button{flex:1}.support-desk-head h1{font-size:23px}.support-config-fields{grid-template-columns:1fr}.support-ai-panel,.support-feedback-panel{padding:16px}.support-console-heading{display:block}.support-console-heading .support-status{display:inline-block;margin-top:10px}.support-desk-chat{height:calc(100dvh - 200px);min-height:470px}.support-chat-head .support-desk-tools{max-width:48%}.support-desk-tools button{font-size:12px}.support-feedback-panel article{grid-template-columns:1fr}.support-footer{font-size:11px}}
html[data-theme=dark] .support-page{background:#101827}html[data-theme=dark] :is(.support-metrics,.support-ai-panel,.support-feedback-panel,.support-ticket-list,.support-console-tools button.secondary,.support-desk-tools .secondary){background:#182336;color:#e4eaf5;border-color:#34425b}html[data-theme=dark] :is(.support-messages,.support-ticket-filters,.support-order-context){background:#142033}html[data-theme=dark] :is(.support-compose textarea,.support-attach){background:#243148;color:#e4eaf5}html[data-theme=dark] .support-message .message-body{border-color:#34425b}html[data-theme=dark] .support-message.mine .message-body{background:#233c68}html[data-theme=dark] .support-ticket-row.selected{background:#243757}html[data-theme=dark] :is(.support-metrics span,.support-metrics>div>small,.support-console-tools,.support-desk-head p,.support-feedback-panel>p,.support-ai-panel p,.support-compose textarea::placeholder){color:#b9c8de}html[data-theme=dark] .support-status{background:#243757;border-color:#3d5478;color:#c8dcff}

.support-conversation.has-rating{height:auto;min-height:480px;max-height:none}.support-conversation.has-rating .support-messages{flex:none;max-height:300px;min-height:100px}

.support-chat-head>div:has(.support-person){display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:12px;align-items:start}.support-chat-head .support-person{grid-row:1/3;float:none;margin:0}.support-chat-head>div:has(.support-person)>h2,.support-chat-head>div:has(.support-person)>p{grid-column:2;margin:0}.support-chat-head>div:has(.support-person)>p{margin-top:3px}@media(max-width:700px){.support-chat-head>div:has(.support-person){grid-template-columns:36px minmax(0,1fr);column-gap:10px}}

.support-typing-indicator{flex:none;min-height:30px;padding:4px 24px 8px;color:var(--sp-muted,#52637e);font-size:12px;background:var(--sp-surface,#fff)}.support-typing-indicator::before{content:"•••";display:inline-block;letter-spacing:3px;color:#3474f6;margin-inline-end:8px}.support-compose-actions .support-improve{margin-inline-start:0;border:1px solid var(--sp-line,#dce4ef);background:var(--sp-surface,#fff);color:var(--sp-ink,#20334f);border-radius:9px;min-height:40px;padding:8px 12px}.support-undo{margin-top:8px;background:transparent;border:0;padding:4px 0;color:#285bc3;cursor:pointer;font:inherit;font-size:12px}#team-improve-note{display:block;color:var(--sp-muted,#52637e);margin-top:5px;font-size:12px;line-height:1.7}@media(max-width:700px){.support-compose-actions{flex-wrap:wrap}.support-compose-actions .support-improve{font-size:12px;padding:8px 10px}.support-typing-indicator{padding-inline:16px}}@media(prefers-reduced-motion:no-preference){.support-typing-indicator::before{animation:support-typing-pulse 1.2s ease-in-out infinite}@keyframes support-typing-pulse{50%{opacity:.35}}}

/* Staff messenger: the same system typography, bubbles and controls as the customer widget. */
#support-team-root{--sp-ink:#191f3b;--sp-muted:#6c6f74;--sp-line:#ededee;--sp-blue:#191f3b;--sp-tint:#f4f4f6;font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;max-width:1600px!important;margin:20px auto!important}
#support-team-root :is(button,input,textarea,select,h1,h2,h3){font-family:inherit!important}
#support-team-root .support-desk-head h1{font-size:24px;line-height:1.4;letter-spacing:-.4px}
#support-team-root .support-desk-head p{font-size:13px;color:var(--sp-muted)}
#support-team-root .support-metrics{border-color:var(--sp-line);border-radius:12px;box-shadow:none}
#support-team-root .support-metrics>div{padding:14px 20px;gap:4px}
#support-team-root .support-metrics strong{font-size:25px;color:var(--sp-ink)}
#support-team-root .support-desk-layout{grid-template-columns:290px minmax(0,1fr) 250px;height:min(820px,calc(100dvh - 255px));min-height:560px;border-color:var(--sp-line);border-radius:16px;box-shadow:0 5px 28px #191f3b08}
#support-team-root .support-ticket-filters{background:var(--sp-surface);padding:16px;border-bottom:1px solid var(--sp-line)}
#support-team-root .support-ticket-filters :is(input,select){font-size:13px;background:#f4f4f4;border-color:transparent;min-height:42px;border-radius:9px}
#support-team-root .support-ticket-row{padding:18px 20px;gap:6px;border-bottom-color:var(--sp-line)}
#support-team-root .support-ticket-row.selected{background:#f0f1f6;box-shadow:inset -3px 0 #191f3b}
#support-team-root .support-ticket-row b{font-size:14px;font-weight:600}
#support-team-root .support-ticket-row .unread{background:#191f3b;color:white;font-size:10px}
#support-team-root .support-desk-chat{height:100%;min-height:0}
#support-team-root .support-chat-head{min-height:76px;padding:14px 18px;gap:12px}
#support-team-root .support-chat-head>div:first-child{display:grid;grid-template-columns:auto 32px minmax(0,1fr);column-gap:10px;align-items:center;min-width:0;flex:1}
#support-team-root #team-back{grid-column:1;grid-row:1/3;width:32px;min-height:36px;padding:8px;border:0;background:transparent;color:var(--sp-muted)}
#support-team-root .team-chat-avatar{grid-column:2;grid-row:1/3;display:grid;place-items:center;width:32px;height:32px;background:#191f3b;color:#fff;border-radius:8px;font-size:16px;font-weight:600}
#support-team-root .support-chat-head h2{grid-column:3;font-size:14px;line-height:20px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
#support-team-root .support-chat-head p{grid-column:3;font-size:11px;line-height:17px;margin:0;overflow-wrap:anywhere}
#support-team-root .support-primary{background:#191f3b;border-color:#191f3b;color:white;min-height:38px;font-size:12px;padding:9px 12px;border-radius:9px}
#support-team-root .support-messages{background:var(--sp-surface);padding:24px;gap:20px;scroll-behavior:auto}
#support-team-root .support-message{display:flex;flex-direction:column;max-width:88%;font-size:14px}
#support-team-root .support-message header{order:2;margin:5px 12px 0;padding:0;font-size:12px;line-height:18px;color:var(--sp-muted);gap:6px}
#support-team-root .support-message header b{font-weight:400}
#support-team-root .support-message.mine header{justify-content:flex-end}
#support-team-root .support-message .message-body{border:0;border-radius:20px;background:#f4f4f4;color:#14161a;line-height:21px;padding:12px 16px}
#support-team-root .support-message.mine .message-body{background:#191f3b;color:white;border-radius:20px}
#support-team-root .support-message.internal .message-body{background:#fff3d5;color:#644b16;box-shadow:inset 0 0 0 1px #e9d5a7}
#support-team-root .support-message.system .message-body{background:transparent;font-size:12px;color:var(--sp-muted);padding:4px 8px}
.support-message:not(.system){display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.support-message.mine{align-items:flex-end}
.support-message:not(.system) .message-body{box-sizing:border-box;width:fit-content;max-width:100%;min-width:0}
#support-team-root .support-message:not(.system) .message-body{padding:8px 12px}
#support-team-root .support-message:not(.system) header{max-width:100%;margin:3px 0 0;padding-inline:3px;overflow-wrap:anywhere}
#support-team-root .support-compose{padding:12px 16px 10px;border-top:1px solid var(--sp-line);flex:none}
#support-team-root .support-compose textarea{background:transparent;border:0;border-radius:0;box-shadow:none;min-height:48px;max-height:120px;padding:8px 4px;line-height:21px;font-size:14px;resize:none;outline:0}
#support-team-root .support-compose:focus-within{box-shadow:inset 0 1px #c3c7d1}
#support-team-root .support-compose.is-internal{background:#fffaf0}
#support-team-root .support-compose-actions{gap:4px;padding-top:0;flex-wrap:wrap;align-items:center}
#support-team-root .support-attach,#support-team-root .team-icon{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:10px;border:0;border-radius:8px;background:transparent;color:var(--sp-muted);cursor:pointer;margin:0}
#support-team-root .support-attach:hover,#support-team-root .team-icon:hover{background:var(--sp-tint)}
#support-team-root .support-check{font-size:11px;margin-inline:6px;gap:5px}
#support-team-root #team-send{width:32px;height:32px;min-width:32px;min-height:32px;padding:8px;border-radius:50%;display:grid;place-items:center;margin-inline-start:auto;background:#191f3b;color:#fff}
#support-team-root #team-send:disabled{background:#f1f1f2;border-color:#f1f1f2;color:#b9bbc0;opacity:1;cursor:default}
#support-team-root .support-improve{font-size:11px;min-height:32px;padding:6px 8px;border-color:var(--sp-line);margin:0}
#support-team-root #team-upload-state,#support-team-root #team-improve-note{font-size:10px;line-height:16px;color:var(--sp-muted);margin-top:5px}
#support-team-root #team-improve-note:empty{display:none}
#support-team-root .support-order-context{background:#fafafa;padding:20px;border-color:var(--sp-line)}
#support-team-root .support-order-context dd{font-size:12px}
#support-team-root .team-image-preview{display:block;max-width:100%;max-height:220px;object-fit:contain;border-radius:12px;margin-bottom:8px}
#support-team-root #team-options{position:relative}
#support-team-root #team-options>summary{list-style:none;display:grid;place-items:center;width:36px;height:36px;cursor:pointer;border-radius:8px;color:var(--sp-muted)}
#support-team-root #team-options>summary::-webkit-details-marker{display:none}
#support-team-root #team-options[open]>summary{background:var(--sp-tint)}
#support-team-root .team-options-list{position:absolute;inset-inline-end:0;top:40px;min-width:200px;background:var(--sp-surface);border:1px solid var(--sp-line);border-radius:12px;padding:6px;box-shadow:0 6px 24px #0002;z-index:5}
#support-team-root .team-options-list button{display:block;width:100%;text-align:start;background:none;border:0;border-radius:6px;font-size:12px;padding:10px}
#support-team-root .team-options-list button:hover{background:var(--sp-tint)}
#support-team-root #team-voice-review{padding:4px 0 12px}
#support-team-root #team-voice-review audio{width:100%;height:36px}
#support-team-root #team-voice-review>div{display:flex;justify-content:space-between;gap:8px}
#support-team-root #team-voice-review button{border:1px solid var(--sp-line);border-radius:8px;background:var(--sp-surface);color:var(--sp-ink);padding:8px 12px;font-size:12px}
#support-team-root #team-mic.is-recording{background:#ffedf0;color:#bc263a}
@media(max-width:1200px){#support-team-root .support-desk-layout{grid-template-columns:260px minmax(0,1fr);height:680px;position:relative}#support-team-root .support-order-context{display:none;position:absolute;inset-inline-end:0;top:76px;bottom:0;max-height:none;width:280px;z-index:4;box-shadow:0 5px 20px #0002}#support-team-root .show-details .support-order-context{display:block}}
@media(max-width:700px){#support-team-root{padding:0 10px!important;margin:12px auto!important}#support-team-root .support-desk-head h1{font-size:21px}#support-team-root .support-desk-layout{display:block;height:auto;min-height:0}#support-team-root .support-ticket-list{max-height:65dvh}#support-team-root .support-desk-chat{height:calc(100dvh - 150px);min-height:480px}#support-team-root .support-chat-head{padding:12px;min-height:72px}#support-team-root .support-chat-head .support-desk-tools{max-width:42%;flex-wrap:nowrap}#support-team-root .support-messages{padding:20px 14px}#support-team-root .support-compose{padding:10px 12px}#support-team-root .support-metrics>div{padding:12px}#support-team-root .support-compose-actions .support-check{font-size:10px;margin-inline:2px}#support-team-root .support-improve{font-size:10px;padding:6px}#support-team-root .support-order-context{width:min(280px,100%)}#support-team-root .has-ticket .support-desk-chat{display:flex}}
@media(prefers-reduced-motion:no-preference){#support-team-root .support-message{animation:desk-message-in .18s ease-out}@keyframes desk-message-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}#support-team-root button{transition:background-color .15s,color .25s}}
html[data-theme=dark] #support-team-root{--sp-ink:#e4eaf5;--sp-muted:#b2c0d6;--sp-line:#34425b;--sp-tint:#243757}
html[data-theme=dark] #support-team-root :is(.support-order-context,.support-ticket-filters input,.support-ticket-filters select,.support-ticket-row.selected){background:#243148;color:var(--sp-ink)}
html[data-theme=dark] #support-team-root .support-message:not(.mine):not(.internal) .message-body{background:#243148;color:#e4eaf5}
html[data-theme=dark] #support-team-root .support-compose.is-internal{background:#342b1b}

/* Three independent dots keep their phase while staff presence is refreshed. */
.support-typing-indicator::before{content:none}
.support-typing-indicator{display:flex;align-items:center;gap:8px}
.support-typing-dots{display:inline-flex;align-items:center;justify-content:center;gap:5px;direction:ltr;min-width:58px;flex-shrink:0;height:36px;padding:14px 15px;background:#f4f4f4;border-radius:20px}
.support-typing-dots i{display:block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:#69758c}
html[data-motion=off] .support-typing-dots i{animation:none}
