/* Базовые служебные стили (основное оформление — modern.css) */
html { scroll-behavior: smooth; }
.ha-top { padding: 0 !important; min-width: 0 !important; margin: 0 !important; position: fixed; right: 18px; bottom: 18px; z-index: 999;
  width: 48px !important; height: 48px !important; border-radius: 50% !important; border: 0; color: #fff; font-size: 22px; line-height: 48px; text-align: center; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .3s, transform .3s; }
.ha-top.ha-show { opacity: 1; transform: none; pointer-events: auto; }
img.ha-placeholder { object-fit: contain !important; padding: 18px; aspect-ratio: 4 / 3; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
