.app-header-actions {
  gap: 12px;
}

.app-sync-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 250px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--tg-border-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-sync-pill__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tg-text);
}

.app-sync-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #3dd673;
  box-shadow: 0 0 0 6px rgba(61, 214, 115, 0.14);
}

.app-sync-pill__meta {
  font-size: 12px;
  color: var(--tg-text-soft);
  line-height: 1.45;
}

.app-sync-pill.is-syncing {
  border-color: rgba(77, 163, 255, 0.34);
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.16), rgba(61, 214, 198, 0.08));
}

.app-sync-pill.is-syncing .app-sync-pill__dot {
  background: #4da3ff;
  box-shadow: 0 0 0 6px rgba(77, 163, 255, 0.14);
  animation: appSyncPulse 1.4s ease-in-out infinite;
}

.app-sync-pill.is-error {
  border-color: rgba(255, 103, 120, 0.34);
  background: linear-gradient(180deg, rgba(255, 103, 120, 0.15), rgba(255, 103, 120, 0.06));
}

.app-sync-pill.is-error .app-sync-pill__dot {
  background: #ff6778;
  box-shadow: 0 0 0 6px rgba(255, 103, 120, 0.14);
}

.section-inline-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(77, 163, 255, 0.18);
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.11), rgba(61, 214, 198, 0.08));
  color: var(--tg-text);
}

.section-inline-banner strong {
  display: block;
  margin-bottom: 4px;
}

.section-inline-banner__meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--tg-text-soft);
}

.section-inline-banner--soft {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(77, 163, 255, 0.08));
  border-color: var(--tg-border-soft);
}

.admin-section {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.admin-section.active {
  opacity: 1;
  transform: translateY(0);
}

.admin-section.is-activating {
  animation: sectionReveal 0.26s ease-out;
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appSyncPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.75;
  }
}

@media (max-width: 1024px) {
  .app-sync-pill {
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  .app-header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .app-sync-pill {
    min-width: 100%;
    order: 3;
  }

  .section-inline-banner {
    flex-direction: column;
    align-items: stretch;
  }
}
