/* UKF Smart Curtain 0.3.3: quietly refreshed skeleton and one soft exit fade. */
.ukf-sml-overlay,
.ukf-sml-overlay * {
  box-sizing: border-box;
}

.ukf-sml-overlay {
  --ukf-sml-body: #161b28;
  --ukf-sml-panel: #242a3b;
  --ukf-sml-highlight: var(--color-secondary, #9c32ef);
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: radial-gradient(ellipse at 50% 32%, rgba(137, 79, 213, .045), transparent 55%), var(--ukf-sml-body);
  color: #fff;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms cubic-bezier(.2, .65, .25, 1);
  animation: ukf-sml-css-failsafe 1ms step-end 18s forwards;
}

.ukf-sml-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.ukf-sml-traces {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.ukf-sml-overlay.has-traces .ukf-sml-traces {
  opacity: 1;
}

.ukf-sml-trace {
  position: absolute;
  display: block;
  overflow: hidden;
  background: rgba(154, 137, 196, .11);
  border: 1px solid rgba(158, 103, 230, .11);
  border-radius: 6px;
  opacity: .86;
  pointer-events: none;
}

.ukf-sml-trace--line {
  border: 0;
  border-radius: 4px;
  background: rgba(154, 137, 196, .22);
}

.ukf-sml-trace--card {
  background: rgba(154, 137, 196, .045);
  border-color: rgba(158, 103, 230, .17);
}

/* Fade only the parent. The skeleton and logo fade with it, exactly once. */

/* A small, quiet loading marker rather than an invented central hero section. */
.ukf-sml-status-pill {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  max-width: calc(100vw - 32px);
  padding: 9px 20px 9px 11px;
  border: 1px solid rgba(164, 112, 247, .24);
  border-radius: 999px;
  background: var(--ukf-sml-panel);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .14);
  transform: translateX(-50%);
  font-family: var(--font-primary, system-ui, sans-serif);
}

.ukf-sml-status-logo {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.ukf-sml-status-logo::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(158, 104, 237, .2);
  border-top-color: var(--ukf-sml-highlight);
  animation: ukf-sml-ring 2.8s linear infinite;
}

.ukf-sml-status-logo img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.ukf-sml-status-label {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.ukf-sml-status-dots {
  display: inline-block;
  min-width: 1.5em;
  opacity: .75;
}

.ukf-sml-accessible-status {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  white-space: nowrap;
  clip-path: inset(50%);
}

@keyframes ukf-sml-ring {
  to { transform: rotate(360deg); }
}

@keyframes ukf-sml-css-failsafe {
  to { visibility: hidden; pointer-events: none; }
}

@media (max-width: 600px) {
  .ukf-sml-status-pill {
    bottom: max(16px, env(safe-area-inset-bottom));
    gap: 10px;
    min-height: 57px;
    padding: 8px 14px 8px 9px;
  }

  .ukf-sml-status-logo,
  .ukf-sml-status-logo img {
    width: 40px;
    height: 40px;
  }

  .ukf-sml-status-logo {
    flex-basis: 40px;
  }

  .ukf-sml-status-label {
    font-size: 12px;
  }

  .ukf-sml-trace {
    border-radius: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ukf-sml-overlay { transition-duration: 0ms; }
  .ukf-sml-traces { transition-duration: 0ms; }
  .ukf-sml-status-logo::after,
  .ukf-sml-status-dots { animation: none; }
}
