/* Compact visitor chat; desktop layout is unchanged. */
@media (max-width: 540px) {
  .support-toggle {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 9px 13px;
  }
  .support-panel {
    right: 12px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    width: min(320px, calc(100% - 24px));
    height: min(340px, 55vh);
    height: min(340px, 55dvh);
    max-height: calc(100dvh - 80px - env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    border-radius: 12px;
  }
  .support-panel[hidden] { display: none; }
  .support-panel > header { flex: 0 0 auto; padding: 10px 48px 10px 12px; }
  .support-panel > header strong { font-size: 13px; line-height: 18px; }
  .support-panel > header small { font-size: 10px; line-height: 14px; }
  .support-panel > header button { right: 3px; top: 4px; width: 44px; height: 44px; }
  .support-messages {
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px;
    overscroll-behavior: contain;
  }
  .support-message { font-size: 12px; padding: 8px 10px; margin-bottom: 8px; overflow-wrap: anywhere; }
  .support-quick { flex: 0 0 auto; padding: 3px 8px; gap: 5px; }
  .support-quick button { font-size: 10px; min-height: 32px; padding: 5px 8px; }
  .support-panel form { flex: 0 0 auto; padding: 7px; gap: 6px; }
  .support-panel input { font-size: 16px; min-height: 44px; padding: 8px; width: 100%; }
  .support-panel form button { min-width: 44px; min-height: 44px; font-size: 12px; padding: 0 10px; }
}
