/* session-state.css — حالات الانتظار للأجزاء الشخصية في الصفحات العامة المخزّنة.
   html.gpx-authed يضعه session-state.js قبل رسم النافبار إن وُجد كوكي التلميح gpx_auth
   (سبق دخول هذا المتصفح)، فتتحول أزرار الزائر والأجزاء المحايدة إلى هياكل بنفس الحجم
   حتى يصل /api/session/ — لا وميض لأزرار «تسجيل الدخول» عند المسجّل ولا قفز في التخطيط.
   الزائر الحقيقي (بلا تلميح) يرى حالته مباشرة بلا أي انتظار. */

html.gpx-authed [data-auth-slot="anon"] > [data-auth-guest],
html.gpx-authed [data-user-block="anon"] > * {
  color: transparent !important;
  background: #E9E9EF !important;   /* Mist */
  border-color: transparent !important;
  pointer-events: none;
  user-select: none;
}
html.gpx-authed [data-auth-slot="anon"] > [data-auth-guest] *,
html.gpx-authed [data-user-block="anon"] > * * {
  visibility: hidden;
}
/* على خلفية Midnight (بطل صفحة الدورة) */
html.gpx-authed [data-user-block="anon"][data-skeleton="dark"] > * {
  background: rgba(233, 233, 239, .12) !important;
}

/* نبض هادئ للهيكل — يُلغى مع تقليل الحركة */
@media (prefers-reduced-motion: no-preference) {
  html.gpx-authed [data-auth-slot="anon"] > [data-auth-guest],
  html.gpx-authed [data-user-block="anon"] > * {
    animation: gpx-skel 1.4s ease-in-out infinite;
  }
}
@keyframes gpx-skel { 50% { opacity: .55; } }

/* ظهور ناعم للأجزاء بعد الإحلال */
[data-hydrated] > * { animation: gpx-hydrate .18s ease-out both; }
@media (prefers-reduced-motion: reduce) { [data-hydrated] > * { animation: none; } }
@keyframes gpx-hydrate { from { opacity: 0; } to { opacity: 1; } }
