.sync-status-banner {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 1.6rem;
  padding: 0.2rem 0.65rem;
  color: #1f2933;
  background: #eef2f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

.sync-status-banner[hidden] {
  display: none !important;
}

.sync-status-banner__content {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.35rem;
}

.sync-status-banner__dot {
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #64748b;
}

.sync-status-banner__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
}

.sync-status-banner__actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sync-status-banner__link {
  flex: 0 0 auto;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: underline !important;
}

.sync-status-banner__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0.25rem;
  font-size: 0.72rem;
  line-height: 1;
}

.sync-status-banner__close:hover,
.sync-status-banner__close:focus {
  background: rgba(0, 0, 0, 0.08);
}

.sync-status-banner--offline {
  color: #3b2600;
  background: #fff3cd;
}

.sync-status-banner--offline .sync-status-banner__dot {
  background: #f59f00;
}

.sync-status-banner--syncing {
  color: #062b55;
  background: #dbeafe;
}

.sync-status-banner--syncing .sync-status-banner__dot {
  background: #2563eb;
}

.sync-status-banner--pending {
  color: #332701;
  background: #fef3c7;
}

.sync-status-banner--pending .sync-status-banner__dot {
  background: #d97706;
}

.sync-status-banner--conflict {
  color: #451a1a;
  background: #fee2e2;
}

.sync-status-banner--conflict .sync-status-banner__dot {
  background: #dc2626;
}

.sync-status-banner--online {
  color: #06361d;
  background: #dcfce7;
}

.sync-status-banner--online .sync-status-banner__dot {
  background: #16a34a;
}

@media (max-width: 640px) {
  .sync-status-banner {
    align-items: center;
    min-height: 0;
    padding: 0.18rem 0.5rem;
  }

  .sync-status-banner__label {
    white-space: nowrap;
    font-size: 0.72rem;
  }
}
