.tutor-load-feedback {
  position: relative;
  color: #506a84;
  font-size: .875rem;
}

.tutor-load-feedback[hidden] {
  display: none;
}

.tutor-load-feedback[data-state="initial"] .tutor-load-note {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tutor-load-feedback[data-state="updating"],
.tutor-load-feedback[data-state="error"] {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tutor-load-track {
  display: none;
}

.tutor-load-feedback[data-state="updating"] .tutor-load-track {
  display: block;
  position: relative;
  flex: 1 1 60px;
  height: 3px;
  overflow: hidden;
  border-radius: 4px;
  background: #dceffc;
}

.tutor-load-track::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  border-radius: inherit;
  background: #159ae1;
  content: "";
  animation: tutor-load-sweep 1.35s ease-in-out infinite;
}

.tutor-load-retry {
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid #cfe2f1;
  border-radius: 9px;
  color: #076a9c;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.tutor-load-retry:focus-visible {
  outline: 2px solid #159ae1;
  outline-offset: 2px;
}

.tutor-load-skeleton {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(78px, .75fr);
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  min-width: 0;
  min-height: 216px;
  padding: 16px;
  border: 1px solid #dceaf7;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.tutor-load-details,
.tutor-load-actions {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.tutor-load-shape {
  display: block;
  min-width: 0;
  height: 12px;
  border-radius: 8px;
  background: #eaf3fa linear-gradient(105deg, transparent 28%, #fff8 50%, transparent 72%) no-repeat;
  background-size: 230% 100%;
  animation: tutor-load-shimmer 1.9s linear infinite;
}

.tutor-load-photo {
  align-self: stretch;
  min-height: 150px;
  height: auto;
  border-radius: 13px;
}

.tutor-load-details .tutor-load-shape:first-child { width: 62%; height: 20px; }
.tutor-load-details .tutor-load-shape:nth-child(2) { width: 90%; }
.tutor-load-details .tutor-load-shape:last-child { width: 74%; }
.tutor-load-actions .tutor-load-shape:first-child { width: 66%; height: 20px; }
.tutor-load-actions .tutor-load-shape:last-child { height: 36px; }

.popular-teachers__row .tutor-load-skeleton {
  grid-template-columns: minmax(55px, .7fr) minmax(0, 1fr);
  align-content: center;
  min-height: 202px;
}

.popular-teachers__row .tutor-load-photo {
  min-height: 108px;
}

.popular-teachers__row .tutor-load-actions {
  grid-column: 2;
}

@keyframes tutor-load-shimmer {
  from { background-position: 110% 0; }
  to { background-position: -85% 0; }
}

@keyframes tutor-load-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(280%); }
}

@media (max-width: 720px) {
  .teacher-list .tutor-load-skeleton {
    grid-template-columns: minmax(0, 1fr);
    min-height: 310px;
    gap: 13px;
  }

  .teacher-list .tutor-load-photo {
    min-height: 160px;
  }

  .teacher-list .tutor-load-actions {
    grid-template-columns: minmax(52px, .55fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tutor-load-shape,
  .tutor-load-track::after {
    animation: none;
  }

  .tutor-load-shape {
    background-image: none;
  }
}
