/* Chat-only mobile refinement; desktop, themes and behavior stay unchanged. */
@media (max-width: 880px) {
  .chat-page .topbar,
  .chat-page .topbar.has-header-menu {
    min-height: 56px;
    height: auto;
    padding: 5px 12px;
    gap: 8px;
  }
  .chat-page .topbar .brand { font-size: .9rem; gap: 7px; }
  .chat-page .topbar .brand-mark { width: 29px; height: 29px; }
  .chat-page .header-tools { gap: 6px; }
  .chat-page .theme-toggle { min-height: 44px; min-width: 78px; padding: 5px 8px; font-size: .72rem; border-radius: 11px; }
  .chat-page .header-menu-toggle { width: 44px; min-height: 44px; padding: 6px; font-size: 1.15rem; border-radius: 11px; }
  .chat-page .header-menu { top: calc(100% + 8px); }
  .chat-page .workspace { padding-block: 6px; gap: 6px; }
  .chat-page .messages { gap: 14px; padding-block: 8px 18px; }
  .chat-page .message,
  .chat-page .assistant-message.welcome-message {
    padding: 14px 15px;
    font-size: .88rem;
    line-height: 1.95;
  }
  .chat-page .welcome-message > p { font-size: .9rem; line-height: 1.95; }
  .chat-page .conversation-heading { margin-bottom: 10px; padding-block: 10px; }
  .chat-page .composer { margin-top: 5px; padding: 7px; border-radius: 17px; }
  /* 16px prevents automatic iOS input zoom; native text zoom stays available. */
  .chat-page .composer textarea { font-size: 16px; padding: 6px 9px; }
  .chat-page .composer .send-button { min-height: 44px; padding: 7px 12px; font-size: .85rem; }
}
@media (max-width: 620px) {
  .chat-page .mobile-chat-controls { gap: 7px; align-items: center; }
  .chat-page .mobile-chat-controls .settings-toggle,
  .chat-page .mobile-chat-controls .chart-open {
    min-height: 44px;
    height: auto;
    padding: 6px 9px;
    font-size: .82rem;
    line-height: 1.45;
    border-radius: 11px;
  }
  .chat-page .mobile-chat-controls .chart-launcher { margin-bottom: 0; padding: 0; }
  .chat-page .mobile-chat-controls .chart-open strong { font-size: inherit; }
}
