/* The assistant uses the approved white header and conversational layout. */
.support-mascot{display:block;width:48px;height:48px;object-fit:contain;flex:none}
.support-launcher{--support-inverse-surface:#171a1f;--support-inverse-ink:#edf0f4;position:fixed;right:24px;bottom:24px;z-index:80;display:grid;place-items:center;width:64px;height:64px;padding:5px;border:0;border-radius:50%;background:var(--support-inverse-surface);color:var(--support-inverse-ink);box-shadow:0 6px 20px rgb(0 0 0 / .18);cursor:pointer;transition:transform .18s ease-out}
.support-launcher .support-mascot{width:54px;height:54px}.support-launcher:hover{transform:translateY(-2px)}
.support-launcher:focus-visible,.support-assistant :focus-visible,.support-workspace :focus-visible{outline:2px solid var(--action);outline-offset:3px}
.support-assistant{position:fixed;z-index:81;right:24px;bottom:100px;width:min(390px,calc(100vw - 32px));height:590px;max-height:calc(100dvh - 124px);display:flex;flex-direction:column;background:var(--surface,#fff);color:var(--ink,#173c4b);border-radius:16px;box-shadow:0 12px 44px rgb(0 0 0 / .22);overflow:hidden;animation:support-arrive .22s ease-out}
.support-assistant>header{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line,#dbe4e4);flex:none;background:var(--surface,#fff)}
.support-assistant>header>div{flex:1;min-width:0}.support-assistant h2{font-size:16px;line-height:1.4;margin:0;font-weight:600}.support-assistant header span{display:block;font-size:12px;color:var(--muted,#536972);margin-top:3px}.support-assistant>header button{flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;color:var(--muted);box-shadow:none;display:grid;place-items:center}.support-assistant>header button:hover{background:var(--subtle)}
.support-assistant-body{position:relative;flex:1;min-height:0;padding:24px 16px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line,#dbe4e4) transparent;background:color-mix(in srgb,var(--action,#087f75) 3%,var(--surface,#fff));overflow-wrap:anywhere}
.support-bot-turn{display:flex;gap:8px;align-items:flex-end;margin:0 0 14px}.support-bot-turn .support-mascot{width:32px;height:32px}.support-bot-message{font-size:14px;line-height:1.65;padding:12px 14px;margin:0;max-width:calc(100% - 40px);border-radius:14px 14px 14px 3px;background:var(--subtle,#f0f4f4);color:var(--ink,#173c4b);box-sizing:border-box;white-space:normal}.support-bot-message small{display:block;color:var(--muted,#536972);font-size:12px;margin-top:4px}
.support-user-message{max-width:82%;width:fit-content;margin:18px 0 20px auto;padding:11px 14px;border-radius:14px 14px 3px 14px;font-size:14px;line-height:1.6;background:var(--action,#087f75);color:var(--on-action,#fff);white-space:pre-wrap;overflow-wrap:anywhere}
.support-current-turn{outline:none}.support-current-turn:focus{outline:none}.support-current-turn{animation:support-arrive .2s ease-out}
.support-answer-options{margin:18px 0 0 40px}.support-choices{display:grid;gap:10px}.support-choice{box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:12px;text-align:left;border:1px solid var(--line,#cbd9d9);border-radius:10px;background:var(--surface,#fff);color:var(--ink,#173c4b);cursor:pointer;font:inherit;font-size:13px;font-weight:500;line-height:1.5;text-decoration:none;transition:background .15s ease-out,border-color .15s ease-out}.support-choice:hover{border-color:var(--action);background:var(--subtle,#f0f4f4)}.support-choice span{min-width:0}.support-choice small{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-top:4px}.support-choice .icon{width:20px;height:20px;flex:none;color:var(--action,#087f75)}
.support-back{display:inline-flex;gap:5px;align-items:center;margin:16px 0 0 40px;min-height:44px;font-size:12px}.support-back .icon{width:15px;height:15px}
.support-assistant>footer{flex:none;border-top:1px solid var(--line,#dbe4e4);padding:8px 18px;text-align:center;background:var(--surface,#fff)}.support-assistant>footer button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:13px}.support-assistant>footer .icon{width:20px;height:20px}
.support-assistant fieldset{border:0;padding:0;margin:0}.support-document-option{display:flex;align-items:center;gap:12px;padding:12px 0;font-size:14px;cursor:pointer}.support-document-option input{width:18px;height:18px;accent-color:var(--action)}
.support-assistant textarea,.support-reply textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:88px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);padding:12px;font:inherit;font-size:16px;line-height:1.5;caret-color:var(--action)}.support-assistant form>label:not(.sr-only){display:block;font-size:14px;line-height:1.5;margin-bottom:12px}.support-error{font-size:13px;color:var(--danger,#a33144);line-height:1.5;overflow-wrap:anywhere}.support-error:empty{display:none}.support-assistant form>.button{margin-top:14px}.support-assistant .button{min-height:44px}
@keyframes support-arrive{from{transform:translateY(5px)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.support-assistant,.support-current-turn{animation:none}.support-launcher,.support-choice{transition:none}.support-launcher:hover{transform:none}}
.support-workspace{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);min-height:480px;height:min(680px,calc(100dvh - 220px));border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}.support-inbox{min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--line)}.support-filters{display:flex;gap:4px;padding:14px 10px;border-bottom:1px solid var(--line);flex-wrap:wrap}.support-filters button{background:transparent;border:0;color:var(--muted);font:inherit;font-size:12px;padding:9px 8px;cursor:pointer;border-radius:6px}.support-filters button[aria-pressed=true]{color:var(--action);background:var(--surface-soft,var(--page));font-weight:600}#support-ticket-list{overflow:auto;scrollbar-color:var(--muted) transparent}.support-ticket{display:flex;flex-direction:column;gap:7px;text-align:left;width:100%;padding:17px 18px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer;font:inherit}.support-ticket:hover,.support-ticket.selected{background:var(--surface-soft,var(--page))}.support-ticket.selected{box-shadow:inset 2px 0 var(--action)}.support-ticket strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.support-ticket small{font-size:11px;color:var(--muted)}.support-ticket-status{font-size:12px;color:var(--muted)}.support-ticket-status::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--action);margin-right:7px}.support-ticket-status[data-status=awaiting_customer]::before{background:#bd640f}.support-conversation{display:flex;flex-direction:column;min-height:0;min-width:0}.support-conversation>header{display:flex;flex-wrap:wrap;gap:6px 16px;padding:18px 22px;border-bottom:1px solid var(--line);align-items:center}.support-conversation>header h2{width:100%;font-size:16px;margin:0;overflow-wrap:anywhere}.support-conversation>header span,.support-conversation>header small{font-size:12px;color:var(--muted)}.support-conversation>header small{margin-left:auto}.support-conversation-empty{margin:auto;text-align:center;padding:28px;max-width:340px;color:var(--muted)}.support-conversation-empty>.icon{width:40px;height:40px;color:var(--action);margin-bottom:18px}.support-conversation-empty h2{font-size:18px;color:var(--ink)}.support-conversation-empty p{font-size:14px;line-height:1.6}.support-list-empty{padding:24px;font-size:14px;line-height:1.6;color:var(--muted)}.support-chat-log{flex:1;overflow:auto;overscroll-behavior:contain;padding:22px;min-height:160px;scrollbar-color:var(--muted) transparent}.support-message{max-width:84%;width:fit-content;padding:12px 15px;margin-bottom:14px;border-radius:12px;background:var(--surface-soft,var(--page));font-size:14px}.support-message.mine{margin-left:auto;background:var(--action-soft,#e3f2ee)}.support-message strong{font-size:11px;color:var(--muted);font-weight:500}.support-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:6px 0}.support-message time{display:block;text-align:right;color:var(--muted);font-size:10px}.support-waiting{font-size:12px;line-height:1.6;color:var(--muted);margin:20px auto;max-width:310px;text-align:center}.support-reply{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:16px 20px;border-top:1px solid var(--line)}.support-reply textarea{min-height:64px;max-height:160px}.support-reply .button{min-height:44px}.support-reply .support-error{grid-column:1/-1}.support-connection{font-size:12px;color:var(--muted);padding:0 20px;margin:0}.support-connection:empty{display:none}.support-closed{font-size:13px;line-height:1.6;padding:16px 20px;border-top:1px solid var(--line);color:var(--muted);margin:0}.support-reply[hidden],.support-closed[hidden]{display:none}.support-faq{max-width:760px}.support-faq details{border-bottom:1px solid var(--line);padding:20px 0}.support-faq summary{cursor:pointer;font-size:16px;font-weight:500;line-height:1.5}.support-faq p{font-size:14px;line-height:1.7;color:var(--muted);margin-top:14px}.support-faq>.button{margin-top:28px}[data-theme=dark] .support-message.mine{background:#193e38}[data-theme=dark] .support-launcher{--support-inverse-surface:#fff;--support-inverse-ink:#17394b}
@media(max-width:700px){.support-launcher{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:60px;height:60px}.support-assistant{right:12px;bottom:calc(82px + env(safe-area-inset-bottom));width:calc(100vw - 24px);max-height:calc(100dvh - 110px - env(safe-area-inset-bottom))}.support-assistant>header{padding:14px}.support-assistant-body{padding:20px 14px}.support-workspace{grid-template-columns:minmax(0,1fr);height:auto;min-height:0;overflow:visible}.support-inbox{border-right:0;border-bottom:1px solid var(--line)}#support-ticket-list{max-height:220px}.support-conversation{height:560px;max-height:75dvh}.support-chat-log{padding:16px}.support-message{max-width:90%}.support-reply{padding:12px}.support-conversation>header{padding:16px}.support-workspace~*{margin-bottom:72px}}

.support-appointment-line{width:100%;font-size:12px;color:var(--muted);margin:2px 0 0;line-height:1.5}

/* Move the mascot only: the click target and invitation stay still. */
.support-launcher[aria-expanded=false] .support-mascot{animation:support-mascot-bounce 8s 2s infinite cubic-bezier(.22,.61,.36,1);transform-origin:center bottom}
.support-help-bubble{position:absolute;right:calc(100% + 12px);top:50%;transform:translateY(-50%);display:flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:12px;background:var(--support-inverse-surface);color:var(--support-inverse-ink);box-shadow:0 4px 16px rgb(0 0 0 / .12);font-size:13px;font-weight:500;line-height:1.5;white-space:nowrap}
.support-help-bubble::after{content:'';position:absolute;right:-4px;top:calc(50% - 4px);width:8px;height:8px;background:inherit;transform:rotate(45deg)}
.support-launcher[aria-expanded=true] .support-help-bubble{display:none}
@keyframes support-mascot-bounce{0%,3%,15%,100%{transform:translateY(0) scale(1)}6%{transform:translateY(-8px) scale(1.02,.98)}9%{transform:translateY(0) scale(1.04,.96)}12%{transform:translateY(-3px) scale(1)}}
@media(prefers-reduced-motion:reduce){.support-launcher[aria-expanded=false] .support-mascot{animation:none}}

/* Support uses the same conversational surfaces as the consultation chat. */
.support-workspace{--support-ground:#efeae2;--support-incoming:#fff;--support-outgoing:#d9fdd3;--support-text:#17394b;--support-time:#53676b;--support-composer:#f0f2f5;height:min(740px,calc(100dvh - 190px));min-height:420px}
[data-theme=dark] .support-workspace{--support-ground:#0b141a;--support-incoming:#202c33;--support-outgoing:#005c4b;--support-text:#edf0f4;--support-time:#b6c7cc;--support-composer:#202c33}
.support-conversation>header{gap:8px 12px;padding:14px 20px;flex:none}
.support-chat-avatar{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:var(--mint,#e3f4ee);color:var(--action)}
.support-chat-avatar .icon{width:22px;height:22px}
.support-chat-heading{flex:1;min-width:0}.support-conversation .support-chat-heading h2{font-size:15px;font-weight:600}.support-chat-heading p{margin:2px 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.support-chat-heading span{font-size:11px}
.support-conversation .support-appointment-line{padding-left:52px;font-size:11px}
.support-chat-log{background-color:var(--support-ground);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='140' fill='none' stroke='%23899386' stroke-opacity='.15' stroke-width='1'%3E%3Cpath d='M18 22h20v14H26l-6 5v-5h-2zM104 15l16 10-17 6 3-8zM77 82h16v12H83l-5 4v-4h-1zM27 103c6-8 12-8 18 0-6 8-12 8-18 0zM127 103c0 8 5 13 13 13l3-5-5-2-2 2c-3-1-5-3-6-6l2-2-3-4z'/%3E%3Ccircle cx='66' cy='32' r='4'/%3E%3Ccircle cx='23' cy='65' r='3'/%3E%3Cpath d='m122 63 4 4-4 4-4-4zM59 123h6m-3-3v6'/%3E%3C/svg%3E");background-repeat:repeat;padding:20px 26px;min-height:0}
.support-day{text-align:center;clear:both;margin:4px 0 18px}.support-day span{display:inline-block;padding:5px 11px;border-radius:7px;background:var(--surface);color:var(--muted);font-size:11px}
.support-message{position:relative;max-width:min(78%,580px);margin-bottom:12px;padding:10px 12px 6px;background:var(--support-incoming);color:var(--support-text);border-radius:0 10px 10px;box-shadow:0 1px 2px rgb(0 0 0 / .08)}
.support-message.mine,[data-theme=dark] .support-message.mine{background:var(--support-outgoing);border-radius:10px 0 10px 10px}
.support-message::before{content:'';position:absolute;top:0;left:-6px;width:7px;height:9px;background:inherit;clip-path:polygon(100% 0,100% 100%,0 0)}
.support-message.mine::before{left:auto;right:-6px;transform:scaleX(-1)}
.support-message strong{font-size:11px;font-weight:600;color:var(--support-time)}.support-message p{font-size:14px;margin:4px 0;line-height:1.55}.support-message time{font-size:10px;color:var(--support-time)}
.support-waiting{display:flex;flex-direction:column;align-items:center;gap:6px;width:fit-content;max-width:280px;margin:22px auto;padding:14px 18px;border-radius:10px;background:var(--surface);color:var(--muted);font-size:12px}
.support-waiting strong{font-size:13px;color:var(--ink);font-weight:500}.support-waiting-dots{display:flex;gap:5px;height:14px;align-items:center}.support-waiting-dots i{width:6px;height:6px;border-radius:50%;background:var(--action);animation:support-wait 1.4s ease-in-out infinite}.support-waiting-dots i:nth-child(2){animation-delay:.16s}.support-waiting-dots i:nth-child(3){animation-delay:.32s}
@keyframes support-wait{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
.support-reply{padding:10px 14px;gap:10px;background:var(--support-composer);border-top:0;align-items:center}
.support-reply textarea{box-sizing:border-box;min-height:44px;height:44px;max-height:120px;resize:none;border:0;border-radius:22px;padding:12px 16px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px;line-height:20px;overflow-y:auto}
.support-reply .button{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;display:grid;place-items:center}.support-reply .button .icon{width:22px;height:22px}.support-reply .support-error:empty{display:none}
.support-connection:not(:empty){padding:8px 16px}.support-closed{background:var(--support-composer)}
@media(max-width:700px){.support-workspace{height:auto;min-height:0}.support-chat-log{padding:16px}.support-message{max-width:88%}.support-conversation>header{padding:12px}.support-conversation{height:calc(100dvh - 190px);min-height:420px;max-height:none}.support-reply{padding:10px}.support-reply textarea{font-size:16px}.support-conversation>header>small{font-size:10px}.support-conversation .support-appointment-line{padding-left:0}}
@media(prefers-reduced-motion:reduce){.support-waiting-dots i{animation:none;opacity:1}}

.support-launcher[hidden]{display:none}
.support-message-row{display:flex;align-items:flex-start;gap:9px;margin-bottom:12px;min-width:0}.support-message-row.mine{flex-direction:row-reverse}.support-message-row .support-message{margin:0;min-width:0;max-width:min(calc(100% - 45px),580px);overflow-wrap:anywhere}
.support-message-avatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#dcece6;color:#196155;font-size:11px;font-weight:600;line-height:1}.support-message-row.mine .support-message-avatar{background:#dce8ef;color:#244e64}
.support-system-message{display:flex;align-items:center;justify-content:center;gap:8px;width:fit-content;max-width:100%;box-sizing:border-box;margin:16px auto;padding:7px 11px;border-radius:8px;background:var(--surface,#fff);color:var(--muted,#53676b);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.support-system-message .support-message-avatar{width:24px;height:24px;flex-basis:24px;font-size:10px}.support-system-message time{font-size:10px;white-space:nowrap}
[data-theme=dark] .support-message-avatar{background:#24473f;color:#d4eee6}[data-theme=dark] .support-message-row.mine .support-message-avatar{background:#29414e;color:#dfedf5}

.support-document-links:empty{display:none}
.support-document-link{display:flex;flex-direction:column;gap:6px;padding:10px 0;border-top:1px solid var(--line);margin-top:8px}
.support-document-link>strong{font-weight:500;font-size:13px;color:inherit}
.support-document-link>span{display:flex;gap:16px;flex-wrap:wrap}
.support-document-link a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--action);text-underline-offset:3px;font-size:13px}
.support-document-link a .icon{width:16px;height:16px}
.support-system-message>div{min-width:0}.support-system-message>div>p{margin:0}
.support-ticket-media{display:grid;gap:8px;margin:8px 0;max-width:100%;overflow-wrap:anywhere}.support-ticket-media audio{width:min(280px,100%);height:40px}.support-ticket-media a{text-decoration:underline}

.support-reuse-notice{margin:0;padding:10px 16px;color:var(--ink);font-size:13px;line-height:1.5;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.support-reuse-notice a{display:inline-flex;align-items:center;min-height:44px;color:var(--action);text-underline-offset:3px}

.support-message-edited{font-size:10px;color:var(--support-time);margin-right:6px}
.support-reply{grid-template-columns:auto minmax(0,1fr) auto}
.support-attach{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
.support-attach:hover{background:var(--surface)}.support-attach .icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.support-attachment-selection{grid-column:2/-1;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:13px;overflow-wrap:anywhere;min-width:0}
.support-attachment-selection[hidden]{display:none}
.support-ticket-media :is(img,video){display:block;width:min(280px,100%);max-height:300px;object-fit:contain;object-position:left;border-radius:6px}
