@media (pointer: coarse) and (max-width: 1200px) {
  .app { min-height: 0; }
  .sidebar {
    position: fixed;
    z-index: 5;
    inset: 0 auto 0 0;
    width: 278px;
    transform: translateX(-100%);
    transition: transform .22s;
    padding-top: calc(30px + env(safe-area-inset-top));
  }
  .sidebar.open { transform: translateX(0); }
  .shade { position: fixed; inset: 0; background: #0009; z-index: 4; }
  .mobile-only { display: grid; }
  .desktop-only { display: none; }
  .chat-header {
    height: calc(60px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0;
    gap: 10px;
  }
  .avatar.small { width: 36px; height: 36px; font-size: 18px; }
  .header-person h1 { font-size: 18px; }
  .header-person h1 span { font-size: 8px; }
  .timeline { padding: 0 12px; background-position: center top; }
  .welcome { padding: 27px 0; }
  .welcome-kicker { font-size: 8px; letter-spacing: 3px; }
  .emblem { width: 125px; height: 125px; margin: 25px 0; }
  .emblem img { width: 69px; height: 69px; border-radius: 20px; }
  .welcome h2 { font-size: 26px; letter-spacing: 3px; }
  .welcome p { font-size: 11px; letter-spacing: .5px; }
  .suggestions { max-width: 300px; margin-top: 27px; }
  .suggestions button { font-size: 10px; padding: 10px 13px; }
  .welcome-sign { margin-top: 28px; font-size: 22px; }
  .composer-area { padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); }
  .composer { padding: 10px 10px 10px 14px; border-radius: 13px; }
  .composer textarea { min-height: 46px; font-size: 18px; line-height: 1.5; }
  .composer-footnote { justify-content: center; padding-top: 9px; font-size: 8px; }
  .typing { height: 17px; padding-left: 45px; }
  .message { gap: 9px; margin-bottom: 17px; }
  .message .avatar { width: 44px; height: 44px; flex-basis: 44px; font-size: 13px; }
  .message.assistant { padding-right: 8px; }
  .message.user { padding-left: 25px; }
  .bubble-wrap { max-width: calc(100% - 98px); }
  .bubble { min-height: 46px; font-size: 18px; padding: 10px 14px; }
  .user .bubble,
  .user .bubble .message-text {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    forced-color-adjust: none;
    color-scheme: only light;
    text-shadow: none;
    filter: none;
    mix-blend-mode: normal;
  }
  .quoted-message { font-size: 14px; }
  .message-translation { font-size: 13px; }
  .quote-preview span,
  .message-popover span { font-size: 12px; }
  .messages { padding: 23px 0 0; }
  .notice { font-size: 11px; padding: 9px 16px; }
  dialog { padding: 30px 24px; }
  body { overflow: hidden; }
  .app {
    position: fixed;
    top: var(--app-top, 0px);
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--app-height, 100dvh);
  }
}
