.support-chat,.support-account{--sc-text:#fbf8ff;--sc-muted:#c9bdd7;--sc-panel:#514162;--sc-line:rgba(229,214,246,.24);--sc-button:#7e6794;--sc-mint:#abdccf;color:var(--sc-text)}
.support-chat{width:min(760px,calc(100vw - 40px));height:min(780px,calc(100dvh - 48px));max-width:none;max-height:none;padding:0;border:1px solid var(--sc-line);border-radius:24px;background:linear-gradient(135deg,#5c4b6e,#34283f);box-shadow:0 24px 80px #160b294d;overflow:hidden;font:inherit}
.support-chat-admin{width:min(1140px,calc(100vw - 48px))}.support-chat::backdrop{background:#150d2670;backdrop-filter:blur(5px)}
.support-chat button,.support-account button{font:inherit;cursor:pointer;color:inherit}.support-chat button:disabled{opacity:.5;cursor:default}.support-chat button:focus-visible,.support-account button:focus-visible,.support-chat input:focus-visible,.support-chat select:focus-visible,.support-chat textarea:focus-visible{outline:2px solid var(--sc-mint);outline-offset:3px}
.support-chat-heading{height:90px;padding:18px 24px;border-bottom:1px solid var(--sc-line);display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;gap:16px}.support-chat h2,.support-chat h3,.support-chat p{margin:0}.support-chat h2{font-size:24px;line-height:1.25;color:var(--sc-text)}.support-kicker{color:var(--sc-mint);font-size:11px;text-transform:uppercase;letter-spacing:.13em;display:block;margin-bottom:6px}
.support-close{flex:0 0 40px;width:40px;height:40px;border:1px solid var(--sc-line);border-radius:13px;background:#ffffff0c;font-size:28px!important;line-height:1}
.support-chat-layout{display:flex;height:calc(100% - 90px);min-height:0}.support-conversation{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}.support-conversation-heading{padding:16px 22px;border-bottom:1px solid var(--sc-line);display:flex;align-items:center;gap:12px;flex-shrink:0}.support-conversation-heading>div{min-width:0;flex:1}.support-conversation-heading h3{font-size:17px;overflow-wrap:anywhere;color:var(--sc-text)}.support-conversation-heading p{color:var(--sc-muted);font-size:12px;line-height:1.45;margin-top:5px}.support-resolve{border:1px solid var(--sc-line);background:#ffffff08;padding:9px 12px;border-radius:11px;font-size:12px!important;max-width:130px}.support-resolve[hidden]{display:none}
.support-chat-log{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px;scrollbar-width:thin;display:flex;flex-direction:column;gap:14px}.support-message{align-self:flex-start;max-width:86%;padding:12px 16px;border:1px solid var(--sc-line);border-radius:16px 16px 16px 4px;background:#ffffff09;box-sizing:border-box}.support-message.is-mine{align-self:flex-end;border-radius:16px 16px 4px 16px;background:#a98aca2c}.support-message small{display:block;font-size:10px;color:var(--sc-muted);margin-bottom:6px}.support-message p{font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--sc-text)}
.support-compose{display:flex;gap:12px;padding:16px 22px 8px;flex-shrink:0;border-top:1px solid var(--sc-line)}.support-compose textarea{flex:1;min-width:0;resize:none;box-sizing:border-box;font:inherit;font-size:15px;line-height:1.45;color:var(--sc-text);background:#20162e55;border:1px solid var(--sc-line);border-radius:13px;padding:12px;max-height:120px}.support-compose textarea::placeholder{color:var(--sc-muted)}.support-compose button{background:var(--sc-button);border:1px solid #d3bbdf70;align-self:flex-end;min-height:46px;padding:10px 15px;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:8px}.support-compose svg,.support-menu-item svg,.support-account-menu svg{width:20px;height:20px;flex-shrink:0}.support-chat-status{font-size:12px!important;line-height:1.4;color:var(--sc-muted);min-height:24px;flex-shrink:0;padding:0 22px 10px}
.support-sidebar{width:300px;flex-shrink:0;border-right:1px solid var(--sc-line);padding:16px;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;min-height:0}.support-sidebar input,.support-sidebar select{box-sizing:border-box;width:100%;font:inherit;font-size:13px;color:var(--sc-text);background:#241a3255;border:1px solid var(--sc-line);border-radius:11px;padding:10px}.support-sidebar select option{background:var(--sc-panel);color:var(--sc-text)}[data-chat-list]{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;flex:1}.support-thread{width:100%;text-align:left;padding:13px 11px;border:1px solid transparent;border-bottom-color:var(--sc-line);background:transparent;border-radius:12px;margin-bottom:4px;display:block;box-sizing:border-box}.support-thread.is-selected{background:#ffffff10;border-color:var(--sc-mint)}.support-thread>span{display:flex;gap:8px;align-items:baseline;justify-content:space-between}.support-thread strong{font-size:14px;overflow-wrap:anywhere}.support-thread time{font-size:9px;white-space:nowrap;color:var(--sc-muted)}.support-thread small{display:block;font-size:11px;margin:5px 0;color:var(--sc-muted);overflow-wrap:anywhere}.support-thread p{font-size:12px;line-height:1.4;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--sc-muted)}.support-thread em{display:block;font-style:normal;font-size:10px;margin-top:7px;color:var(--sc-mint)}.support-empty{margin:auto!important;text-align:center;color:var(--sc-muted);padding:20px;line-height:1.6}.support-empty h3{font-size:22px;margin-bottom:10px}.support-earlier{display:block;margin:0 auto 12px;border:1px solid var(--sc-line);border-radius:10px;padding:8px 12px;background:transparent;align-self:center;font-size:12px!important}
.support-menu-item{display:flex!important;align-items:center;gap:10px}.support-unread-dot{width:8px;height:8px;background:#abdccf;border-radius:50%;display:inline-block;flex-shrink:0}.support-unread-dot[hidden]{display:none}.support-has-unread{position:relative}.support-has-unread::after{content:'';position:absolute;right:4px;top:2px;width:8px;height:8px;background:#abdccf;border-radius:50%}
.support-account{position:relative}.support-account-trigger{display:flex;align-items:center;gap:10px;background:transparent;border:0;padding:0}.support-avatar{width:42px;height:42px;border:1px solid var(--sc-line);border-radius:50%;background:#ffffff12;display:grid;place-items:center;overflow:hidden}.support-avatar img{width:100%;height:100%;object-fit:cover}.support-account-menu{position:absolute;z-index:100;right:0;top:calc(100% + 12px);width:240px;background:var(--sc-panel);border:1px solid var(--sc-line);padding:8px;border-radius:16px;box-shadow:0 15px 45px #120c2430}.support-account-menu[hidden]{display:none}.support-account-menu button,.support-account-menu a{display:flex;gap:10px;align-items:center;width:100%;border:0;background:transparent;border-radius:9px;padding:12px;text-align:left;color:var(--sc-text);font:inherit;font-size:14px;text-decoration:none;box-sizing:border-box}.support-account-menu button:hover,.support-account-menu a:hover{background:#ffffff12}.support-back{display:none}.support-sr{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
html[data-theme=light] .support-chat,body.light .support-chat,html[data-theme=light] .support-account,body.light .support-account{--sc-text:#2f213f;--sc-muted:#6a5c79;--sc-panel:#f6f0fa;--sc-line:#b9a8c655;--sc-mint:#347b70;--sc-button:#7e6794}.support-chat button[type=submit]{color:#fff}
html[data-theme=light] .support-chat,body.light .support-chat{background:linear-gradient(140deg,#fcf9ff,#eee7f3)}html[data-theme=light] .support-chat textarea,body.light .support-chat textarea,html[data-theme=light] .support-sidebar input,body.light .support-sidebar input,html[data-theme=light] .support-sidebar select,body.light .support-sidebar select{background:#fff}html[data-theme=light] .support-message,body.light .support-message{background:#ffffffa8}html[data-theme=light] .support-message.is-mine,body.light .support-message.is-mine{background:#e8ddf2}
@media(max-width:700px){.support-chat,.support-chat-admin{width:calc(100vw - 16px);height:calc(100dvh - 24px);border-radius:20px}.support-chat-heading{height:78px;padding:14px 16px}.support-chat h2{font-size:20px}.support-chat-layout{height:calc(100% - 78px)}.support-conversation-heading{padding:12px 16px}.support-chat-log{padding:16px}.support-compose{padding:12px 12px 8px;gap:8px}.support-compose button{padding:10px 12px}.support-compose button span{display:none}.support-chat-status{padding:0 16px 8px}.support-message{max-width:92%}.support-sidebar{width:100%;border:0}.support-chat-admin .support-conversation{display:none}.support-chat-admin.has-selection .support-sidebar{display:none}.support-chat-admin.has-selection .support-conversation{display:flex}.support-chat-admin .support-back{display:block;background:transparent;border:0;padding:4px 8px;font-size:28px}.support-account-trigger>[data-support-admin-name]{display:none}}
@media(prefers-reduced-motion:reduce){.support-chat *{scroll-behavior:auto!important}}

/* Administration chats are a regular dashboard block, never a modal. */
.support-admin-panel{scroll-margin-top:24px;min-width:0}.support-admin-panel .section-heading{margin-bottom:18px}.support-chat-embedded{display:block;position:static;width:100%;height:620px;max-height:none;margin:0;border:1px solid var(--sc-line);border-radius:18px;box-shadow:none;background:rgba(255,255,255,.025)}.support-chat-embedded>.support-chat-heading{display:none}.support-chat-embedded>.support-chat-layout{height:100%}.support-chat-embedded .support-sidebar{width:32%;min-width:230px;max-width:340px}.support-chat-embedded button,.support-chat-embedded input,.support-chat-embedded select,.support-chat-embedded textarea{font-family:inherit}.support-chat-embedded .support-empty{font-size:14px}.support-admin-panel [data-support-admin-host]{min-width:0}
html[data-theme=light] .support-chat-embedded,body.light .support-chat-embedded{background:rgba(255,255,255,.55)}
@media(max-width:700px){.support-chat-embedded{width:100%;height:640px;max-height:85dvh;border-radius:14px}.support-chat-embedded .support-sidebar{width:100%;max-width:none;min-width:0}.support-chat-embedded .support-conversation-heading{flex-wrap:wrap}.support-chat-embedded .support-resolve{max-width:none}.support-admin-panel .section-heading h2{font-size:21px}}

/* Equal account menu items; player support opens as a compact right-hand panel. */
.account-popover .support-menu-item,.account-popover .account-popover-logout{display:flex!important;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:42px;margin:0;padding:11px 13px;border:0;border-radius:9px;background:transparent;color:inherit;font:inherit;font-size:13px;font-weight:400;line-height:1.4;text-align:left;box-sizing:border-box;cursor:pointer}.account-popover .support-menu-item:hover,.account-popover .account-popover-logout:hover{background:#ffffff12}
@media(min-width:701px){dialog.support-chat:not(.support-chat-admin){position:fixed;inset:24px 24px 24px auto;margin:0;width:min(460px,calc(100vw - 48px));height:calc(100dvh - 48px)}}
.support-compose{align-items:center}.support-compose button{align-self:center}.support-compose textarea{min-height:52px}.support-compose .support-attach{flex:0 0 40px;min-height:44px;padding:8px;background:transparent;align-self:center}.support-compose [hidden]{display:none!important}.support-pending-files{display:flex;flex-wrap:wrap;gap:7px;padding:0 16px;flex-shrink:0}.support-pending-files:empty{display:none}.support-pending-file{display:flex;align-items:center;gap:8px;max-width:100%;padding:7px 9px;border:1px solid var(--sc-line);border-radius:10px;margin-bottom:8px}.support-pending-file span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.support-pending-file button{border:0;background:transparent;color:var(--sc-text);font-size:20px;padding:0 4px;line-height:1}
.support-file{display:block;margin-top:10px;border:1px solid var(--sc-line);border-radius:10px;overflow:hidden;text-decoration:none;color:var(--sc-text);min-width:0}.support-file img{display:block;width:100%;max-height:220px;object-fit:contain;background:#ffffff09}.support-file span{display:block;padding:9px 11px;font-size:13px;overflow-wrap:anywhere}.support-file small{margin:5px 0 0;font-size:11px;color:var(--sc-muted)}.support-message>p:empty{display:none}.support-chat:not(.support-chat-admin) .support-compose{gap:8px;padding-inline:14px}.support-chat:not(.support-chat-admin) .support-compose button[type=submit] span{display:none}

/* Account menu focus is a subtle inset background, without button outlines. */
#account-popover button,.support-account-menu button{border:0!important;border-radius:9px!important;outline:none!important;outline-offset:0!important;box-shadow:none!important}
#account-popover button:hover,#account-popover button:focus,#account-popover button:focus-visible,#account-popover button:active,.support-account-menu button:hover,.support-account-menu button:focus,.support-account-menu button:focus-visible,.support-account-menu button:active{background:rgba(230,216,246,.09)!important;outline:none!important;box-shadow:none!important}
body.light #account-popover button:is(:hover,:focus,:focus-visible,:active),html[data-theme=light] #account-popover button:is(:hover,:focus,:focus-visible,:active),body.light .support-account-menu button:is(:hover,:focus,:focus-visible,:active),html[data-theme=light] .support-account-menu button:is(:hover,:focus,:focus-visible,:active){background:rgba(100,75,125,.08)!important}
