article.alert {
  padding: 1em;
  background: var(--secondary);
}

article.alert.danger {
  background: darkred;
  color: white;
}

article.alert.success {
  background: darkgreen;
  color: white;
}

.flex {
  display: flex;
  gap: var(--pico-spacing);

  >* {
    margin-bottom: 0;
  }
}

.flex.spaced>* {
  width: 100%;
  flex: 1;
}

.flex.spread {
  justify-content: space-between;
}

.shrink {
  width: auto;
  flex-shrink: 1;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  display: inline-block;
  margin-bottom: .25rem;
}

.date {
  opacity: .5;
}

.overflow-auto:has(table) {
  margin-bottom: 1em;

  >table {
    margin-bottom: 0;
  }
}

.secret-item {
  padding: 1em 0;

  >details {
    margin-bottom: 0;
  }

  &:not(:last-child) {
    border-bottom: 1px solid var(--pico-accordion-border-color);
  }
}

@media (max-width:768px) {
  .flex:not(.spaced) {
    display: block;
    margin-top: 1rem;
  }

  .shrink {
    width: 100%;
    flex-shrink: 0;
  }

  .date {
    display: block;
  }

  .grid>* {
    margin-bottom: 0;
  }
}