/* ============================================
   InfluenceHub – Saved profiles empty state
   - Shown in the catalog when the "Įsimintieji"
     (saved) filter is active but the user has not
     saved any creators yet.
   - Explains how to save profiles (heart icon on
     cards / profile modal) and offers a CTA to
     browse the full catalog.
   - Matches the brand-600 / violet palette, dark
     mode, 44px touch targets, focus-visible rings,
     prefers-reduced-motion and forced-colors.
   ============================================ */

/* ---------- Wrapper ---------- */

.saved-empty {
  margin-top: 0.5rem;
  border-radius: 1.25rem;
  border: 1px dashed #ddd6fe;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(139, 92, 246, 0.08), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(236, 72, 153, 0.06), transparent 55%),
    #ffffff;
  padding: 2rem 1.25rem;
  text-align: center;
}

.saved-empty.hidden {
  display: none !important;
}

.dark .saved-empty {
  border-color: rgba(139, 92, 246, 0.4);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(236, 72, 153, 0.12), transparent 55%),
    #0f172a;
}

.saved-empty-inner {
  max-width: 34rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* ---------- Icon ---------- */

.saved-empty-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);
  color: #7c3aed;
  border: 1px solid #ede9fe;
  box-shadow: 0 8px 20px -12px rgba(124, 58, 237, 0.45);
}

.dark .saved-empty-icon {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.4) 0%, rgba(131, 24, 67, 0.25) 100%);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 20px -12px rgba(139, 92, 246, 0.55);
}

/* ---------- Text ---------- */

.saved-empty-title {
  margin: 0;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.dark .saved-empty-title {
  color: #f1f5f9;
}

.saved-empty-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
}

.dark .saved-empty-text {
  color: #cbd5e1;
}

/* ---------- Steps ---------- */

.saved-empty-steps {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
}

.saved-empty-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #334155;
}

.dark .saved-empty-steps li {
  background: rgba(30, 41, 59, 0.6);
  border-color: #334155;
  color: #e2e8f0;
}

.saved-empty-steps strong {
  color: #6d28d9;
  font-weight: 700;
}

.dark .saved-empty-steps strong {
  color: #c4b5fd;
}

.saved-empty-step-num {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  /* WCAG AA: white on #7c3aed = 5.9:1 (passes AA for normal text). */
  background: #7c3aed;
  color: #ffffff;
  line-height: 1;
  /* Static by design – no transitions or animations. */
  transition: none;
  animation: none;
}

.dark .saved-empty-step-num {
  /* WCAG AA: #1e1b4b on #a78bfa = 8.1:1 (passes AA for normal text). */
  background: #a78bfa;
  color: #1e1b4b;
}

/* ---------- Actions ---------- */

.saved-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  width: 100%;
  /* WCAG AA contrast: the actions row sits on the light violet
     empty-state surface (#ffffff with a subtle violet radial tint).
     Re-assert a readable text color so any inherited utility cannot
     reduce contrast below AA. */
  color: #334155;
}

.dark .saved-empty-actions {
  /* Dark mode: #e2e8f0 on the slate-900 surface ≈ 12.4:1 (passes AA). */
  color: #e2e8f0;
}

.saved-empty-cta,
.saved-empty-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  /* WCAG 2.5.5 – minimum 44x44px touch target for mobile users */
  min-height: 44px;
  min-width: 44px;
  padding: 0.625rem 1.125rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Ensure the focus ring is never clipped by the wrapper's rounded corners */
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.saved-empty-cta {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.4);
}

.saved-empty-cta:hover {
  background: #7c3aed;
}

.dark .saved-empty-cta {
  background: #7c3aed;
  box-shadow: 0 10px 24px -12px rgba(124, 58, 237, 0.6);
}

.dark .saved-empty-cta:hover {
  background: #8b5cf6;
}

.saved-empty-secondary {
  background: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.saved-empty-secondary:hover {
  border-color: #c4b5fd;
  color: #6d28d9;
}

.dark .saved-empty-secondary {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

.dark .saved-empty-secondary:hover {
  border-color: #7c3aed;
  color: #c4b5fd;
}

/* ---------- 44px minimum touch targets (WCAG 2.5.5) ----------
   The two action buttons in the saved empty state must be at least
   44x44px so they are easy to tap on mobile. The base class rules
   already set min-height/min-width, but the ID selectors below
   guarantee the target even if a utility class overrides the
   shared class rules. */

#saved-empty-browse,
#saved-empty-show-all {
  /* WCAG 2.5.5 – minimum 44x44px touch target for mobile users */
  min-height: 44px;
  min-width: 44px;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease;
}

/* ---------- Focus-visible ring (keyboard) ----------
   High-contrast, always-visible ring for keyboard users. The ring is
   drawn with both an outline and a box-shadow halo so it stays visible
   against the light CTA background and the dark-mode surface. */

#saved-empty-browse:focus-visible,
#saved-empty-show-all:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

/* The primary "Naršyti katalogą" button uses a dark slate fill in
   light mode – add a white inner ring so the violet outline stays
   visible against the dark fill. */
#saved-empty-browse:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px rgba(124, 58, 237, 0.35);
}

/* ---------- Dark mode focus-visible ring ---------- */

.dark #saved-empty-browse:focus-visible,
.dark #saved-empty-show-all:focus-visible {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
}

/* In dark mode the primary CTA uses the brand violet fill – add a
   dark inner ring so the light violet outline stays visible. */
.dark #saved-empty-browse:focus-visible {
  outline-color: #c4b5fd;
  box-shadow:
    0 0 0 2px #0f172a,
    0 0 0 6px rgba(196, 181, 253, 0.45);
}

/* ---------- Fallback for browsers without :focus-visible ---------- */

@supports not selector(:focus-visible) {
  #saved-empty-browse:focus,
  #saved-empty-show-all:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
  }

  #saved-empty-browse:focus {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35);
  }

  .dark #saved-empty-browse:focus,
  .dark #saved-empty-show-all:focus {
    outline-color: #c4b5fd;
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
  }

  .dark #saved-empty-browse:focus {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45);
  }
}

/* ---------- Forced colors (Windows High Contrast) ----------
   Ensure the two action buttons remain visible and focusable with
   system colors and no decorative shadows. */

@media (forced-colors: active) {
  #saved-empty-browse,
  #saved-empty-show-all {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  #saved-empty-browse:hover,
  #saved-empty-show-all:hover {
    background: Highlight;
    color: HighlightText;
  }

  #saved-empty-browse:focus-visible,
  #saved-empty-show-all:focus-visible,
  #saved-empty-browse:focus,
  #saved-empty-show-all:focus {
    outline: 2px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
    background: Highlight;
    color: HighlightText;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  .saved-empty {
    padding: 1.5rem 1rem;
  }

  .saved-empty-actions {
    flex-direction: column-reverse;
  }

  .saved-empty-cta,
  .saved-empty-secondary,
  #saved-empty-browse,
  #saved-empty-show-all {
    width: 100%;
    /* Keep the 44px touch target even when stacked */
    min-height: 44px;
    min-width: 44px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .saved-empty,
  .saved-empty * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
  }

  /* CTA buttons – no hover/focus/active transforms or transitions */
  .saved-empty-cta,
  .saved-empty-secondary,
  #saved-empty-browse,
  #saved-empty-show-all {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .saved-empty-cta:hover,
  .saved-empty-cta:focus,
  .saved-empty-cta:focus-visible,
  .saved-empty-cta:active,
  .saved-empty-secondary:hover,
  .saved-empty-secondary:focus,
  .saved-empty-secondary:focus-visible,
  .saved-empty-secondary:active,
  #saved-empty-browse:hover,
  #saved-empty-browse:focus,
  #saved-empty-browse:focus-visible,
  #saved-empty-browse:active,
  #saved-empty-show-all:hover,
  #saved-empty-show-all:focus,
  #saved-empty-show-all:focus-visible,
  #saved-empty-show-all:active {
    transform: none !important;
    transition: none !important;
  }

  /* Icons inside the CTA buttons must not animate either */
  .saved-empty-cta i,
  .saved-empty-secondary i,
  #saved-empty-browse i,
  #saved-empty-show-all i {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Keep the focus ring visible but static (no animated halo) */
  .saved-empty-cta:focus-visible,
  .saved-empty-secondary:focus-visible,
  #saved-empty-browse:focus-visible,
  #saved-empty-show-all:focus-visible {
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25) !important;
  }

  .saved-empty-cta:focus-visible,
  #saved-empty-browse:focus-visible {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 6px rgba(124, 58, 237, 0.35) !important;
  }

  .dark .saved-empty-cta:focus-visible,
  .dark .saved-empty-secondary:focus-visible,
  .dark #saved-empty-browse:focus-visible,
  .dark #saved-empty-show-all:focus-visible {
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35) !important;
  }

  .dark .saved-empty-cta:focus-visible,
  .dark #saved-empty-browse:focus-visible {
    box-shadow:
      0 0 0 2px #0f172a,
      0 0 0 6px rgba(196, 181, 253, 0.45) !important;
  }

  /* Title / text / steps – no motion, no transitions, no transforms.
     These elements are static by design, but a future theme or utility
     could add a fade-in; neutralise it here so users who prefer reduced
     motion always see the empty state instantly. */
  .saved-empty-title,
  .saved-empty-text,
  .saved-empty-steps,
  .saved-empty-steps li,
  .saved-empty-steps strong,
  .saved-empty-step-num {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
  }

  /* Neutralise any hover/focus/active transform on the step rows */
  .saved-empty-steps li:hover,
  .saved-empty-steps li:focus,
  .saved-empty-steps li:focus-visible,
  .saved-empty-steps li:active {
    transform: none !important;
    transition: none !important;
  }

  /* Step numbers must not pulse, scale or animate in any way */
  .saved-empty-step-num,
  .saved-empty-step-num::before,
  .saved-empty-step-num::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* Disable any pseudo-element animation on the title / text */
  .saved-empty-title::before,
  .saved-empty-title::after,
  .saved-empty-text::before,
  .saved-empty-text::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Ensure the 44px touch target is preserved under reduced motion */
  #saved-empty-browse,
  #saved-empty-show-all {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ---------- Forced colors (Windows High Contrast) ---------- */

@media (forced-colors: active) {
  .saved-empty {
    border: 1px dashed CanvasText;
    background: Canvas;
  }

  .saved-empty-step-num {
    background: Highlight;
    color: HighlightText;
    border: 1px solid HighlightText;
    box-shadow: none;
  }

  .saved-empty-icon {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .saved-empty-steps li {
    background: Canvas;
    border: 1px solid CanvasText;
    color: CanvasText;
  }

  .saved-empty-cta {
    background: Highlight;
    color: HighlightText;
    border: 1px solid HighlightText;
    box-shadow: none;
  }

  .saved-empty-secondary {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
  }

  .saved-empty-cta:focus-visible,
  .saved-empty-secondary:focus-visible,
  #saved-empty-browse:focus-visible,
  #saved-empty-show-all:focus-visible,
  .saved-empty-cta:focus,
  .saved-empty-secondary:focus,
  #saved-empty-browse:focus,
  #saved-empty-show-all:focus {
    outline: 2px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }

  /* Ensure the 44px touch target is preserved in high-contrast mode */
  #saved-empty-browse,
  #saved-empty-show-all {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ---------- Dark-mode contrast fix (WCAG AA) ----------
   Re-assert the empty-state text and CTA colors with !important so
   generic dark-mode text utilities (e.g. html.dark .text-slate-400)
   cannot reduce the contrast below AA.

   Light mode:
     - title:  #0f172a on #ffffff = 17.9:1
     - text:   #475569 on #ffffff = 7.5:1
     - steps:  #334155 on #f8fafc = 10.4:1
     - CTA:    #ffffff on #0f172a = 17.9:1
     - secondary: #334155 on #ffffff = 10.4:1

   Dark mode:
     - title:  #f1f5f9 on #0f172a = 15.9:1
     - text:   #cbd5e1 on #0f172a = 11.6:1
     - steps:  #e2e8f0 on rgba(30,41,59,0.6) over #0f172a ≈ 11.2:1
     - CTA:    #ffffff on #7c3aed = 5.9:1
     - secondary: #e2e8f0 on #1e293b = 11.2:1
*/

.saved-empty-title {
  color: #0f172a !important;
}

.saved-empty-text {
  color: #475569 !important;
}

.saved-empty-steps li {
  color: #334155 !important;
}

.saved-empty-steps strong {
  color: #6d28d9 !important;
}

.saved-empty-cta {
  color: #ffffff !important;
  background: #0f172a !important;
  border-color: transparent !important;
}

.saved-empty-cta:hover {
  color: #ffffff !important;
  background: #7c3aed !important;
}

.saved-empty-secondary {
  color: #334155 !important;
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

.saved-empty-secondary:hover {
  color: #6d28d9 !important;
  border-color: #c4b5fd !important;
}

.dark .saved-empty-title {
  color: #f1f5f9 !important;
}

.dark .saved-empty-text {
  color: #cbd5e1 !important;
}

.dark .saved-empty-steps li {
  color: #e2e8f0 !important;
}

.dark .saved-empty-steps strong {
  color: #c4b5fd !important;
}

.dark .saved-empty-cta {
  color: #ffffff !important;
  background: #7c3aed !important;
}

.dark .saved-empty-cta:hover {
  color: #ffffff !important;
  background: #8b5cf6 !important;
}

.dark .saved-empty-secondary {
  color: #e2e8f0 !important;
  background: #1e293b !important;
  border-color: #334155 !important;
}

.dark .saved-empty-secondary:hover {
  color: #c4b5fd !important;
  border-color: #7c3aed !important;
}

/* ---------- Icon / step-number contrast (WCAG AA) ----------
   Light mode:
     - step number: #ffffff on #7c3aed = 5.9:1
     - icon:        #7c3aed on #f5f3ff = 8.4:1
   Dark mode:
     - step number: #1e1b4b on #a78bfa = 8.1:1
     - icon:        #c4b5fd on rgba(76,29,149,0.4) over #0f172a ≈ 8.9:1
*/

.saved-empty-step-num {
  color: #ffffff !important;
  background: #7c3aed !important;
}

.saved-empty-icon {
  color: #7c3aed !important;
}

.dark .saved-empty-step-num {
  color: #1e1b4b !important;
  background: #a78bfa !important;
}

.dark .saved-empty-icon {
  color: #c4b5fd !important;
}

/* ---------- Actions row contrast (WCAG AA) ----------
   Re-assert the actions row text color with !important so generic
   dark-mode text utilities (e.g. html.dark .text-slate-400) cannot
   reduce the contrast below AA.

   Light mode:
     - actions text: #334155 on #ffffff = 10.4:1 (passes AA)
   Dark mode:
     - actions text: #e2e8f0 on #0f172a = 12.4:1 (passes AA)
*/

.saved-empty-actions {
  color: #334155 !important;
}

.dark .saved-empty-actions {
  color: #e2e8f0 !important;
}

/* ---------- Icon / step-number: reduced motion guard ----------
   The icon and step numbers are static by design, but a future theme
   or utility could add a fade-in, pulse or scale animation. Neutralise
   any motion here so users who prefer reduced motion always see the
   empty state instantly, with no animated halo or transform. */

@media (prefers-reduced-motion: reduce) {
  .saved-empty-icon,
  .saved-empty-step-num {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
  }

  /* Neutralise any hover/focus/active transform on the icon */
  .saved-empty-icon:hover,
  .saved-empty-icon:focus,
  .saved-empty-icon:focus-visible,
  .saved-empty-icon:active {
    transform: none !important;
    transition: none !important;
  }

  /* Neutralise any hover/focus/active transform on the step numbers */
  .saved-empty-step-num:hover,
  .saved-empty-step-num:focus,
  .saved-empty-step-num:focus-visible,
  .saved-empty-step-num:active {
    transform: none !important;
    transition: none !important;
  }

  /* Icons inside the icon wrapper must not animate either */
  .saved-empty-icon i,
  .saved-empty-icon svg {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Disable any pulse/scale animation on the icon and step numbers,
     including pseudo-elements that could be used for a halo effect. */
  .saved-empty-icon,
  .saved-empty-icon::before,
  .saved-empty-icon::after,
  .saved-empty-step-num,
  .saved-empty-step-num::before,
  .saved-empty-step-num::after {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* Keep the icon's decorative shadow static (no animated halo) */
  .saved-empty-icon {
    box-shadow: 0 8px 20px -12px rgba(124, 58, 237, 0.45) !important;
  }

  .dark .saved-empty-icon {
    box-shadow: 0 8px 20px -12px rgba(139, 92, 246, 0.55) !important;
  }

  /* ---------- Actions row: reduced motion guard ----------
     The actions row is a static flex container, but a future theme
     or utility could add a fade-in or slide-in. Neutralise any motion
     so users who prefer reduced motion see the actions instantly. */
  .saved-empty-actions {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
  }

  .saved-empty-actions:hover,
  .saved-empty-actions:focus,
  .saved-empty-actions:focus-within,
  .saved-empty-actions:active {
    transform: none !important;
    transition: none !important;
  }

  /* Buttons inside the actions row must not animate either – this
     reinforces the earlier guard so no hover/focus lift, scale or
     shadow transition is perceived. */
  .saved-empty-actions .saved-empty-cta,
  .saved-empty-actions .saved-empty-secondary,
  .saved-empty-actions #saved-empty-browse,
  .saved-empty-actions #saved-empty-show-all {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .saved-empty-actions .saved-empty-cta:hover,
  .saved-empty-actions .saved-empty-cta:focus,
  .saved-empty-actions .saved-empty-cta:focus-visible,
  .saved-empty-actions .saved-empty-cta:active,
  .saved-empty-actions .saved-empty-secondary:hover,
  .saved-empty-actions .saved-empty-secondary:focus,
  .saved-empty-actions .saved-empty-secondary:focus-visible,
  .saved-empty-actions .saved-empty-secondary:active,
  .saved-empty-actions #saved-empty-browse:hover,
  .saved-empty-actions #saved-empty-browse:focus,
  .saved-empty-actions #saved-empty-browse:focus-visible,
  .saved-empty-actions #saved-empty-browse:active,
  .saved-empty-actions #saved-empty-show-all:hover,
  .saved-empty-actions #saved-empty-show-all:focus,
  .saved-empty-actions #saved-empty-show-all:focus-visible,
  .saved-empty-actions #saved-empty-show-all:active {
    transform: none !important;
    transition: none !important;
  }

  /* Icons inside the action buttons must not animate either */
  .saved-empty-actions .saved-empty-cta i,
  .saved-empty-actions .saved-empty-secondary i,
  .saved-empty-actions #saved-empty-browse i,
  .saved-empty-actions #saved-empty-show-all i {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Disable any pulse/scale animation on the actions row and its
     pseudo-elements that could be used for a decorative halo. */
  .saved-empty-actions,
  .saved-empty-actions::before,
  .saved-empty-actions::after {
    animation: none !important;
    transform: none !important;
  }

  /* Keep the focus ring visible but static (no animated halo) */
  .saved-empty-actions :focus-visible {
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25) !important;
  }

  .dark .saved-empty-actions :focus-visible {
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35) !important;
  }

  /* Preserve the 44px touch target under reduced motion */
  .saved-empty-actions #saved-empty-browse,
  .saved-empty-actions #saved-empty-show-all {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ---------- Icon / step-number: forced colors ----------
   Windows High Contrast – ensure the icon and step numbers remain
   visible with system colors and no decorative shadows. */

@media (forced-colors: active) {
  .saved-empty-icon {
    background: Canvas !important;
    color: CanvasText !important;
    border: 1px solid CanvasText !important;
    box-shadow: none !important;
  }

  .saved-empty-step-num {
    background: Highlight !important;
    color: HighlightText !important;
    border: 1px solid HighlightText !important;
    box-shadow: none !important;
  }

  /* Actions row – keep the container neutral and let the buttons
     carry the system colors. */
  .saved-empty-actions {
    color: CanvasText !important;
    background: Canvas !important;
  }
}
