#support-chat[hidden] { display:none; }
#support-chat {
  position:fixed; z-index:30; inset:auto clamp(12px,3vw,40px) max(14px,env(safe-area-inset-bottom)) auto;
  width:min(390px,calc(100vw - 24px)); max-height:min(560px,calc(100dvh - 100px));
  display:flex; flex-direction:column; background:var(--surface); color:var(--ink);
  border:1px solid var(--line); border-radius:16px; box-shadow:0 12px 44px #0003;
}
#support-chat header { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line); }
#support-chat h2, #support-chat header p { margin:0; }
#support-chat h2 { font-size:1rem; }
#support-chat header p, .support-status { font-size:.82rem; color:var(--muted); }
.support-close { min-width:40px; min-height:40px; font-size:1.4rem; }
.support-log { overflow:auto; min-height:100px; padding:12px 16px; }
.support-log p { margin:0 0 9px; padding:8px 10px; border-radius:9px; white-space:pre-wrap; overflow-wrap:anywhere; }
.support-log .support-user { margin-inline-start:22px; background:var(--blue-soft); }
.support-log a { text-decoration:underline; }
.support-status { margin:0; padding-inline:16px; }
#support-chat form { display:flex; align-items:end; gap:8px; padding:12px 16px; }
#support-chat textarea { flex:1; min-width:0; resize:vertical; max-height:140px; padding:8px; font:inherit; color:inherit; background:transparent; border:1px solid var(--line); border-radius:8px; }
