#siteSupport { position:fixed; right:28px; bottom:max(24px,env(safe-area-inset-bottom)); z-index:40; color:#ededf0; font:14px/1.55 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif; letter-spacing:0; text-align:left; }
#siteSupport *,#siteSupport *::before,#siteSupport *::after { box-sizing:border-box; letter-spacing:0; }
#siteSupport [hidden] { display:none !important; }
#siteSupport button,#siteSupport textarea { font:inherit; }
#siteSupport button { cursor:pointer; }
#siteSupport button:disabled { cursor:default; opacity:.5; }
#siteSupport button:focus-visible,#siteSupport textarea:focus-visible { outline:2px solid #0bdb64; outline-offset:3px; }
#supportLauncher { display:flex; align-items:center; gap:10px; min-width:112px; height:52px; padding:0 18px; border:1px solid #52ef92; border-radius:8px; color:#06150c; background:#0bdb64; box-shadow:0 5px 24px #0006; transform:scale(1); transform-origin:right bottom; transition:transform .2s cubic-bezier(.2,.8,.2,1),background .2s,box-shadow .2s; }
#supportLauncher svg { width:22px; height:22px; }
#supportLauncher span { font-weight:650; }
#supportLauncher:active { transform:scale(.98); }
@media(hover:hover) and (pointer:fine) { #supportLauncher:hover { transform:scale(1.09); background:#20e875; box-shadow:0 5px 28px #0008; } }
#supportBadge { display:grid; place-items:center; position:absolute; right:-7px; top:-8px; min-width:22px; height:22px; padding:0 5px; border:2px solid #111; border-radius:20px; background:#f6c96c; color:#17130c; font-size:11px; font-weight:700; }
#supportPanel { position:absolute; right:0; bottom:68px; width:380px; max-width:calc(100vw - 32px); height:540px; max-height:calc(100dvh - 120px); display:flex; flex-direction:column; overflow:hidden; background:#141416; border:1px solid #3b3b40; border-radius:8px; box-shadow:0 16px 60px #0009; }
#siteSupport .support-header { display:flex; align-items:center; gap:12px; flex-shrink:0; padding:18px; border-bottom:1px solid #303034; background:#1c1c1f; }
#siteSupport .support-header img { width:34px; height:34px; }
#siteSupport .support-heading { min-width:0; flex:1; }
#siteSupport .support-heading h2 { margin:0 0 3px; font-size:16px; font-weight:650; color:#f3f3f4; }
#supportAvailability { display:flex; align-items:center; gap:6px; margin:0; font-size:12px; color:#aaaab3; }
#supportAvailability::before { content:''; width:7px; height:7px; border-radius:50%; flex-shrink:0; background:#797983; }
#supportAvailability.is-online { color:#5cdd93; }
#supportAvailability.is-online::before { background:#21df76; }
#supportLauncher.is-online::after { content:''; position:absolute; left:-5px; top:-5px; width:13px; height:13px; border:3px solid #141416; border-radius:50%; background:#21df76; }
#siteSupport .support-icon { width:32px; height:32px; padding:6px; display:inline-grid; place-items:center; background:transparent; border:0; border-radius:5px; color:#b8b8c0; flex-shrink:0; }
#siteSupport .support-icon:hover { background:#ffffff12; color:#fff; }
#siteSupport .support-icon svg { width:19px; height:19px; }
#supportMessages { min-height:0; flex:1; overflow-y:auto; overscroll-behavior:contain; padding:18px 16px; scrollbar-width:thin; scrollbar-color:#4a4a51 transparent; }
#supportEmpty { margin:36px 8px; text-align:center; color:#9999a4; font-size:13px; }
#siteSupport .support-message { display:flex; flex-direction:column; align-items:flex-start; margin:0 0 16px; }
#siteSupport .support-message.is-user { align-items:flex-end; }
#siteSupport .support-message p { margin:0; max-width:90%; padding:10px 12px; border-radius:7px; background:#26262c; color:#e8e8ed; font-size:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
#siteSupport .support-message.is-user p { background:#193628; color:#d9f6e5; }
#siteSupport .support-message small { display:block; margin-top:5px; color:#888892; font-size:10px; }
#siteSupport .support-receipt { margin-left:7px; color:#a3a3ad; font-size:11px; }
#siteSupport .support-receipt.is-read { color:#5cdd93; }
#supportOlder { display:block; margin:0 auto 16px; border:0; color:#b2b2bc; background:transparent; padding:5px 10px; font-size:12px; }
#supportForm { border-top:1px solid #303034; padding:12px 14px; flex-shrink:0; }
#supportForm textarea { display:block; width:100%; height:68px; min-height:52px; max-height:110px; resize:vertical; border:0; border-radius:4px; background:#1c1c20; color:#f1f1f4; padding:10px; outline-offset:0; font-size:14px; line-height:1.5; }
#supportForm textarea::placeholder { color:#8d8d97; }
#siteSupport .support-compose-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px; }
#supportIdentity { margin:0; min-width:0; color:#92929e; font-size:11px; overflow-wrap:anywhere; }
#supportIdentity { flex:1; }
#siteSupport .support-image { display:block; width:240px; max-width:90%; aspect-ratio:4/3; margin-top:5px; background:#26262c; border:1px solid #3b3b40; border-radius:6px; overflow:hidden; }
#siteSupport .support-image img { display:block; width:100%; height:100%; object-fit:contain; }
#siteSupport .support-image.is-expired { width:auto; aspect-ratio:auto; padding:12px; color:#aaaab3; font-size:12px; }
#siteSupport .support-image-preview { display:flex; align-items:center; gap:8px; margin-bottom:10px; font-size:12px; color:#aaaab3; }
#siteSupport .support-image-preview img { width:44px; height:40px; object-fit:cover; border-radius:4px; }
#siteSupport .support-image-preview span { flex:1; }
#siteSupport .support-image-preview button { width:28px; height:28px; padding:0; font-size:20px; border:0; border-radius:4px; background:transparent; color:#aaaab3; }
#supportSend { display:grid; place-items:center; width:34px; height:34px; flex-shrink:0; padding:8px; border:0; border-radius:6px; background:#0bdb64; color:#081b10; }
#supportSend svg { width:18px; height:18px; }
#supportFeedback { margin:8px 0 0; color:#f3b5a6; font-size:12px; }
#supportNew { position:absolute; right:20px; bottom:168px; padding:6px 12px; border:1px solid #45454e; border-radius:6px; background:#26262c; color:#ededf0; font-size:12px; }
@media(max-width:480px) { #siteSupport { right:16px; bottom:max(18px,env(safe-area-inset-bottom)); } #supportLauncher { height:48px; min-width:100px; padding:0 14px; } #supportPanel { bottom:62px; width:calc(100vw - 32px); height:560px; max-height:calc(100dvh - 108px); } #supportForm textarea { font-size:16px; } }
@media(prefers-reduced-motion:reduce) { #supportLauncher { transition:none; } }

#siteSupport {color:var(--g-text);font-family:inherit}
#siteSupport:has(#supportLauncher[aria-expanded=true]) {z-index:50}
#supportLauncher,#supportSend {background:linear-gradient(120deg,var(--g-accent-strong),var(--g-accent-2));color:var(--g-on-accent);border:0;border-radius:12px}
#supportLauncher:hover {background:linear-gradient(120deg,var(--g-accent-strong),var(--g-accent-2));filter:brightness(1.08);transform:none}
#supportPanel {background:var(--g-panel);border-color:var(--g-line-strong);border-radius:16px;box-shadow:var(--g-shadow-pop)}
#siteSupport .support-header,#supportForm {border-color:var(--g-line)}
#siteSupport .support-header,#supportForm textarea,#siteSupport .support-message p,#supportNew {background:var(--g-panel-2);color:var(--g-text)}
#siteSupport .support-heading h2 {color:var(--g-text)}
#siteSupport .support-message.is-user p {background:var(--g-accent-soft);color:var(--g-text)}
#supportEmpty,#supportIdentity,#supportAvailability:not(.is-online),#siteSupport .support-icon,#supportOlder {color:var(--g-muted)}
#siteSupport .support-icon:hover {background:var(--g-accent-soft);color:var(--g-text)}
#siteSupport :is(button,textarea):focus-visible {outline-color:var(--g-accent)}
