.support-launch {
  position:fixed;z-index:6;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));
  display:grid;place-items:center;width:50px;height:50px;border-radius:50%;border:1px solid #505050;
  background:linear-gradient(145deg,#323232,#181818);box-shadow:0 6px 23px #0007;
  transition:transform .2s, border-color .2s;
}
.support-launch i {width:23px;height:23px}
.support-launch:hover {transform:translateY(-2px);border-color:#aaa}
body:has(dialog[open]) .support-launch {visibility:hidden}
.profile-help {display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px;margin-top:17px}
.profile-help>button,.profile-help>a {display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px}
.profile-help .sign-out {margin-top:0}
footer.wrap {padding-right:max(var(--gutter),84px)}
#support-chat {
  position:fixed;inset:auto max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) auto;
  width:min(408px,calc(100vw - 32px));height:min(570px,calc(100dvh - 44px));max-width:none;max-height:none;
  margin:0;padding:0;border:1px solid #484848;border-radius:23px;overflow:hidden;
  background:#141414;color:#f1f1f1;box-shadow:0 22px 90px #0009,0 1px 0 #ffffff0c inset;
}
#support-chat[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;animation:chat-open .25s cubic-bezier(.2,.8,.2,1)}
#support-chat::backdrop {background:#06060666;backdrop-filter:none}
html:has(#support-chat[open]) {overflow:hidden}
.chat-head {display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:12px;padding:16px 13px 16px 20px;
  background:linear-gradient(145deg,#262626,#1c1c1c);border-bottom:1px solid #363636}
.chat-mark {width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:#171717;border:1px solid #484848}
.chat-mark img {width:22px;height:22px}
.chat-head h2 {font:650 18px/1.3 var(--sans);letter-spacing:-.045em}
#chat-identity {font-size:13px;color:#aaa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-close,.chat-foot form button {display:grid;place-items:center;width:42px;height:42px;border-radius:50%}
.chat-close:hover {background:#ffffff0d}
.chat-scroll {min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:#494949 transparent}
#chat-empty {margin:auto;padding:14px 12px 22px;text-align:center}
.chat-emblem {display:grid;place-items:center;width:59px;height:59px;color:#e5e5e5;border:1px solid #444;border-radius:20px;background:linear-gradient(145deg,#2e2e2e,#1b1b1b);margin:0 auto 15px;transform:rotate(-4deg)}
.chat-emblem i {width:27px;height:27px}
#chat-empty h3 {font:600 27px/1.15 var(--sans);letter-spacing:-.055em;margin-bottom:7px}
#chat-prompt {max-width:28ch;color:#bcbcbc;font-size:15px;line-height:1.48}
#chat-log {margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.chat-date {align-self:center;color:#a9a9a9;font-size:12px}
.chat-message {display:grid;gap:4px;max-width:91%;min-width:0}
.chat-user {align-self:flex-end;justify-items:end}
.chat-bot {align-self:flex-start;justify-items:start}
.chat-message p {padding:10px 14px;border-radius:16px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.5}
.chat-user p {background:#e5e5e3;color:#171717;border-bottom-right-radius:5px}
.chat-bot p {background:#262626;border:1px solid #393939;border-bottom-left-radius:5px}
.chat-meta {padding:0 3px;color:#b2b2b2;font-size:12px}
.chat-new {animation:chat-message-in .22s ease-out}
.chat-foot {padding:13px 16px 12px;border-top:1px solid #323232;background:#191919}
.chat-foot .button {width:100%;min-height:44px}
.chat-foot form {display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:end;gap:6px;border:1px solid #4b4b4b;background:#111;border-radius:18px;padding:6px}
.chat-foot form:focus-within {border-color:#aaa}
.chat-foot textarea {resize:none;border:0;outline:0;background:transparent;color:#f0f0f0;font:400 16px/1.45 var(--sans);padding:6px 4px 6px 8px;width:100%}
.chat-foot textarea::placeholder {color:#aaa}
.chat-foot form button {background:#efefec;color:#151515}
.chat-foot form button:disabled {background:#353535;color:#858585;cursor:default}
.chat-foot form button i {width:21px;height:21px}
.chat-note {text-align:center;font-size:12px;line-height:1.45;color:#aaa;margin:8px 0 0}
#chat-error {margin:0 0 8px;font-size:14px;color:#f0f0f0}
@keyframes chat-open {from{opacity:0;transform:translateY(12px) scale(.985)}}
@keyframes chat-message-in {from{opacity:0;transform:translateY(5px)}}
@media(max-width:520px) {
  #support-chat {inset:auto 0 0;width:100%;height:min(640px,88dvh);border-radius:22px 22px 0 0;border-bottom:0}
  .chat-head {padding:13px 10px 13px 16px}
  .chat-foot {padding-bottom:max(12px,env(safe-area-inset-bottom))}
  .support-launch {width:46px;height:46px;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}
  footer.wrap {padding-right:69px}
}
@media(prefers-reduced-motion:reduce) {
  #support-chat[open],.chat-new {animation:none}
  .support-launch {transition:none}
}

#account-chat-panel {position:fixed;inset:auto max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) auto;margin:0;padding:0;width:min(420px,calc(100vw - 28px));height:min(590px,calc(100dvh - 32px));max-width:none;max-height:none;overflow:hidden;background:#151515;color:#efefef;border:1px solid #484848;border-radius:23px;box-shadow:0 22px 90px #0009}
#account-chat-panel::backdrop {background:#06060666}
#account-chat-panel iframe {width:100%;height:100%;border:0;display:block}
html:has(#account-chat-panel[open]) {overflow:hidden}
.chat-loading {display:grid;align-content:center;justify-items:center;gap:12px;height:100%}
.chat-loading p,.chat-loading a {font-size:14px;color:#c9c9c9}
.chat-loading a {text-decoration:underline}
.chat-loading button {position:absolute;right:14px;top:14px;width:40px;height:40px;font-size:23px}
@media(max-width:520px){#account-chat-panel{inset:auto 0 0;width:100%;height:min(660px,90dvh);border-radius:22px 22px 0 0}}
