/* Native support follows the App's existing width, palette and safe areas. */
.fab-support-icon { display: block; width: 30px; height: 30px; }
#support-screen { min-height: 0; height: 100vh; height: 100dvh; overflow: hidden; }
#support-app { min-height: 0; height: 100%; background: var(--bg-deep, #110811); }
#support-app .ns-shell { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 0, rgba(233,30,140,.07), transparent 45%), var(--bg-deep, #110811); }
#support-app .ns-header { flex: 0 0 auto; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px; background: rgba(30,14,30,.96); border-bottom: 1px solid rgba(255,255,255,.06); }
#support-app .ns-back { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; color: #fff; background: rgba(255,255,255,.025); }
#support-app .ns-heading { min-width: 0; padding-left: 4px; }
#support-app .ns-heading h1 { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.45; color: #fff; }
#support-app .ns-brand { margin: 2px 0 0; font-size: 11px; line-height: 1.5; color: #ab88a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#support-app .ns-status { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; padding: 7px 9px; color: #a78d9f; background: rgba(255,255,255,.035); font-size: 11px; line-height: 1; white-space: nowrap; }
#support-app .ns-status i { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
#support-app .ns-status.is-online { color: #65dba5; background: rgba(73,201,140,.08); border-color: rgba(73,201,140,.16); }
#support-app .ns-status.is-connecting { color: #f3b759; background: rgba(245,166,35,.07); border-color: rgba(245,166,35,.13); }
#support-app .ns-status.is-failed { color: #f2a0b5; border-color: rgba(242,160,181,.16); }
#support-app .ns-banner { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 11px 18px; background: rgba(233,30,140,.055); border-bottom: 1px solid rgba(233,30,140,.09); color: #cda8c0; font-size: 12px; line-height: 1.5; }
#support-app .ns-banner button { margin-left: auto; padding: 5px 0 5px 8px; color: #ff78ba; font-size: 12px; white-space: nowrap; }
#support-app .ns-messages { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px clamp(14px,4vw,26px) 24px; scrollbar-width: thin; scrollbar-color: #44283c transparent; -webkit-overflow-scrolling: touch; }
#support-app .ns-time { display: block; margin: 17px 0 19px; text-align: center; color: #806a7c; font-size: 10px; font-weight: 400; }
#support-app .ns-message { display: flex; align-items: flex-start; justify-content: flex-start; gap: 9px; margin: 0 0 18px; }
#support-app .ns-avatar { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; margin-top: 2px; border: 1px solid rgba(233,30,140,.18); border-radius: 11px; background: rgba(233,30,140,.1); color: #f17bae; overflow: hidden; }
#support-app .ns-avatar svg { width: 19px; height: 19px; }
#support-app .ns-avatar img { width: 100%; height: 100%; object-fit: cover; }
#support-app .ns-bubble { width: fit-content; min-width: 38px; max-width: min(78%, 420px); padding: 12px 14px; background: #281325; border: 1px solid rgba(180,124,159,.12); border-radius: 3px 16px 16px; color: #f4e9f1; }
#support-app .ns-bubble > p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; }
#support-app .ns-message.is-mine { flex-direction: row-reverse; }
#support-app .ns-message.is-mine .ns-avatar { color: #bfa5bc; background: #271725; border-color: rgba(255,255,255,.07); }
#support-app .ns-message.is-mine .ns-bubble { background: linear-gradient(135deg, #bc286e, #992461); border-color: rgba(255,141,194,.15); border-radius: 16px 3px 16px 16px; color: #fff; }
#support-app .ns-message.is-system { justify-content: center; margin: 20px 0; }
#support-app .ns-message.is-system .ns-avatar { display: none; }
#support-app .ns-message.is-system .ns-bubble { border: 0; background: transparent; color: #a58a9d; padding: 0 12px; max-width: 90%; }
#support-app .ns-message.is-system .ns-bubble > p { font-size: 12px; text-align: center; }
#support-app .ns-keywords { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 12px; }
#support-app .ns-keywords button { padding: 7px 10px; color: #ff93c7; font-size: 12px; line-height: 1.4; text-align: left; border: 1px solid rgba(255,147,199,.2); border-radius: 9px; background: rgba(233,30,140,.06); }
#support-app .ns-keywords button:disabled { opacity: .5; cursor: default; }
#support-app .ns-bubble .ns-connect-footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.075); color: #bda0b4; font-size: 12px; }
#support-app .ns-image { display: block; max-width: 240px; margin: 7px 0 0; padding: 0; overflow: hidden; border-radius: 10px; cursor: zoom-in; }
#support-app .ns-image:first-child { margin-top: 0; }
#support-app .ns-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 250px; object-fit: contain; }
#support-app .ns-composer { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.065); background: #1c0d1b; }
#support-app .ns-attach { position: relative; display: grid; place-items: center; flex: 0 0 42px; height: 44px; color: #c5a3b9; border: 1px solid rgba(204,145,179,.13); border-radius: 13px; background: rgba(255,255,255,.02); overflow: hidden; cursor: pointer; }
#support-app .ns-attach input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#support-app .ns-attach:has(input:disabled) { opacity: .45; }
#support-app .ns-composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 116px; margin: 0; padding: 12px; border: 1px solid rgba(204,145,179,.12); border-radius: 13px; outline: none; resize: none; font: inherit; font-size: 14px; line-height: 20px; color: #fff; background: #2a1426; scrollbar-width: thin; }
#support-app .ns-composer textarea::placeholder { color: #8e7286; }
#support-app .ns-composer textarea:focus { border-color: rgba(233,30,140,.5); }
#support-app .ns-send { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; min-width: 70px; min-height: 44px; padding: 0 12px; border-radius: 13px; background: var(--grad, linear-gradient(90deg,#e91e8c,#f5a623)); color: #fff; font-size: 13px; font-weight: 600; }
#support-app .ns-send svg { width: 16px; height: 16px; }
#support-app .ns-send:disabled { background: #3b2034; color: #917187; cursor: default; }
#support-app .ns-empty { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px 75px; text-align: center; }
#support-app .ns-empty-icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 22px; border: 1px solid rgba(233,30,140,.15); border-radius: 26px; color: #e97bae; background: radial-gradient(circle at 30% 20%,rgba(233,30,140,.13),rgba(233,30,140,.035)); box-shadow: 0 12px 50px rgba(233,30,140,.05); }
#support-app .ns-empty-icon svg { width: 36px; height: 36px; }
#support-app .ns-empty h2 { margin: 0 0 10px; color: #ecdae5; font-size: 17px; font-weight: 500; }
#support-app .ns-empty p { max-width: 260px; margin: 0; color: #94788e; font-size: 13px; line-height: 1.8; }
#support-app .ns-loading { position: absolute; top: 86px; right: 0; bottom: 86px; left: 0; display: grid; place-items: center; pointer-events: none; }
#support-app .ns-loading > span { width: 31px; height: 31px; border: 2px solid rgba(255,255,255,.09); border-top-color: #ec69a4; border-radius: 50%; animation: ns-spin .8s linear infinite; }
#support-app .ns-lightbox { position: absolute; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(9,4,9,.96); }
#support-app .ns-lightbox > img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 96px); object-fit: contain; }
#support-app .ns-lightbox-close { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: 18px; display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: rgba(255,255,255,.07); border-radius: 50%; }
#support-app [hidden] { display: none !important; }
@keyframes ns-spin { to { transform: rotate(360deg); } }
@media (max-width: 360px) {
  #support-app .ns-header { padding-left: 12px; padding-right: 12px; gap: 6px; }
  #support-app .ns-composer { padding-left: 12px; padding-right: 12px; gap: 7px; }
  #support-app .ns-send { min-width: 52px; padding-inline: 10px; }
  #support-app .ns-send svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { #support-app .ns-loading > span { animation-duration: 1.8s; } }

/* Incoming support messages use the same notification-dot language as the App. */
#fab-btn .support-unread-dot { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border: 2px solid var(--bg-deep, #110811); border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 1px rgba(255,59,92,.12); pointer-events: none; }
#fab-btn .support-unread-dot[hidden] { display: none !important; }

#fab-btn { margin-top: 5px; }
