.weekly-loading {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.weekly-loading i {
  display: block;
  height: 42px;
  background: linear-gradient(90deg, var(--surface), var(--surface-soft), var(--surface));
  background-size: 220% 100%;
  border-radius: 10px;
  animation: weekly-pulse 1.3s linear infinite;
}

.weekly-feedback {
  margin-top: 10px;
  padding: 9px 11px;
  color: var(--red);
  background: var(--surface);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.weekly-history {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(24, 50, 48, .1);
}

.weekly-history summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.weekly-history article {
  padding: 8px 0;
  border-bottom: 1px solid rgba(24, 50, 48, .08);
}

.weekly-history strong,
.weekly-history small {
  display: block;
}

.weekly-history small {
  margin-top: 2px;
  color: var(--muted);
}

.weekly-history article > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

@keyframes weekly-pulse {
  to { background-position: -220% 0; }
}

@media (max-width: 700px) {
  .weekly-gift-panel {
    margin-inline: -2px;
    padding: 14px;
  }

  .weekly-pack-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .weekly-gift-head {
    align-items: center;
  }

  .weekly-gift-head > span {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .weekly-item-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .weekly-state-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .weekly-loading i {
    animation: none;
  }
}
