/* Page parts that are not utility classes: smooth scrolling, the demo spinner, the UIM
   app inside the phone frame. Utility classes (class="dF aiC ...") come from @porbit/style. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:target { scroll-margin-top: 80px; }
#app .uim-root { height: 100%; }
.app-boot { position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px;
  border: 3px solid rgba(100, 116, 139, .3); border-top-color: #2563eb; border-radius: 50%;
  animation: app-spin .8s linear infinite; }
@keyframes app-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .app-boot { animation: none; } }
.app-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 24px; text-align: center; font: 15px/1.4 system-ui, sans-serif; }
.app-error button { font: inherit; padding: 10px 20px; border-radius: 10px; border: 0; background: #2563eb; color: #fff; cursor: pointer; }
#app .uim-toast { position: absolute; bottom: 28px; }
