/* Native scrolling stays available to touch, mouse, and keyboard users. */
html {
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--portal-topbar-height, 0px) + 20px);
}
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
:where(.modal-card, .dd-list, .table-wrap, .portal-tabbar, .tabbar, .bottomnav, .account-settings-nav, .ai-chat-sidebar, .ai-chat-history, .ai-chat-transcript) {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.portal-tabbar.is-dragging { scroll-behavior: auto !important; }
.notification-device-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.notification-device-actions .btn { min-height: 44px; white-space: normal; }
.notification-device-status { overflow-wrap: anywhere; padding: 12px 14px; border: 1px solid var(--line, #ccdadd); border-radius: 12px; background: var(--surface-alt, #f2f7f8); line-height: 1.8; }
.notification-device-status[data-state=error] { border-color: var(--danger, #b42b2b); color: var(--danger, #b42b2b); }
.notification-device-status[data-state=success] { border-color: var(--ok, #397817); color: var(--ok, #397817); }
.notification-install-help { margin-block: 16px; padding: 16px; border: 1px solid var(--line, #ccdadd); border-radius: 14px; background: var(--surface-alt, #f2f7f8); }
.notification-install-help h3 { margin: 0 0 10px; font-size: 1rem; }
.notification-install-help ol { margin: 0; padding-inline-start: 24px; line-height: 1.9; }
.notification-install-help li + li { margin-top: 8px; }
@media (max-width: 480px) {
  .notification-device-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html, * { scroll-behavior: auto !important; }
}
