.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-height);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  font: inherit;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button--primary {
  background: var(--color-text);
  color: var(--color-surface);
}

.button--primary:hover {
  background: var(--color-accent-hover);
}

.button--ghost {
  background: var(--color-chip-bg);
  color: var(--color-text);
}

.button--ghost:hover {
  border-color: var(--color-text-muted);
}

.button--small {
  height: 34px;
  padding: 0 12px;
  font-size: var(--font-size-caption);
  border-radius: 9px;
}

@media (max-width: 560px) {
  :where(.letter__actions, .case__actions) {
    flex-wrap: nowrap;
  }

  :where(.letter__actions, .case__actions) .button {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    min-height: var(--control-height);
    padding: 8px 12px;
    font-size: var(--font-size-caption);
    line-height: var(--line-height-caption);
    text-align: center;
  }
}
