/* Задняя панель boot: парсинг — scan-line, поток строк, indeterminate-полоса */

.ds-boot-panel-parse {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 16px 14px 14px;
  overflow: hidden;
  pointer-events: none;
}

.ds-boot-panel-parse__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 35%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.18) 65%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
  will-change: top, opacity;
  animation: ds-boot-panel-parse-scan 2.8s ease-in-out infinite;
  z-index: 2;
}

.ds-boot-panel-parse__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.ds-boot-panel-parse__row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 6px;
  font-size: 8px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.38);
  opacity: 0;
  will-change: transform, opacity;
  animation: ds-boot-panel-parse-row-in 4s ease-in-out infinite;
}

.ds-boot-panel-parse__row-key {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.28);
}

.ds-boot-panel-parse__row-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-boot-panel-parse__strip {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ds-boot-panel-parse__strip-fill {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: var(--ds-accent);
  opacity: 0.7;
  will-change: transform;
  animation: ds-boot-panel-parse-strip 1.6s ease-in-out infinite;
}

@keyframes ds-boot-panel-parse-scan {
  0% {
    top: 12%;
    opacity: 0.3;
  }
  50% {
    top: 72%;
    opacity: 0.85;
  }
  100% {
    top: 12%;
    opacity: 0.3;
  }
}

@keyframes ds-boot-panel-parse-row-in {
  0%,
  8% {
    opacity: 0;
    transform: translate3d(-4px, 0, 0);
  }
  18%,
  72% {
    opacity: 0.75;
    transform: translate3d(0, 0, 0);
  }
  88%,
  100% {
    opacity: 0;
    transform: translate3d(2px, 0, 0);
  }
}

@keyframes ds-boot-panel-parse-strip {
  0% {
    transform: translate3d(-12%, 0, 0);
  }
  50% {
    transform: translate3d(68%, 0, 0);
  }
  100% {
    transform: translate3d(-12%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-boot-panel-parse__scan,
  .ds-boot-panel-parse__row,
  .ds-boot-panel-parse__strip-fill {
    animation: none;
    will-change: auto;
  }

  .ds-boot-panel-parse__scan {
    top: 40%;
    opacity: 0.5;
  }

  .ds-boot-panel-parse__row {
    opacity: 0.55;
  }

  .ds-boot-panel-parse__strip-fill {
    left: 30%;
    transform: none;
  }
}
