/* Shared support access: one launcher for every authenticated portal page. */
.floating-support {--fs-surface:#fff;--fs-ink:#17191e;--fs-muted:#777e8b;--fs-line:#e8eaf0;--fs-soft:#f5f6f8;position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:95;display:none;font:var(--portal-type-body,14px)/1.5 Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--fs-ink);}
body.is-portal-authenticated .floating-support {display:block;}
.floating-support * {box-sizing:border-box;}
.floating-support [hidden] {display:none!important;}
.floating-support button,.floating-support textarea {font:inherit;}
.floating-support button {cursor:pointer;}
.floating-support button:disabled {cursor:default;opacity:.5;}
.floating-support svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;}
.floating-support button:focus-visible,.floating-support textarea:focus-visible {outline:3px solid #78a5ff;outline-offset:3px;}
.floating-support__launcher {position:relative;display:grid;place-items:center;width:58px;height:58px;padding:0;border:1px solid #ffffff24;border-radius:50%;color:#fff;background:linear-gradient(150deg,#34363b,#101114);box-shadow:0 7px 22px #10182830,inset 0 1px 0 #ffffff30;transition:transform 180ms,box-shadow 180ms;}
.floating-support__launcher:hover {transform:translateY(-3px);box-shadow:0 11px 26px #10182838,inset 0 1px 0 #ffffff40;}
.floating-support__launcher:active {transform:translateY(1px);box-shadow:0 2px 8px #10182830;}
.floating-support__hint {position:absolute;right:calc(100% + 12px);width:max-content;padding:7px 11px;border:1px solid var(--fs-line);border-radius:10px;background:var(--fs-surface);color:var(--fs-ink);box-shadow:0 5px 18px #10182810;opacity:0;pointer-events:none;transition:opacity 140ms;}
.floating-support__launcher:is(:hover,:focus-visible) .floating-support__hint {opacity:1;}
.floating-support__panel {position:absolute;right:0;bottom:74px;width:min(380px,calc(100vw - 32px));height:min(530px,calc(100dvh - 116px));min-height:200px;display:flex;flex-direction:column;overflow:hidden;background:var(--fs-surface);border:1px solid var(--fs-line);border-radius:24px;box-shadow:0 24px 70px #10182826,0 3px 10px #1018280a;animation:floating-support-in 160ms ease-out;}
.floating-support__header {display:flex;align-items:center;gap:12px;flex:none;padding:20px;border-bottom:1px solid var(--fs-line);}
.floating-support__brand {display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:var(--fs-soft);}
.floating-support__header div {min-width:0;flex:1;}
.floating-support__header h2 {margin:0;font:600 16px/1.4 Manrope,sans-serif;letter-spacing:-.3px;}
.floating-support__header p {margin:3px 0 0;color:var(--fs-muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.floating-support__close {display:grid;place-items:center;flex:none;width:30px;height:30px;padding:4px;border:0;border-radius:50%;background:transparent;color:var(--fs-muted);}
.floating-support__close:hover {color:var(--fs-ink);background:var(--fs-soft);}
.floating-support__close svg {width:18px;height:18px;}
.floating-support__body {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px;scrollbar-width:thin;}
.floating-support__greeting {margin:0 0 8px;font-size:22px;line-height:1.3;font-weight:600;letter-spacing:-.7px;}
.floating-support__intro {margin:0 0 22px;color:var(--fs-muted);}
.floating-support__contact {display:flex;align-items:center;gap:12px;width:100%;padding:12px 0;text-align:left;border:0;border-bottom:1px solid var(--fs-line);background:transparent;color:var(--fs-ink);}
.floating-support__contact:hover .floating-support__avatar {background:#eaf1ff;color:#1765ed;}
.floating-support__avatar {display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:var(--fs-soft);font-size:12px;font-weight:600;}
.floating-support__contact-copy {flex:1;min-width:0;}
.floating-support__contact strong,.floating-support__contact small {display:block;}
.floating-support__contact strong {font-weight:600;}
.floating-support__contact small {margin-top:2px;font-size:12px;color:var(--fs-muted);}
.floating-support__chevron {font-size:22px;font-weight:400;color:var(--fs-muted);}
.floating-support__state {padding:18px 0;margin:0;color:var(--fs-muted);}
.floating-support__message {max-width:90%;width:fit-content;margin:0 0 14px;padding:10px 13px;border-radius:16px 16px 16px 4px;background:var(--fs-soft);}
.floating-support__message.is-own {margin-left:auto;border-radius:16px 16px 4px 16px;background:#edf3ff;}
.floating-support__message p {margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere;}
.floating-support__message small,.floating-support__message time {display:block;font-size:11px;color:var(--fs-muted);}
.floating-support__message time {text-align:right;margin-top:4px;}
.floating-support__composer {display:flex;align-items:flex-end;gap:10px;padding:12px 16px;border-top:1px solid var(--fs-line);}
.floating-support__composer textarea {display:block;min-width:0;flex:1;resize:none;max-height:120px;padding:9px 11px;border:1px solid var(--fs-line);border-radius:14px;background:var(--fs-soft);color:var(--fs-ink);line-height:1.5;}
.floating-support__send {display:grid;place-items:center;flex:none;width:36px;height:36px;margin-bottom:5px;padding:0;border:0;border-radius:50%;background:var(--fs-ink);color:var(--fs-surface);}
.floating-support__send svg {width:20px;height:20px;}
.floating-support__error {margin:0;padding:4px 18px 8px;color:#c22e42;font-size:12px;}
.floating-support__footer {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 18px 14px;color:var(--fs-muted);font-size:11px;}
.floating-support__footer button {padding:0;border:0;background:transparent;color:inherit;font-size:11px;}
html[data-theme="dark"] .floating-support {--fs-surface:#17181c;--fs-ink:#f4f5f7;--fs-muted:#a1a5af;--fs-line:#303137;--fs-soft:#24252b;}
html[data-theme="dark"] .floating-support__launcher {border-color:#ffffff36;box-shadow:0 8px 26px #0008,inset 0 1px 0 #ffffff24;}
html[data-theme="dark"] .floating-support__message.is-own {background:#20314f;}
html[data-theme="dark"] .floating-support__contact:hover .floating-support__avatar {background:#223453;color:#a6c5ff;}
html[data-theme="dark"] .floating-support__error {color:#ff8b9a;}
@keyframes floating-support-in {from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px) {.floating-support {right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));}.floating-support__launcher {width:54px;height:54px;}.floating-support__panel {bottom:68px;height:min(500px,calc(100dvh - 100px));}}
@media(prefers-reduced-motion:reduce) {.floating-support__panel {animation:none;}.floating-support__launcher {transition:none;}}
@media print {.floating-support {display:none!important;}}

/* Keep the input label accessible without relying on another page stylesheet. */
.floating-support .sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
