/* Asset V Roads: non-blocking loading motion shared by workspace and offline field. */
:root { --av-motion-accent: #0797a4; --av-motion-deep: #103747; }
#av-motion-layer { position: fixed; inset: 0; z-index: 10020; pointer-events: none; font-family: Inter, "Segoe UI", Arial, sans-serif; }
html.av-auth-pending #av-motion-layer { display: none; }
.av-motion-rail {
  position: absolute; left: 0; top: 0; width: 100%; height: 3px; overflow: hidden;
  opacity: 0; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease;
  background: rgba(0, 142, 156, .12);
}
.av-motion-rail::before {
  content: ""; display: block; width: 46%; height: 100%;
  background: linear-gradient(90deg, transparent, #0ab7c5 42%, #007e90 75%, transparent);
  animation: av-motion-sweep 1.45s cubic-bezier(.44, .06, .56, .94) infinite;
}
.av-motion-hud {
  position: absolute; right: max(12px, env(safe-area-inset-right)); top: calc(12px + env(safe-area-inset-top));
  display: inline-flex; align-items: center; gap: 9px;
  max-width: min(calc(100vw - 24px), 280px); min-height: 34px;
  box-sizing: border-box; padding: 7px 12px; border-radius: 999px;
  color: var(--av-motion-deep); border: 1px solid rgba(10, 136, 151, .2);
  background: rgba(255, 255, 255, .96); box-shadow: 0 7px 30px rgba(16, 55, 71, .13);
  font-size: 12px; font-weight: 650; line-height: 1.35;
  opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease;
}
.av-motion-hud-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.av-motion-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.av-motion-dots i { width: 5px; height: 5px; border-radius: 50%; background: #0797a4; animation: av-motion-bounce .9s ease-in-out infinite; }
.av-motion-dots i:nth-child(2) { animation-delay: .13s; }
.av-motion-dots i:nth-child(3) { animation-delay: .26s; }
#av-motion-layer.is-active .av-motion-rail,
#av-motion-layer.is-active .av-motion-hud { opacity: 1; transform: translateY(0); }
@keyframes av-motion-sweep { from { transform: translateX(-110%); } to { transform: translateX(275%); } }
@keyframes av-motion-bounce { 0%, 70%, 100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-4px); opacity: 1; } }
@keyframes av-motion-spin { to { transform: rotate(360deg); } }
@keyframes av-motion-shimmer { from { background-position: 110% 0; } to { background-position: -110% 0; } }
.av-motion-text::before {
  content: ""; display: inline-block; box-sizing: border-box;
  width: 11px; height: 11px; margin-right: 7px; vertical-align: -1px;
  border: 2px solid rgba(6, 154, 170, .22); border-top-color: #0797a4;
  border-radius: 50%; animation: av-motion-spin .8s linear infinite;
}
.skeleton, .sk-title, .sk-sub, .skeleton-grid > .skeleton {
  background-image: linear-gradient(110deg, rgba(6, 160, 177, .04) 10%, rgba(255, 255, 255, .65) 40%, rgba(6, 160, 177, .04) 70%) !important;
  background-size: 220% 100% !important; animation: av-motion-shimmer 1.55s ease-in-out infinite !important;
}
.map-loading > span:first-child {
  display: inline-block; width: 19px; height: 19px; box-sizing: border-box;
  border: 3px solid rgba(6, 154, 170, .22); border-top-color: #0797a4;
  border-radius: 50%; animation: av-motion-spin .8s linear infinite;
}
button[aria-busy="true"]::after, button.av-loading-button::after {
  content: ""; display: inline-block; width: 12px; height: 12px;
  box-sizing: border-box; vertical-align: -1px; margin-left: 8px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: av-motion-spin .8s linear infinite;
}
@media (max-width: 650px) {
  .av-motion-hud { top: calc(7px + env(safe-area-inset-top)); right: max(7px, env(safe-area-inset-right)); font-size: 11px; min-height: 30px; padding: 6px 9px; max-width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .av-motion-rail::before, .av-motion-dots i, .av-motion-text::before,
  .skeleton, .sk-title, .sk-sub, .skeleton-grid > .skeleton,
  .map-loading > span:first-child, button[aria-busy="true"]::after,
  button.av-loading-button::after { animation: none !important; }
  .av-motion-rail, .av-motion-hud { transition: none; }
  .av-motion-rail::before { width: 100%; transform: none; background: #0797a4; }
  .av-motion-dots i { opacity: 1; }
}