.eb-empty-state {
  display: grid;
  justify-items: center;
  gap: var(--eb-space-4);
  padding: var(--eb-space-8);
  border: 1px dashed var(--eb-border-default);
  border-radius: var(--eb-radius-0);
  background: var(--eb-bg-card);
  text-align: center;
  box-shadow: var(--eb-shadow-soft-sm);
}

.eb-empty-state__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--eb-bg-sidebar);
  color: var(--eb-primary-600);
}

.eb-empty-state__icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 2;
}

.eb-empty-state__body {
  display: grid;
  justify-items: center;
  gap: var(--eb-space-3);
  max-width: 32rem;
}

.eb-empty-state__title {
  margin: 0;
  color: var(--eb-text-primary);
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.2;
}

.eb-empty-state__message {
  margin: 0;
  color: var(--eb-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.eb-empty-state__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--eb-space-3);
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .eb-empty-state {
    padding: var(--eb-space-6) var(--eb-space-4);
  }

  .eb-empty-state__actions {
    width: 100%;
  }

  .eb-empty-state__actions .eb-btn {
    flex: 1 1 100%;
  }
}

/* Error pages (board: Error pages): one centred card under the normal header and footer. */
.eb-error-page {
  padding-top: 48px;
  padding-bottom: 48px;
}

.eb-error-state {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 24px;
  border: 1px solid var(--eb-border-default);
  background: var(--eb-white);
  text-align: center;
}

.eb-error-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--eb-gray-100);
  color: var(--eb-gray-700);
}

.eb-error-state__icon svg {
  width: 22px;
  height: 22px;
}

.eb-error-state__code {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--eb-gray-600);
}

.eb-error-state__title {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--eb-gray-900);
}

.eb-error-state__message {
  margin: 0;
  color: var(--eb-gray-700);
  line-height: 1.5;
}

.eb-error-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.eb-error-state__help {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--eb-gray-600);
}

/* Phones (board: No results): a square icon tile, a 22px title, the main action first, side by side. */
@media (max-width: 767.98px) {
  .eb-empty-state {
    box-shadow: none;
  }

  .eb-empty-state__icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 0;
    background: var(--eb-gray-100);
  }

  .eb-empty-state__title {
    font-size: 22px;
    font-weight: 700;
  }

  .eb-empty-state__message {
    font-size: 16px;
    line-height: 1.5;
  }

  .eb-empty-state__actions {
    flex-direction: row-reverse;
    flex-wrap: nowrap;
  }

  .eb-empty-state__actions .eb-btn {
    flex: 1 1 0;
    min-height: 44px;
    padding-inline: 8px;
    white-space: nowrap;
  }
}
