.mobile-topbar, .mobile-heading, .mobile-mode-controls, .mobile-attach-icon { display: none; }

@media (max-width: 760px) {
  :root { --rail: 0px; --page: #fff; }
  .rail, .sidebar, .sidebar-collapsed .sidebar, .sidebar-backdrop,
  .mobile-menu, .model-picker, .quick-actions, .prompt-help, .prompt-ideas,
  .desktop-heading, .desktop-attach-icon { display: none !important; }
  .app-shell, .sidebar-collapsed .app-shell {
    display: block;
    margin: 0;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .workspace { min-height: 100svh; padding: 64px 0; }
  .mobile-topbar {
    position: absolute;
    inset: max(10px, env(safe-area-inset-top)) 12px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .mobile-topbar .icon-button { width: 40px; height: 40px; }
  .mobile-topbar svg { width: 20px; height: 20px; stroke-width: 1.5; }
  .welcome { width: calc(100% - clamp(32px, 7.5vw, 48px)); max-width: 640px; padding: 0; transform: translateY(-2svh); }
  .welcome-heading { margin-bottom: 26px; gap: 10px; font-size: clamp(16px, 3.76vw, 24px); line-height: 1.3; letter-spacing: -.02em; }
  .welcome-heading img { width: 32px; }
  .welcome-heading .mobile-heading { display: inline; text-align: left; }
  .composer { padding: 16px 12px 12px; border-radius: 24px; box-shadow: 0 12px 32px #18202e06, 0 2px 5px #18202e03; }
  .composer textarea { height: 48px; min-height: 48px; max-height: 140px; font-size: 16px; line-height: 1.45; }
  .composer textarea::placeholder { color: #a7abb4; }
  .composer-toolbar { margin-top: 12px; gap: 6px; }
  .composer-tools { display: contents; }
  .mobile-mode-controls { display: flex; flex: 1; min-width: 0; align-items: center; gap: 6px; }
  .mobile-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    color: var(--text);
    white-space: nowrap;
    font-size: clamp(11px, 2.1vw, 13px);
    font-weight: 500;
    line-height: 1.2;
  }
  .mobile-mode svg { width: 13px; height: 13px; stroke-width: 1.5; }
  .mobile-mode[aria-pressed="true"] { color: #4d6bfe; border-color: #cbd5ff; background: #edf2ff; }
  .attach-button { order: 2; width: 26px; height: 34px; background: transparent; }
  .attach-button .mobile-attach-icon { display: block; width: 18px; height: 18px; stroke-width: 1.7; }
  .send-button { order: 3; width: 34px; height: 34px; border-radius: 50%; background: #4d6bfe; }
  .send-button svg { width: 22px; height: 22px; }
  .send-button[data-empty="true"] { background: #adbaff; }
  .site-footer { margin: 24px 12px 12px; }
  .attachments { overflow-wrap: anywhere; }
  .attachment { min-width: 0; max-width: 100%; }
  .attachment > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 359px) {
  .welcome { width: calc(100% - 24px); }
  .welcome-heading { gap: 8px; }
  .welcome-heading img { width: 28px; }
  .composer { padding-inline: 10px; }
  .mobile-mode-controls { gap: 4px; }
  .mobile-mode { font-size: 10px; padding-inline: 7px; }
  .mobile-mode svg { display: none; }
}
