@media (max-width: 700px) {
  .sidebar .brand { font-size: 17px; }
  #nav-toggle { width: 44px; height: 44px; min-height: 44px; }
  .sidebar-footer { position: static; margin-top: 8px; padding-top: 8px; min-height: 52px; gap: 16px; }
  .sidebar-footer > div { min-width: 0; line-height: 1.4; }
  #connection { font-size: 12px; }
  .sidebar-footer .app-version { font-size: 11px; margin-top: 3px; }
  #theme { width: 44px; height: 44px; min-height: 44px; }
  .topbar { font-size: 12px; }
  .topbar .toolbar { gap: 8px; }
  #username { max-width: 112px; font-size: 12px; }
  :root[data-client="android"] .sidebar { padding-top: 8px; padding-bottom: 8px; }
  :root[data-client="android"] .sidebar-brand { position: absolute; right: 16px; top: 8px; }
  :root[data-client="android"] .sidebar-brand .brand { display: none; }
  :root[data-client="android"] .sidebar-footer { margin-top: 0; padding: 0 56px 0 0; border: 0; min-height: 44px; }
}
html { -webkit-text-size-adjust: 100%; }
body { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
dialog { max-height: calc(var(--visual-height, 100dvh) - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
:root[data-client="ios"] dialog { top: calc(var(--visual-top, 0px) + 12px + env(safe-area-inset-top, 0px)); bottom: auto; margin-top: 0; }
:root[data-client="ios"] input, :root[data-client="ios"] textarea, :root[data-client="ios"] select { font-size: 16px; }
:root[data-client="ios"] #job-form input, :root[data-client="ios"] #job-form textarea, :root[data-client="ios"] #job-form select, :root[data-client="ios"] #remote-content { font-size: 16px; }
:root[data-client="ios"] .icon-button { min-width: 44px; width: 44px; min-height: 44px; }
.toast { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
@media (pointer: coarse) {
  button, .icon-button, .download-actions .button, summary { min-height: 44px; }
  .download-platforms button { padding: 10px 8px; }
  summary { padding: 12px 0; }
}
@media (max-width: 700px) {
  .download-platforms { justify-content: space-between; }
  .download-platforms button { font-size: 12px; min-width: 0; gap: 4px; }
  .download-intro > div { min-width: 0; }
  .download-intro h2 { font-size: 17px; }
}
