/* Shared touch and standalone-window layout. */
html { min-height: 100%; }
body { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.app-nav { padding-top: max(18px, env(safe-area-inset-top)); }
.app-install-help { max-width: 1280px; margin: 12px auto; padding: 16px 24px; background: #eef1ff; border-radius: 12px; }
.app-install-help summary { cursor: pointer; font-weight: 600; }
.app-install-help p { margin: 12px 0 0; }
.connection-notice { margin: 0; padding: 12px 20px; background: #fff4d6; text-align: center; }
@media (max-width: 767px) {
  .btn, .nav-link { min-height: 44px; }
  .form-control { font-size: 16px; }
  .container { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .select-item { width: 24px !important; height: 24px !important; }
  .upload-controls { display: flex; gap: 8px; margin-top: 12px; }
  .app-install-help { margin: 12px 18px; }
  .nav-actions { width: 100%; }
}
@media (display-mode: standalone) {
  .app-nav { border-top: 3px solid #5262dc; }
  .app-install-help, #install-app { display: none; }
}
