.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 641px) {
  .sign-tabs .tab-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .sign-tabs .tab-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
  }

  .sign-tabs .tab-buttons > button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .tab-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
}

.tab-container {
  display: none;
}
.tab-container.active {
  display: block;
  border: 1px solid var(--md-sys-color-outline-variant);
  padding: 15px;
}
.tab-buttons > button {
  margin-bottom: 0;
  background: transparent;
  border: 1px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface);
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  line-height: 1.1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.tab-buttons > button.active {
  background-color: var(--md-sys-color-surface-container-high);
  border-color: var(--md-sys-color-primary);
}
