.sync-status-banner {
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: -2px auto 12px;
  padding: 10px 14px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.sync-status-banner.is-online {
  border-color: rgba(0, 140, 134, 0.18);
  background: #fbfffe;
}

.sync-status-banner.is-working {
  border-color: rgba(37, 99, 235, 0.2);
  background: #f8fbff;
}

.sync-status-banner.is-offline,
.sync-status-banner.is-error {
  border-color: rgba(217, 119, 6, 0.24);
  background: #fffaf0;
}

.sync-status-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--muted);
}

.sync-status-banner.is-online .sync-status-icon {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.sync-status-banner.is-working .sync-status-icon {
  background: var(--blue-soft);
  color: var(--navy);
}

.sync-status-banner.is-offline .sync-status-icon,
.sync-status-banner.is-error .sync-status-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.sync-status-icon .icon {
  width: 19px;
  height: 19px;
}

.sync-status-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sync-status-copy strong,
.sync-status-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-status-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 860;
  line-height: 1.2;
}

.sync-status-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.25;
}

.sync-status-pill {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.sync-status-banner.is-online .sync-status-pill {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.sync-status-banner.is-working .sync-status-pill {
  background: var(--blue-soft);
  color: var(--navy);
}

.sync-status-banner.is-offline .sync-status-pill,
.sync-status-banner.is-error .sync-status-pill {
  background: var(--amber-soft);
  color: var(--amber);
}

.sync-overview-card {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.sync-overview-card.is-working {
  border-color: rgba(37, 99, 235, 0.18);
  background: #f8fbff;
}

.sync-overview-card.is-offline,
.sync-overview-card.is-error {
  border-color: rgba(217, 119, 6, 0.22);
  background: #fffaf0;
}

.sync-overview-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sync-overview-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.sync-overview-card.is-working .sync-overview-icon {
  background: var(--blue-soft);
  color: var(--navy);
}

.sync-overview-card.is-offline .sync-overview-icon,
.sync-overview-card.is-error .sync-overview-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.sync-overview-icon .icon {
  width: 22px;
  height: 22px;
}

.sync-overview-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sync-overview-copy strong,
.sync-overview-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-overview-copy strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 880;
}

.sync-overview-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.sync-overview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sync-overview-meta div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.sync-overview-meta span,
.sync-overview-meta strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-overview-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
}

.sync-overview-meta strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 374px) {
  .sync-status-banner {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding-inline: 12px;
  }

  .sync-status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
